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

Expanding playwright coverage over the Explore by topic page #6134

Conversation

emilghittasv
Copy link
Collaborator

  • Adding a new helper function in BasePage to extract the list of text content for a given locator.
  • Adding the https://support.allizom.org/en-US/kb/get-community-support?exit_aaq=1 page to test data.
  • Adding the AAQ widget text which is displayed when the "All Products" filter is applied to AAQWidgetMessage for further usage in tests.
  • Expanding the locators & actions for the ExploreByTopicsPage class.
  • Adding playwright coverage for the "Explore By Topic" page:
    • Verifying that the correct explore by topic page header is displayed when changing the topic via the "All Topics" side navbar.
    • Verifying that the "Filter by product" successfully updates the displayed list of articles with articles that belong to the chosen product from the "Filter by product" dropdown (by verifying the displayed metadata for each listed article)
    • Verifying that the correct AAQ widget text is displayed for each filtered product.
    • Verifying the correct AAQ widget redirect for each filtered product.
    • Added playwright coverage for the non-navigable topic slug in topics page requests returns 500 error sumo#1876 case
  • Adding the new test suite to playwright.yml
…tContent for a given locator.

- Adding the https://support.allizom.org/en-US/kb/get-community-support?exit_aaq=1 page to test data.
- Adding the AAQ widget text which is displayed when the "All Products" filter is applied to AAQWidgetMessage for further usage in tests.
- Expanding the locators & actions for the ExploreByTopicsPage class.
- Adding playwright coverage for the "Explore By Topic" page:
  - Verifying that the correct explore by topic page header is displayed when changing the topic via the "All Topics" side navbar.
  - Verifying that the "Filter by product" successfully updates the displayed list of articles with articles that belong to the chosen product from the "Filter by product" dropdown (by verifying the displayed metadata for each listed article)
  - Verifying that the correct AAQ widget text is displayed for each filtered product.
  - Verifying the correct AAQ widget redirect for each filtered product.
  - Added playwright coverage for the mozilla/sumo#1876 case
- Adding the new test suite to playwright.yml
Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

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

Nice!

@emilghittasv emilghittasv merged commit 6a79a25 into mozilla:main Jul 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants