tor-browser

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

test_1899072_passpoint_boingo_com.py (728B)


      1 import pytest
      2 
      3 URL = "https://passpoint.boingo.com/starttrial?w=420&h=699"
      4 
      5 SUPPORTED_CSS = "header + section.login"
      6 UNSUPPORTED_CSS = "header + section.unsupported"
      7 
      8 
      9 @pytest.mark.skip_platforms("windows")
     10 @pytest.mark.asyncio
     11 @pytest.mark.with_interventions
     12 async def test_enabled(client):
     13    await client.navigate(URL)
     14    client.await_css(SUPPORTED_CSS, is_displayed=True)
     15    assert not client.find_css(UNSUPPORTED_CSS, is_displayed=True)
     16 
     17 
     18 @pytest.mark.skip_platforms("windows")
     19 @pytest.mark.asyncio
     20 @pytest.mark.without_interventions
     21 async def test_disabled(client):
     22    await client.navigate(URL)
     23    client.await_css(UNSUPPORTED_CSS, is_displayed=True)
     24    assert not client.find_css(SUPPORTED_CSS, is_displayed=True)