tor-browser

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

test_1899063_onlinestep_pgc_edu.py (515B)


      1 import asyncio
      2 
      3 import pytest
      4 
      5 URL = "https://onlinestep.pgc.edu/"
      6 
      7 UNSUPPORTED_CSS = "a[href*='google.com/chrome']"
      8 
      9 
     10 @pytest.mark.asyncio
     11 @pytest.mark.with_interventions
     12 async def test_enabled(client):
     13    await client.navigate(URL)
     14    await asyncio.sleep(3)
     15    assert not client.find_css(UNSUPPORTED_CSS, is_displayed=True)
     16 
     17 
     18 @pytest.mark.asyncio
     19 @pytest.mark.without_interventions
     20 async def test_disabled(client):
     21    await client.navigate(URL)
     22    assert client.await_css(UNSUPPORTED_CSS, is_displayed=True)