test_1830739_1964350_bonusblitz_com.py (773B)
1 import pytest 2 3 URL = "https://bonusblitz.com/game/caesars-empire" 4 PRACTICE_FIRST_GAME_CSS = "button.cta.practice" 5 GAME_IFRAME_CSS = "iframe#game" 6 UNSUPPORTED_CSS = ".unsupported-device-box" 7 SUPPORTED_CSS = "#game_main" 8 9 10 async def get_to_page(client): 11 await client.navigate(URL) 12 client.switch_to_frame(client.await_css(GAME_IFRAME_CSS)) 13 14 15 @pytest.mark.only_platforms("android") 16 @pytest.mark.asyncio 17 @pytest.mark.with_interventions 18 async def test_enabled(client): 19 await get_to_page(client) 20 assert client.await_css(SUPPORTED_CSS, timeout=30) 21 22 23 @pytest.mark.only_platforms("android") 24 @pytest.mark.asyncio 25 @pytest.mark.without_interventions 26 async def test_disabled(client): 27 await get_to_page(client) 28 assert client.await_css(UNSUPPORTED_CSS, timeout=30)