test_1898952_digits_t-mobile_com.py (610B)
1 import pytest 2 3 URL = "https://digits.t-mobile.com/" 4 BLOCKED_CSS = "#incompatible" 5 NOT_BLOCKED_CSS = "#compatible" 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) 13 assert client.await_css(NOT_BLOCKED_CSS) 14 assert not client.find_css(BLOCKED_CSS) 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) 22 assert client.await_css(BLOCKED_CSS) 23 assert not client.find_css(NOT_BLOCKED_CSS)