test_1830739_1902446_casinobrango_com.py (744B)
1 import pytest 2 3 URL = "https://casinobrango.com/instant-play?play=hyper-wins" 4 IFRAME_CSS = "iframe.gameiframe" 5 UNSUPPORTED_CSS = ".unsupported-device-box" 6 SUPPORTED_CSS = "#game_main" 7 8 9 async def get_to_page(client): 10 await client.navigate(URL) 11 client.switch_to_frame(client.await_css(IFRAME_CSS, timeout=45)) 12 13 14 @pytest.mark.only_platforms("android") 15 @pytest.mark.asyncio 16 @pytest.mark.with_interventions 17 async def test_enabled(client): 18 await get_to_page(client) 19 assert client.await_css(SUPPORTED_CSS, timeout=30) 20 21 22 @pytest.mark.only_platforms("android") 23 @pytest.mark.asyncio 24 @pytest.mark.without_interventions 25 async def test_disabled(client): 26 await get_to_page(client) 27 assert client.await_css(UNSUPPORTED_CSS, timeout=30)