-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add POM Refactor #160
base: master
Are you sure you want to change the base?
Add POM Refactor #160
Conversation
alvitazwar
commented
Aug 21, 2023
- Added Assertions
- Implemented POM structure
- Enhanced Test execution time
- Reduce Test Flakiness
Code coverage report: https://gh-reports.rt.gw/login-with-google/refs/pull/160/merge/ |
expect(this.page.locator(selectors.validateOption)).not.toBe(null); | ||
} | ||
// this function is used to add Login with google block after validate Block | ||
async addLoginGoogleBlock(){ |
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.
@alvitazwar
Add the assertions for this function. Validate whether the block is added successfully.
buttonSaveSetting: "role=button[name='Save Changes'i]", | ||
messageSaveSetting: "#setting-error-settings_updated", | ||
clientIdInput: '#client-id', | ||
clientIdValue: '278082871881-qp9srgor0iqvl1aq200ctf1sdb49bli1.apps.googleusercontent.com', |
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.
@alvitazwar Add this client ID and secret in .env
or repo secret. This should not be publicly visible.
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.
@alvitazwar In specs/09_logout-login-button.js - Why this test case has been removed? This test should be present in order to validate login functionality.
Along with POM implementation, need to update the playwright package version as well. Do update the playwright version in package.json.