Граф коммитов

30 Коммитов

Автор SHA1 Сообщение Дата
Emil Ghitta 9a7a3c0781 - Adding TestGroup3 to playwright.
- Expanding the user_groups_messages.py to include locale leader removal or addition page messages.
- Modifying the flows in user_group_flow.py to handle actions against group leaders.
- Adding locators and functions for group leaders in groups_page.py page object.
Adding a new test in test_groups.py which verifies:
- That admin users can add and remove locale leaders from groups.
- That the correct banner is displayed when adding or removing a group leader.
- That adding a group leader to a group successfully adds the leader in both the leaders & members group lists.
2024-11-13 21:20:04 +02:00
Emil Ghitta 854fa465d3 - Improving the groups_page.py page object and adding new locators & functions against them to be used in tests.
- Adding a function to click on groups listed inside the profile page.
- Adding user group tests pytest marker to pytest.ini
- Adding new test images for usage in tests.
- Expanding playwright coverage over the groups section via the test_groups.py
- Expanding playwright coverage into verifying that messages can be sent via the groups page inside the test_messaging_system.py
- Adding a couple of helper functions inside the utilities.py to:
1. Have the capability of uploading files via file choosers.
2. Have the capability of taking a screenshot for a particular locator.
3. Have the capability of comparing two given images using python pillow.
2024-11-11 13:17:50 +02:00
Emil Ghitta 5dda7567da - Creating a new helper function in utilities.py that gives the possibility of re-calling a function which failed due to a 502 error. This function relies on catching a warning emitted by the handle_502_error function inside conftest.py.
- Fix locators issues due to the transition from selectize to tom-select.
- Extended the checkbox_interaction() function in basepage.py to handle ElementHandles and implemented a retry mechanism if the element check() or uncheck() has failed due to some reason.
- Modified the click() function in basepage.py to:
1. Accept and interact with ElementHandles.
2. Implement a retry mechanism based on a given expected_locator or expected_url after the click action. If the expected_locator or expected_url condition is not fulfilled after the click action we are forcing a re-click on the target element.
3. Wait for networkidle before attempting to click on the element.
- Updated the page objects, tests and flows for which flakiness occurred in the past to use the newly implemented click() and function re-call mechanism.
- Added a helper function in basepage.py which moves the mouse to a given location.
2024-11-06 19:00:43 +02:00
Emil Ghitta eb20b7a5e7 - Fixing failing tests caused by moderator tool locator changes.
- Adding Thunderbird for Android product to tests.
2024-09-30 11:28:56 +03:00
Emil Ghitta f82e0d7b13 - Updating a couple of places in playwright since the new kb/new and kb/edit/metadata pages contain the new "product" field instead of the "relevancy" one.
- Updating a couple of mapped TestRail test id's.
2024-09-12 12:19:44 +03:00
Emil Ghitta c2aeff39b9 - Fix waits & test errors. 2024-08-22 21:53:43 +03:00
Tasos Katsoulas 41cc8d6bc4
Use internal IA for the AAQ instead of a config. 2024-08-08 09:27:56 -07:00
Emil Ghitta f92c0b92ba - Adding a new helper function in BasePage to extract the list of textContent 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 https://github.com/mozilla/sumo/issues/1876 case
- Adding the new test suite to playwright.yml
2024-07-23 15:55:04 +03:00
Emil Ghitta beda693055 - Enabling test_fallback_languages test since https://github.com/mozilla/sumo/issues/1820 is now fixed.
- Removed some other Firefox Reality, FPN and Hubs mentions inside the playwright framework.
2024-07-15 22:59:35 +03:00
Emil Ghitta b78eef557d - Updating the aaq submission flow to work with premium and loginless forms.
- Adding new locators for the premium and loginless forms and helper functions.
- Expanding playwright coverage for the following cases:
1. Verifying that the premium tickets can be successfully submitted for all premium products. Currently, we are sending one ticket /each premium product and choosing a random topic & os from the dropdowns. We are also making use of the whitelisted subject & body keyword so that Zendesk automatically closes those tickets & avoid spamming.
2. Verifying that 3 loginless forms can be successfully submitted before hitting the ratelimit. (making use of the whitelisted subject & body keyword) in order to avoid spamming Zendesk).
2024-06-18 21:20:00 +03:00
Emil Ghitta e8b0c321a6 - Fixing playwright test failures due to IA changes. 2024-06-10 23:36:36 +03:00
Emil Ghitta b577be8ff8 - Adding playwright coverage to KB article translation.
- Adding the newly added kb article translation tests to pytest.ini and playwright.yml workflow file.
- Adding test data for KB article translation.
- Adding Page object & flows for kb article translation.
- Mapping some automated tests with existing TestRail manual tests.
- Expanding the coverage for some existing kb article tests.
- Improving the flow for some existing Edit Article Metadata tests.
2024-05-30 23:00:29 +03:00
Emil Ghitta 5fa79c8fcb
- Extending playwright coverage over the group messaging system. (#6020)
- Updating the playwright.yml to contain the group messaging system suite for both scheduled & workflow dispatch executions.
- Fix twitter profile link test since twitter is now "x".
- Fix footer test.
- Added group page to POM & flows.
2024-05-20 15:02:14 -07:00
Emil Ghitta 1365233411
- Further expanding playwright coverage over the KB article editing (over both Edit Article & Edit Article Metadata areas). (#5964)
- Reducing the complexity of some KB article steps.
2024-04-17 09:40:28 -07:00
Emil Ghitta 5c65937cac - Expanding playwright coverage over restricted visibility kb articles functionality.
This coverage includes checks over the expected kb discoverability when using different accounts (non-whitelisted, whitelisted, signed out and admin). The checks are performed on the following SUMO areas: Search Results, Recent Revisions page, Localization Dashboards, KB Dashboards, Media Gallery, Article Discussions page, Frequent Topics page, What Links Here page, KB Category page & user document contributions page.
The above checks are performed against both restricted kb articles & restricted kb templates.

- Updated & Created some additional pages, flows & test data needed for testing the restricted kb articles functionality.
- Updating the workflow file to contain the newly added tests.
2024-03-29 11:23:40 +02:00
Emil Ghitta c629cf7d2d Expanding playwright coverage over KB Dashboard and performing the following verifications:
- Ensure that the Live status, Needs Update, Ready for L10N, Stale & Expiry Date are successfully displayed & updated according to the corresponding modifications performed at KB article level.
- Ensure that changing the kb article title is also resembled inside the KB Dashboard.
- Ensure that the kb article title link (displayed inside the KB dashboard) redirects the user to the correct kb article page.

Updated the GH playwright workflow to include the new tests in our scheduled GH run.

Also performed some code refactoring by creating 'flow functions' for some repetitive kb actions (revision creation & article deletion).
2024-03-05 13:54:21 +02:00
Emil Ghitta 64a86d979f - Expanding Show History playwright coverage.
- Expanding playwright coverage over KB article revision page:
- Expanding playwright coverage over KB contributors:
- Expanding playwright coverage over the Recent Revisions dashboard:
- Updating the GH workflow file to include the newly added runs in our runs.
- Cleaning up the code a bit. Moving the cookie deletion inside the session creation function.
2024-02-26 00:16:58 +02:00
Emil Ghitta 1c96d53820 - Fixing some failing and flaky product solutions, AAQ questions and article tests. 2024-02-22 16:39:52 +02:00
Emil Ghitta 8aba5f110e
Expanding playwright to cover a wider range of article deletion scenarios: (#5883)
- Ensuring that articles cannot be deleted by a user that doesn't have the necessary permissions or while the user is signed out.
- Ensuring that the article is not deleted when clicking on the "Cancel and go back to document history" option.
- Ensuring that the only available article revision cannot be deleted (also performing page assertions for the 'Unable to delete only revision of the document' page).
- Ensuring that the user is redirected back to the article history after clicking on the "Go back to document history" option from the 'Unable to delete only revision of the document' page.
- Ensuring that the article can be successfully deleted and manually navigating to the deleted article's url will return a 404.
2024-02-15 14:21:01 -08:00
Emil Ghitta fcff806b96 - Renamed "Monitor" to "Mozilla Monitor" in a few places.
- Trying to fix the question common_responses test flakiness with a different assertion.
- Added two new markers for article thread tests.
2024-02-07 11:34:56 +02:00
Emil Ghitta 1e8320ce87 - Expanding playwright coverage over kb discussion threads.
- Disabled the product support page tests until I find a proper fix.
- Trying to fix the create-sessions test by adding a wait.
- Updating the GH workflow file to add the updates to runners.
2024-02-02 22:47:11 +02:00
Emil Ghitta 5be1e80d9e - Expanding playwright assertion coverage over the Products page (https://support.allizom.org/en-US/products/), Products Support page (https://support.allizom.org/en-US/products/{Product}) and KB articles (KB creation, revision approval, revision content, visibility, keywords, search summary, kb submit form validations, Allow KB discussions option)
- Re-organized the folder structure in order to resemble the new IA better.
- Updating the workflow file to include the newly added tests in our GH runners.
2024-01-25 16:30:53 +02:00
Emil Ghitta e6b0129b0a - Increase playwright coverage over the AAQ section by adding tests against: Question reply votes (test currently disabled due to a known failure), Question reply common responses, signed out question reply card. 2024-01-11 13:23:11 +02:00
Emil Ghitta a0cd885bab - Fixing failing subscribe to feed AAQ test for Chrome.
- Fixing failing contact support page test by adding the new Monitor subheading text.
2024-01-09 14:16:55 +02:00
Emil Ghitta c4a8c2d73d - Expanding the AAQ coverage.
- Refactoring code.
2024-01-05 23:40:22 +02:00
Emil Ghitta 4c4fd57879
- Expanding Playwright AAQ coverage to test all "Question Tools" functionalities from posted questions. (#5823)
- Refactored some bits and pieces.
- Updated the workflow file to schedule the newly added coverage for execution.
- Updated workflow to execute Firefox tests on Monday, Wednesday and Friday and Chrome tests on Tuesday and Thursday.
2023-12-20 10:46:41 -08:00
Ryan Johnson 696baf8d2c
Revert "Revert "- Adding tests for: popular topics page, product solutions page, contact support page, submitted aaq questions for freemium products, freemium aaq form (#5812)" (#5817)" (#5818)
This reverts commit fff9d339fb.
2023-12-14 12:28:50 -08:00
Ryan Johnson fff9d339fb
Revert "- Adding tests for: popular topics page, product solutions page, contact support page, submitted aaq questions for freemium products, freemium aaq form (#5812)" (#5817)
This reverts commit db58b90a72.
2023-12-14 10:15:14 -08:00
Emil Ghitta db58b90a72
- Adding tests for: popular topics page, product solutions page, contact support page, submitted aaq questions for freemium products, freemium aaq form (#5812)
- Updating some tests, page messages and page methods.
- Adding custom wait for url & user agent retrival in test utilities.
- Adding more test data.
- Updating the workflow to include the newly added tests in our execution.
2023-12-14 10:13:03 -08:00
Emil Ghitta a25dd431d4
- Updating yml file (#5802)
- Adding playwright framework
2023-12-04 09:04:17 -08:00