tor-browser

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

test_1622063_wp1-ext_usps_gov.py (588B)


      1 import pytest
      2 
      3 URL = "https://wp1-ext.usps.gov/sap/bc/webdynpro/sap/hrrcf_a_unreg_job_search"
      4 BLOCKED_TEXT = "This browser is not supported"
      5 UNBLOCKED_CSS = "#sapwd_main_window_root_"
      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)
     13    assert client.await_css(UNBLOCKED_CSS)
     14 
     15 
     16 @pytest.mark.only_platforms("android")
     17 @pytest.mark.asyncio
     18 @pytest.mark.without_interventions
     19 async def test_disabled(client):
     20    await client.navigate(URL)
     21    assert client.await_text(BLOCKED_TEXT)