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

92 Коммитов

Автор SHA1 Сообщение Дата
Emil Ghitta ee3147f2ec Update fxa "User logged in" locator. 2024-07-08 17:17:32 +03:00
Emil Ghitta 3e130150ed Update fxa "Use a different account" locator. 2024-07-08 13:30:16 +03:00
Emil Ghitta 3d7bf8af30 - Refactoring the basepage.py & adding comments to helper functions.
- Fixing failing tests due to recent topic & nav changes.
2024-07-01 09:25:01 +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 2d63c35aeb Expanding playwright localization coverage to cover the following scenarios:
- Verifying that SUMO redirects to a fallback locale when trying to access an unsupported one.
- Verifying SUMO's fallback mechanism for the fy, zh-Hans and zh-Hant locales. (currently skipped due to a known failure).
- Verifying that accessing all supported SUMO locales returns status code 200
- Verifying SUMO locale priority:
* SUMO should redirect to the locale specified inside the user profile if no locale is specified in the URL.
* Verifying that SUMO should respect the ?lang query parameter and redirect to that particular locale regardless of the locale specified inside the user profile.
* Verifying that SUMO redirects to the locale specified inside the Accept-Language header if no preferred language is set at profile level.
* Verifying the fallback mechanism of the Accept-Language header if the first specified language is not supported or invalid.
- Verifying that selecting all the available options inside the "Language" dropdown menu displayed inside the footer section redirects the user to the chosen locale successfully.
- Adding the required env variables for decouple in order to use the SUMO_LANGUAGES, FALLBACK_LANGUAGES, NON_SUPPORTED_LOCALES dictionaries in tests.
- Fixing the Recent Revisions Dashboard test failures.
- Adding playwright capability of setting/manipulating the http header.
2024-06-17 16:24:45 +03:00
Emil Ghitta e8b0c321a6 - Fixing playwright test failures due to IA changes. 2024-06-10 23:36:36 +03:00
Tasos Katsoulas d2027b756a
Explore by topic main nav
* Enable browsing by topic
* Navigate per topic in KB and AAQ
* Wire main nav topics
2024-06-05 15:00:15 +03:00
Emil Ghitta aa191795fe - Removing some repetitive steps inside the "KB - Restricted Visibility" tests & adding a helper function for the restricted visibility group removal flow. 2024-06-03 19:00:58 +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 7528616fe8 - Xpath Cleanup 2024-05-21 12:23:32 +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 f05415801c - Fixing some failing messaging system tests due to recent UI changes in both inbox and outbox.
- Fixing a failing kb article test by sending a different search summary and search keyword.
2024-05-10 14:09:55 +03: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 2616b2c079 - Fixing playwright messaging system failures due to recent changes. 2024-04-12 21:46:00 +03:00
Emil Ghitta 4e6f521caa - Fix the "test_additional_system_details_user_agent_information" test flakiness by waiting for the modal to be fully displayed before trying to fetch the user agent info. 2024-04-10 18:01:38 +03:00
Emil Ghitta 37aef3c58c - Enabling the capability of triggering specific test suites run on workflow dispatch 2024-04-05 16:50:45 +03:00
Emil Ghitta 7baf6b69e8 - Remove trace data from allure reporting.
- Updating FxA password locator to avoid test flakiness.
2024-04-01 13:07:58 +03: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 9ef9d73007
- Replacing the data-event-label attribute from playwright xpath locators. (#5928)
- Fixing the workflow file to not quit the execution on test failure.
2024-03-26 10:01:11 -07:00
Emil Ghitta 0e8a96866f - Switching playwright reporting from HTML to Allure.
- Using allure.step() to define steps in allure report.
- Modifying the soft assertions to play nicely with allure reporting by interleaving check and step.
- Adding allure to poetry.
- Modifying the playwright.yml to exclude the HTML reporter & use Allure reporting instead.
- Attaching screencasts to Allure report on test failure.
2024-03-13 15:50:50 +02:00
Emil Ghitta d69fae1203 - Fixing failing tests. 2024-03-06 21:00:51 +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 6f00ab74f7 - Cleaning up the code a bit with emphasis on removing explicit cookie deletion before starting a new logged-in session (the start_existing_session function already contains the cookie deletion step before applying the new set of session cookies) 2024-02-27 20:05:52 +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 2dee99b82b - Changing the user being used in test_quote_reply_functionality test with a "permissionless" one in order to catch cases like https://github.com/mozilla/sumo/issues/1676 2024-02-21 00:35:33 +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 d8b60265ee - Adding custom wait for test_question_topics test to avoid flakiness.
- Adding marker for articleThreads tests.
2024-02-06 15:48:22 +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 2bc360e1c9
- Improving the auth flow to try avoiding failures if/when FxA is slow. (#5827)
- Updated a couple of tests along the way.
2024-01-03 11:44:00 -08: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
Emil Ghitta 1cd545467a - Fix failing AAQ and product solutions tests in Chrome. 2023-12-15 12:45:38 +02: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 dc52e52627 Fixing failing test_messaging_system.py and adding reruns to playwright.yml 2023-12-07 13:00:38 +02:00
Emil Ghitta a25dd431d4
- Updating yml file (#5802)
- Adding playwright framework
2023-12-04 09:04:17 -08:00