test_1898936_app_stormx_io.py (1057B)
1 import pytest 2 3 URL = "https://app.stormx.io/" 4 SUPPORTED_CSS = "button.rs-btn-primary" 5 UNSUPPORTED_TEXT = "Browser is not supported" 6 7 8 @pytest.mark.skip_platforms("android") 9 @pytest.mark.asyncio 10 @pytest.mark.with_interventions 11 async def test_enabled(client): 12 await client.navigate(URL, wait="none") 13 assert client.await_css(SUPPORTED_CSS, is_displayed=True) 14 assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True) 15 16 17 @pytest.mark.skip_platforms("android") 18 @pytest.mark.asyncio 19 @pytest.mark.without_interventions 20 async def test_disabled(client): 21 await client.navigate(URL, wait="none") 22 assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True) 23 assert not client.find_css(SUPPORTED_CSS, is_displayed=True) 24 25 26 @pytest.mark.only_platforms("android") 27 @pytest.mark.asyncio 28 @pytest.mark.without_interventions 29 async def test_not_blocked_on_android(client): 30 await client.navigate(URL, wait="none") 31 assert client.await_css(SUPPORTED_CSS, is_displayed=True) 32 assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True)