test_1830739_1902471_springbokcasino_co_za.py (970B)
1 import pytest 2 3 URL = "https://lobby.springbokcasino.co.za:2572/lobby.aspx?skinid=2&springbok=2" 4 FIRST_GAME_CSS = ".home-view-games-row .gametile" 5 FIRST_GAME_PRACTICE_CSS = ( 6 ".detailDialog button:not(#dialogTitleBarCloseBtn).bg-buttonSecondary" 7 ) 8 UNSUPPORTED_CSS = ".unsupported-device-box" 9 SUPPORTED_CSS = "#game_main" 10 11 12 async def get_to_page(client): 13 await client.navigate(URL) 14 client.click(client.await_css(FIRST_GAME_CSS, is_displayed=True)) 15 client.soft_click(client.await_css(FIRST_GAME_PRACTICE_CSS, is_displayed=True)) 16 17 18 @pytest.mark.only_platforms("android") 19 @pytest.mark.asyncio 20 @pytest.mark.with_interventions 21 async def test_enabled(client): 22 await get_to_page(client) 23 assert client.await_css(SUPPORTED_CSS, timeout=30) 24 25 26 @pytest.mark.only_platforms("android") 27 @pytest.mark.asyncio 28 @pytest.mark.without_interventions 29 async def test_disabled(client): 30 await get_to_page(client) 31 assert client.await_css(UNSUPPORTED_CSS, timeout=30)