tor-browser

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

test_1950807_sus_softadmin_se.py (666B)


      1 import pytest
      2 
      3 URL = "https://sus.softadmin.se/admin/login.aspx"
      4 SUPPORTED_CSS = "#UsernameTextBox"
      5 UNSUPPORTED_CSS = "#BlockingMessagePanel"
      6 
      7 
      8 @pytest.mark.asyncio
      9 @pytest.mark.with_interventions
     10 async def test_enabled(client):
     11    await client.navigate(URL, wait="none")
     12    assert client.await_css(SUPPORTED_CSS, is_displayed=True)
     13    assert not client.find_css(UNSUPPORTED_CSS, is_displayed=True)
     14 
     15 
     16 @pytest.mark.asyncio
     17 @pytest.mark.without_interventions
     18 async def test_disabled(client):
     19    await client.navigate(URL, wait="none")
     20    assert client.await_css(UNSUPPORTED_CSS, is_displayed=True)
     21    assert not client.find_css(SUPPORTED_CSS, is_displayed=True)