commit 3e28f91dd649df6e49fba4bca7d12521d4e7091c
parent 70cc274cf6bf8006f2fb37667f7c5fb2c57e479b
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Thu, 9 Oct 2025 01:01:18 +0000
Bug 1873166 - update our webcompat intervention for nsandi.com; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D267979
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/browser/extensions/webcompat/injections/css/bug1873166-nsandi.com-hide-unsupported-message.css b/browser/extensions/webcompat/injections/css/bug1873166-nsandi.com-hide-unsupported-message.css
@@ -13,6 +13,7 @@
* yet the message remains. This intervention hides that message.
*/
.browser-warning-fade,
+#unsupported-browser,
#unsupported_browser {
display: none !important;
}
diff --git a/testing/webcompat/interventions/tests/test_1873166_108319_www_nsandi_com.py b/testing/webcompat/interventions/tests/test_1873166_108319_www_nsandi_com.py
@@ -3,21 +3,20 @@ import pytest
URL = "https://www.nsandi.com/"
CHAT_BUTTON_CSS = "#GCLauncherbtn"
-UNSUPPORTED_CSS = "#unsupported-browser"
+UNSUPPORTED_TEXT = "Chrome or Safari"
async def is_warning_shown(client):
await client.navigate(URL)
client.await_css(CHAT_BUTTON_CSS, is_displayed=True)
- client.await_css(UNSUPPORTED_CSS)
- return client.find_css(UNSUPPORTED_CSS, is_displayed=True)
+ return client.find_text(UNSUPPORTED_TEXT, is_displayed=True)
@pytest.mark.only_platforms("android")
@pytest.mark.asyncio
@pytest.mark.with_interventions
async def test_enabled(client):
- assert await is_warning_shown(client)
+ assert not await is_warning_shown(client)
@pytest.mark.only_platforms("android")