From 9662b37bd215ae06a553d52048b13a8731f4d144 Mon Sep 17 00:00:00 2001 From: Emil Ghitta Date: Mon, 13 Oct 2025 14:57:28 +0300 Subject: [PATCH] Playwright: Fix test failures caused by the transition of Monitor from a premium to a freemium product --- playwright_tests/test_data/aaq_question.json | 8 +++++++- playwright_tests/test_data/general_data.json | 6 +++--- .../ask_a_question_tests/aaq_tests/test_aaq_form_page.py | 5 +---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/playwright_tests/test_data/aaq_question.json b/playwright_tests/test_data/aaq_question.json index abd1f212ffc..6349ae066f7 100644 --- a/playwright_tests/test_data/aaq_question.json +++ b/playwright_tests/test_data/aaq_question.json @@ -125,6 +125,12 @@ "Search, tag, and share": "search-tag-and-share", "Settings": "settings", "default_slug": "focus-firefox" + }, + "Mozilla Monitor": { + "Passwords and sign in": "passwords-and-sign-in", + "Privacy and security": "privacy-and-security", + "Settings": "settings", + "default_slug": "monitor" } } -} \ No newline at end of file +} diff --git a/playwright_tests/test_data/general_data.json b/playwright_tests/test_data/general_data.json index 65520a30cb7..5d70aed3108 100644 --- a/playwright_tests/test_data/general_data.json +++ b/playwright_tests/test_data/general_data.json @@ -6,15 +6,15 @@ "Firefox for Enterprise", "Thunderbird", "Thunderbird for Android", - "Firefox Focus" + "Firefox Focus", + "Mozilla Monitor" ], "premium_products": [ "MDN Plus", "Mozilla VPN", "Firefox Relay", "Pocket", - "Mozilla Account", - "Mozilla Monitor" + "Mozilla Account" ], "kb_article_categories": [ "Troubleshooting", diff --git a/playwright_tests/tests/ask_a_question_tests/aaq_tests/test_aaq_form_page.py b/playwright_tests/tests/ask_a_question_tests/aaq_tests/test_aaq_form_page.py index b7e638ec2c9..f5b0d209662 100644 --- a/playwright_tests/tests/ask_a_question_tests/aaq_tests/test_aaq_form_page.py +++ b/playwright_tests/tests/ask_a_question_tests/aaq_tests/test_aaq_form_page.py @@ -415,7 +415,7 @@ def test_system_details_information(page: Page, create_user_factory): with allure.step("Navigating to each product aaq form and and adding data without " "submitting the form"): for product in utilities.general_test_data["freemium_products"]: - if product == "Thunderbird" or product == "Thunderbird for Android": + if product in ("Thunderbird", "Thunderbird for Android", "Mozilla Monitor"): continue else: utilities.navigate_to_link( @@ -453,9 +453,6 @@ def test_system_details_information(page: Page, create_user_factory): assert sumo_pages.question_page.get_system_details_information( ) == troubleshooting_info - with allure.step("Deleting the posted question"): - sumo_pages.aaq_flow.deleting_question_flow() - # T5696704 @pytest.mark.aaqPage