tor-browser

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

test_1912923_livelesson_class_com.py (688B)


      1 import pytest
      2 
      3 URL = "https://livelesson.class.com/class/8a731bd4-17f2-4bf6-a1b4-4f3561cab2bd"
      4 
      5 SUPPORTED_TEXT = "Join your class session"
      6 UNSUPPORTED_TEXT = "use Microsoft Edge or Google Chrome"
      7 
      8 
      9 @pytest.mark.asyncio
     10 @pytest.mark.with_interventions
     11 async def test_enabled(client):
     12    await client.navigate(URL)
     13    client.await_text(SUPPORTED_TEXT, is_displayed=True)
     14    assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True)
     15 
     16 
     17 @pytest.mark.asyncio
     18 @pytest.mark.without_interventions
     19 async def test_disabled(client):
     20    await client.navigate(URL)
     21    client.await_text(UNSUPPORTED_TEXT, is_displayed=True)
     22    assert not client.find_text(SUPPORTED_TEXT, is_displayed=True)