tor-browser

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

test_1898932_account_gov_il.py (709B)


      1 import asyncio
      2 
      3 import pytest
      4 
      5 URL = "https://account.gov.il/sspr/public/newuser?forwardURL=https%3A%2F%2Flogin.gov.il%2Fnidp%2Fsaml2%2Fsso%3Fid%3DusernamePasswordSMSOtp%26sid%3D0%26option%3Dcredential%26sid%3D0&locale=iw"
      6 
      7 SUPPORTED_CSS = "#givenName"
      8 UNSUPPORTED_CSS = "#bgBrowserCheck"
      9 
     10 
     11 @pytest.mark.asyncio
     12 @pytest.mark.with_interventions
     13 async def test_enabled(client):
     14    await client.navigate(URL)
     15    await asyncio.sleep(1)
     16    assert not client.is_displayed(client.find_css(UNSUPPORTED_CSS))
     17 
     18 
     19 @pytest.mark.asyncio
     20 @pytest.mark.without_interventions
     21 async def test_disabled(client):
     22    await client.navigate(URL)
     23    await asyncio.sleep(1)
     24    client.await_css(UNSUPPORTED_CSS, is_displayed=True)