tor-browser

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

test_1970810_camper-van-week-end_fr.py (681B)


      1 import pytest
      2 
      3 URL = "https://www.camper-van-week-end.fr/chantilly/"
      4 LOADING_CSS = "#pageloader"
      5 ERROR_MSG = "TypeError: can't access property 0, match is null"
      6 
      7 
      8 @pytest.mark.only_platforms("linux")
      9 @pytest.mark.asyncio
     10 @pytest.mark.with_interventions
     11 async def test_enabled(client):
     12    await client.navigate(URL, wait="none")
     13    client.await_css(LOADING_CSS, is_displayed=True)
     14    client.await_css(LOADING_CSS, is_displayed=False)
     15 
     16 
     17 @pytest.mark.only_platforms("linux")
     18 @pytest.mark.asyncio
     19 @pytest.mark.without_interventions
     20 async def test_disabled(client):
     21    await client.navigate(URL, await_console_message=ERROR_MSG)
     22    client.await_css(LOADING_CSS, is_displayed=True)