Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/test scripts signup #9

Open
wants to merge 63 commits into
base: develop
Choose a base branch
from

Conversation

we-satyajeet-s001
Copy link
Contributor

@we-satyajeet-s001 we-satyajeet-s001 commented Nov 10, 2022

I have updated the common list of Sign In test scripts in which i have created separate file for pom and data to make the code reusable.
refer:
video_URL: https://img-v4.getdemo.dev/screenshot/phpstorm64_y74WDSpXx7.mp4

README.md Outdated

## Objectives
- Reduce code for `selecting` elements and verifying `asserts`
- Code `re-usability` by writing the test scripts independent of the `data` and `POM`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@satyajeet-s001 write the full form of POM in brackets

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated sir!

README.md Outdated

#### step 5: All the methods present in Assert class under Assets in vaah-webdriverio should be prefixed with "async" to run the methods in async mode in the test scripts.
#### step 5: All the values which are required for the `signup.page.js` and `signup.spec.js` should be present in `signup.js` under `data` and for the values which are required for the test scripts, it should be arranged in `groups` and `tests` in JSON format.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@satyajeet-s001 instead of signup.js under data write proper path like <root>/data/signin.js, fix this everywhere else as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated !

}

this.selectors = {
first_name: 'First Name',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@satyajeet-s001 how selector will be a First Name, it will be a data-testid attribute, explain that this is a data-testid attribute value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants