commit a7e931db6dda646332fba4f4a22a62dc4bcd3660
parent 46c2a5935bb4a2fda4dad8ad6779457010d7604a
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Tue, 4 Nov 2025 18:29:45 +0000
Bug 1997883 - add a UA override for pwa.samsungglobalgoals.com; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D271269
Diffstat:
2 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -5950,6 +5950,21 @@
}
]
},
+ "1997883": {
+ "label": "pwa.samsungglobalgoals.com",
+ "bugs": {
+ "1997883": {
+ "issue": "firefox-blocked-completely",
+ "matches": ["*://pwa.samsungglobalgoals.com/*"]
+ }
+ },
+ "interventions": [
+ {
+ "platforms": ["all"],
+ "ua_string": ["add_Chrome"]
+ }
+ ]
+ },
"1997687": {
"label": "sakti.kemenkeu.go.id",
"bugs": {
diff --git a/testing/webcompat/interventions/tests/test_1997883_pwa_samsungglobalgoals_com.py b/testing/webcompat/interventions/tests/test_1997883_pwa_samsungglobalgoals_com.py
@@ -0,0 +1,25 @@
+import pytest
+
+URL = "https://pwa.samsungglobalgoals.com/settings"
+
+SIGN_IN_TEXT = "Sign in to use Donate with Friends"
+SUPPORTED_TEXT = "Choose sign in method"
+UNSUPPORTED_TEXT = "Open in browser to continue"
+
+
+@pytest.mark.asyncio
+@pytest.mark.with_interventions
+async def test_enabled(client):
+ await client.navigate(URL, wait="none")
+ client.soft_click(client.await_text(SIGN_IN_TEXT, is_displayed=True))
+ assert client.await_text(SUPPORTED_TEXT, is_displayed=True)
+ assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True)
+
+
+@pytest.mark.asyncio
+@pytest.mark.without_interventions
+async def test_disabled(client):
+ await client.navigate(URL, wait="none")
+ client.soft_click(client.await_text(SIGN_IN_TEXT, is_displayed=True))
+ assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True)
+ assert not client.find_text(SUPPORTED_TEXT, is_displayed=True)