tor-browser

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

test_1836141_yabbycasino_com.py (703B)


      1 import pytest
      2 
      3 URL = "https://yabbycasino.com/game/aces-and-eights"
      4 IFRAME_CSS = "iframe#game"
      5 GOOD_CSS = "#rotateDevice"
      6 BAD_CSS = ".unsupported-device-box"
      7 
      8 
      9 @pytest.mark.only_platforms("android")
     10 @pytest.mark.asyncio
     11 @pytest.mark.with_interventions
     12 async def test_enabled(client):
     13    await client.navigate(URL)
     14    client.switch_to_frame(client.await_css(IFRAME_CSS))
     15    assert client.await_css(GOOD_CSS, is_displayed=True)
     16 
     17 
     18 @pytest.mark.only_platforms("android")
     19 @pytest.mark.asyncio
     20 @pytest.mark.without_interventions
     21 async def test_disabled(client):
     22    await client.navigate(URL)
     23    client.switch_to_frame(client.await_css(IFRAME_CSS))
     24    assert client.await_css(BAD_CSS, is_displayed=True)