tor-browser

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

test_1829944_411_ca.py (422B)


      1 import pytest
      2 
      3 URL = "https://411.ca"
      4 UNSUPPORTED_CSS = "ngb-alert.header-outdated-alert"
      5 
      6 
      7 @pytest.mark.asyncio
      8 @pytest.mark.with_interventions
      9 async def test_enabled(client):
     10    await client.navigate(URL)
     11    assert not client.find_css(UNSUPPORTED_CSS)
     12 
     13 
     14 @pytest.mark.asyncio
     15 @pytest.mark.without_interventions
     16 async def test_disabled(client):
     17    await client.navigate(URL)
     18    assert client.find_css(UNSUPPORTED_CSS)