-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: develop
Are you sure you want to change the base?
Conversation
…o feature/test-scripts-signup
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`. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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
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