tor-browser

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

test_1954427_eolno_nokas_com.py (790B)


      1 import pytest
      2 
      3 URL = "https://eolno.nokas.com/EmployeeOnlineHealth/NOLIVE/Login"
      4 DESKTOP_CSS = "html:not([ng-app='employeeonline.mobile.core'])"
      5 MOBILE_CSS = "html[ng-app='employeeonline.mobile.core']"
      6 
      7 
      8 @pytest.mark.only_platforms("android")
      9 @pytest.mark.asyncio
     10 @pytest.mark.with_interventions
     11 async def test_enabled(client):
     12    await client.navigate(URL, wait="none")
     13    assert client.await_css(MOBILE_CSS, is_displayed=True)
     14    assert not client.find_css(DESKTOP_CSS, is_displayed=True)
     15 
     16 
     17 @pytest.mark.only_platforms("android")
     18 @pytest.mark.asyncio
     19 @pytest.mark.without_interventions
     20 async def test_disabled(client):
     21    await client.navigate(URL, wait="none")
     22    assert client.await_css(DESKTOP_CSS, is_displayed=True)
     23    assert not client.find_css(MOBILE_CSS, is_displayed=True)