commit b36280af65b4b62caf2195c77e36c0a213731751 parent 778d6858a6673a35a4af11af04f2c3166fab0500 Author: Thomas Wisniewski <twisniewski@mozilla.com> Date: Wed, 5 Nov 2025 18:20:15 +0000 Bug 1994456 - fix webcompat interventions automated tests; r=ksenia Differential Revision: https://phabricator.services.mozilla.com/D271341 Diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/testing/webcompat/interventions/tests/test_1898926_dgslms_aduacademy_in.py b/testing/webcompat/interventions/tests/test_1898926_dgslms_aduacademy_in.py @@ -20,5 +20,5 @@ async def test_enabled(client): @pytest.mark.without_interventions async def test_disabled(client): await client.navigate(URL, wait="none") - assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True) + assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True, timeout=45) assert not client.find_css(SUPPORTED_CSS, is_displayed=True) diff --git a/testing/webcompat/interventions/tests/test_1899066_app_bookcreator_com.py b/testing/webcompat/interventions/tests/test_1899066_app_bookcreator_com.py @@ -2,7 +2,7 @@ import pytest URL = "https://app.bookcreator.com/sign-in" -SIGN_IN_CSS = ".sign-in-button" +SIGN_IN_CSS = "[data-testid=student-sign-in]" UNSUPPORTED_TEXT = "Firefox is not an officially supported browser" diff --git a/testing/webcompat/interventions/tests/test_1939248_rosasthai_com.py b/testing/webcompat/interventions/tests/test_1939248_rosasthai_com.py @@ -10,6 +10,7 @@ FIRST_CARD_CSS = "#location-results [id^=card-]" async def does_clicking_work(client): await client.navigate(URL, wait="none") + client.await_css(COOKIES_CSS, is_displayed=True) client.hide_elements(COOKIES_CSS) # on failure, the location cards don't load. we also confirm that the # cards change after clicking "view all", just in case.