tor-browser

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

test_1898989_mymsc_com.py (590B)


      1 import asyncio
      2 
      3 import pytest
      4 
      5 URL = "https://www.mymsc.com/mymsc"
      6 UNSUPPORTED_TEXT = "Browser not supported"
      7 
      8 
      9 @pytest.mark.skip_platforms("android")
     10 @pytest.mark.asyncio
     11 @pytest.mark.with_interventions
     12 async def test_enabled(client):
     13    await client.navigate(URL)
     14    await asyncio.sleep(3)
     15    assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True)
     16 
     17 
     18 @pytest.mark.skip_platforms("android")
     19 @pytest.mark.asyncio
     20 @pytest.mark.without_interventions
     21 async def test_disabled(client):
     22    await client.navigate(URL)
     23    assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True)