test_1999488_languageacademy_com_au.py (619B)
1 import pytest 2 3 URL = "https://www.languageacademy.com.au/" 4 5 UNSUPPORTED_TEXT = "BROWSER NOT SUPPORTED" 6 APP_RECOMMENDATION_CSS = "#staticBackdrop" 7 8 9 @pytest.mark.asyncio 10 @pytest.mark.with_interventions 11 async def test_enabled(client): 12 await client.navigate(URL) 13 client.hide_elements(APP_RECOMMENDATION_CSS) 14 assert not client.find_text(UNSUPPORTED_TEXT, 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 client.hide_elements(APP_RECOMMENDATION_CSS) 22 assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True)