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

Add POM Refactor #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add POM Refactor #160

wants to merge 1 commit into from

Conversation

alvitazwar
Copy link

  • Added Assertions
  • Implemented POM structure
  • Enhanced Test execution time
  • Reduce Test Flakiness

@github-actions
Copy link

expect(this.page.locator(selectors.validateOption)).not.toBe(null);
}
// this function is used to add Login with google block after validate Block
async addLoginGoogleBlock(){
Copy link
Contributor

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',
Copy link
Contributor

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.

Copy link
Contributor

@pooja-muchandikar pooja-muchandikar left a 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.

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