test_1950100_aylak_com.py (584B)
1 import pytest 2 3 URL = "https://aylak.com/okey-oyna/7" 4 5 SUPPORTED_CSS = "#room" 6 UNSUPPORTED_CSS = "applet" 7 8 9 @pytest.mark.asyncio 10 @pytest.mark.with_interventions 11 async def test_enabled(client): 12 await client.navigate(URL) 13 assert client.await_css(SUPPORTED_CSS) 14 assert not client.find_css(UNSUPPORTED_CSS, is_displayed=True) 15 16 17 @pytest.mark.asyncio 18 @pytest.mark.without_interventions 19 async def test_disabled(client): 20 await client.navigate(URL) 21 assert client.await_css(UNSUPPORTED_CSS, is_displayed=True) 22 assert not client.find_css(SUPPORTED_CSS, is_displayed=True)