tor-browser

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

test_1966585_hiskin_care.py (615B)


      1 import pytest
      2 
      3 URL = "https://hiskin.care/pages/complete-booking"
      4 IFRAME_CSS = "iframe[src='https://booking-v3.hiskin.care/']"
      5 
      6 
      7 async def is_frame_visible(client):
      8    await client.navigate(URL, wait="none")
      9    frame = client.await_css(IFRAME_CSS, is_displayed=True)
     10    return client.execute_script("return arguments[0].clientHeight > 0", frame)
     11 
     12 
     13 @pytest.mark.asyncio
     14 @pytest.mark.with_interventions
     15 async def test_enabled(client):
     16    assert await is_frame_visible(client)
     17 
     18 
     19 @pytest.mark.asyncio
     20 @pytest.mark.without_interventions
     21 async def test_disabled(client):
     22    assert not await is_frame_visible(client)