test_1913720_h2breeze_com.py (1036B)
1 import pytest 2 3 URL = "https://h2breeze.com/" 4 5 SUCCESS_CSS = "#email" 6 BLOCKED_TEXT = "403 Forbidden" 7 8 9 @pytest.mark.skip_platforms("android") 10 @pytest.mark.asyncio 11 @pytest.mark.with_interventions 12 async def test_enabled(client): 13 await client.navigate(URL, wait="none") 14 assert client.await_css(SUCCESS_CSS, is_displayed=True, timeout=20) 15 assert not client.find_text(BLOCKED_TEXT, is_displayed=True) 16 17 18 @pytest.mark.skip_platforms("android") 19 @pytest.mark.asyncio 20 @pytest.mark.without_interventions 21 async def test_disabled(client): 22 await client.navigate(URL, wait="none") 23 assert client.await_text(BLOCKED_TEXT, is_displayed=True, timeout=20) 24 assert not client.find_css(SUCCESS_CSS, is_displayed=True) 25 26 27 @pytest.mark.only_platforms("android") 28 @pytest.mark.asyncio 29 @pytest.mark.without_interventions 30 async def test_disabled_mobile(client): 31 await client.navigate(URL, wait="none") 32 assert client.await_css(SUCCESS_CSS, is_displayed=True, timeout=20) 33 assert not client.find_text(BLOCKED_TEXT, is_displayed=True)