tor-browser

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

test_1873166_108319_www_nsandi_com.py (656B)


      1 import pytest
      2 
      3 URL = "https://www.nsandi.com/"
      4 
      5 CHAT_BUTTON_CSS = "#GCLauncherbtn"
      6 UNSUPPORTED_TEXT = "Chrome or Safari"
      7 
      8 
      9 async def is_warning_shown(client):
     10    await client.navigate(URL)
     11    client.await_css(CHAT_BUTTON_CSS, is_displayed=True)
     12    return client.find_text(UNSUPPORTED_TEXT, is_displayed=True)
     13 
     14 
     15 @pytest.mark.only_platforms("android")
     16 @pytest.mark.asyncio
     17 @pytest.mark.with_interventions
     18 async def test_enabled(client):
     19    assert not await is_warning_shown(client)
     20 
     21 
     22 @pytest.mark.only_platforms("android")
     23 @pytest.mark.asyncio
     24 @pytest.mark.without_interventions
     25 async def test_disabled(client):
     26    assert await is_warning_shown(client)