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

Care 767 create automation tests for menu button on mobile #44

Conversation

varshakrishna-hippo
Copy link
Contributor

Added More tests to validate Share buttons and Metadata section

1. Added Test scripts to validate Menu button that replaces navigation Bar in the Mobile devices
2. Updated the Playwright config(both) to specifically run tests on a mobile viewport for Android devices.
3. Cleaned up the code by separating the repeatable shared functionalities, such as the 'You need help now' section, the website name, and the navigation bar.
Copy link
Collaborator

@KaraokeStu KaraokeStu left a comment

Choose a reason for hiding this comment

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

Looks good to me

async verifyShareButtonsVisibility() {
await Promise.all([
expect(this.shareButtonsContainer).toBeVisible(),
expect(this.facebookShareButton).toBeVisible(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

As these are configurable, did we want to only expect the shareButtonsContainer, and leave the others?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed all the social buttons validations, I have kept the print icon as you mentioned that this should always be there

@varshakrishna-hippo varshakrishna-hippo merged commit a5ecaab into main Mar 4, 2025
1 check passed
@varshakrishna-hippo varshakrishna-hippo deleted the CARE-767-Create-AutomationTests-for-Menu-button-on-Mobile branch March 4, 2025 15:48
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.

3 participants