commit 4fe8c4e9ffe2ad25bd7278dcf4159aa3567cd6be
parent 813b75b82462b89abc58dbc251c2b553fb8282d1
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Wed, 8 Oct 2025 22:50:23 +0000
Bug 1954427 - add an Android-only UA override for eolno.nokas.com to get their mobile layout; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D268021
Diffstat:
2 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -4628,6 +4628,21 @@
}
]
},
+ "1954427": {
+ "label": "eolno.nokas.com",
+ "bugs": {
+ "1954427": {
+ "issue": "desktop-layout-not-mobile",
+ "matches": ["*://eolno.nokas.com/*"]
+ }
+ },
+ "interventions": [
+ {
+ "platforms": ["android"],
+ "ua_string": ["Chrome_with_FxQuantum"]
+ }
+ ]
+ },
"1955529": {
"label": "kancelaria.kros.sk",
"bugs": {
diff --git a/testing/webcompat/interventions/tests/test_1954427_eolno_nokas_com.py b/testing/webcompat/interventions/tests/test_1954427_eolno_nokas_com.py
@@ -0,0 +1,23 @@
+import pytest
+
+URL = "https://eolno.nokas.com/EmployeeOnlineHealth/NOLIVE/Login"
+DESKTOP_CSS = "html:not([ng-app='employeeonline.mobile.core'])"
+MOBILE_CSS = "html[ng-app='employeeonline.mobile.core']"
+
+
+@pytest.mark.only_platforms("android")
+@pytest.mark.asyncio
+@pytest.mark.with_interventions
+async def test_enabled(client):
+ await client.navigate(URL, wait="none")
+ assert client.await_css(MOBILE_CSS, is_displayed=True)
+ assert not client.find_css(DESKTOP_CSS, is_displayed=True)
+
+
+@pytest.mark.only_platforms("android")
+@pytest.mark.asyncio
+@pytest.mark.without_interventions
+async def test_disabled(client):
+ await client.navigate(URL, wait="none")
+ assert client.await_css(DESKTOP_CSS, is_displayed=True)
+ assert not client.find_css(MOBILE_CSS, is_displayed=True)