tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit efaab113e1b76f6e75897402d9802fa5ae684ca1
parent faebe58ecf8158b4c842f7a54c0fd2596fd99b4a
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Thu,  9 Oct 2025 01:01:19 +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:
Mbrowser/extensions/webcompat/data/interventions.json | 15+++++++++++++++
Atesting/webcompat/interventions/tests/test_1954427_eolno_nokas_com.py | 23+++++++++++++++++++++++
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)