tor-browser

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

test_1925995_collinsdictionary.py (562B)


      1 import pytest
      2 
      3 URL = "https://www.collinsdictionary.com/us/dictionary/english-pronunciations/valuable"
      4 LOGIN_CSS = "div.play-button"
      5 
      6 
      7 @pytest.mark.asyncio
      8 @pytest.mark.with_interventions
      9 async def test_enabled(client):
     10    await client.navigate(URL)
     11    assert client.await_css(LOGIN_CSS, is_displayed=True)
     12 
     13 
     14 @pytest.mark.asyncio
     15 @pytest.mark.without_interventions
     16 async def test_disabled(client):
     17    await client.navigate(
     18        URL,
     19        await_console_message="TypeError: error loading dynamically imported module: https://openfpcdn.io/botd/v1",
     20    )