tor-browser

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

test_1892073_snapchat_com.py (801B)


      1 import pytest
      2 
      3 URL = "https://web.snapchat.com/"
      4 
      5 SUPPORTED_CSS = "#__next"
      6 UNSUPPORTED_TEXT = "Browser not supported"
      7 
      8 
      9 @pytest.mark.skip_platforms("android")
     10 @pytest.mark.only_channels("nightly")
     11 @pytest.mark.asyncio
     12 @pytest.mark.with_interventions
     13 async def test_enabled(client):
     14    await client.navigate(URL, wait="none")
     15    assert client.await_css(SUPPORTED_CSS, is_displayed=True)
     16    assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True)
     17 
     18 
     19 @pytest.mark.skip_platforms("android")
     20 @pytest.mark.only_channels("nightly")
     21 @pytest.mark.asyncio
     22 @pytest.mark.without_interventions
     23 async def test_disabled(client):
     24    await client.navigate(URL, wait="none")
     25    assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True)
     26    assert not client.find_css(SUPPORTED_CSS, is_displayed=True)