tor-browser

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

test_1969165-mpi_mb_ca.py (628B)


      1 import pytest
      2 
      3 URL = "https://appointments.mpi.mb.ca/mpi/main/ReserveTime/StartReservation?pageId=01aa10ce-34d6-45ec-b861-86c8811239ca&buttonId=5367449e-20b9-470a-a022-f9d4df067cd6&culture=en&uiCulture=en"
      4 
      5 CALENDAR_CSS = "#rs-calendar"
      6 ERROR_MSG = "getWeekInfo is not a function"
      7 
      8 
      9 @pytest.mark.asyncio
     10 @pytest.mark.with_interventions
     11 async def test_enabled(client):
     12    await client.navigate(URL, wait="none")
     13    assert client.await_css(CALENDAR_CSS, is_displayed=True)
     14 
     15 
     16 @pytest.mark.asyncio
     17 @pytest.mark.without_interventions
     18 async def test_disabled(client):
     19    await client.navigate(URL, await_console_message=ERROR_MSG)