test_2005520_portal_adtpulse_com.py (581B)
1 import pytest 2 3 URL = "https://portal.adtpulse.com/myhome/30.0.0-61/access/signin.jsp" 4 UNSUPPORTED_TEXT = "will not work properly on your operating system and browser" 5 6 7 @pytest.mark.asyncio 8 @pytest.mark.with_interventions 9 async def test_enabled(client): 10 await client.navigate(URL) 11 await client.stall(2) 12 assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True) 13 14 15 @pytest.mark.asyncio 16 @pytest.mark.without_interventions 17 async def test_disabled(client): 18 await client.navigate(URL, wait="none") 19 assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True)