test_1994704_avlguest_justice_nsw_gov_au.py (984B)
1 import pytest 2 3 URL = "https://avlguest.justice.nsw.gov.au/call/test.link" 4 IFRAME_CSS = "#widget-frame" 5 ERROR_MSG = "ReferenceError: mozRTCPeerConnection is not defined" 6 SUCCESS_CSS = "a.install.btn-success" 7 INSTALL_APP_CSS = "#installApp" 8 9 10 @pytest.mark.skip_platforms("android") 11 @pytest.mark.asyncio 12 @pytest.mark.with_interventions 13 async def test_enabled(client): 14 await client.navigate(URL, wait="none") 15 client.switch_to_frame(client.await_css(IFRAME_CSS)) 16 assert client.await_css(SUCCESS_CSS, is_displayed=True) 17 18 19 @pytest.mark.skip_platforms("android") 20 @pytest.mark.asyncio 21 @pytest.mark.without_interventions 22 async def test_disabled(client): 23 await client.navigate(URL, await_console_message=ERROR_MSG) 24 25 26 @pytest.mark.only_platforms("android") 27 @pytest.mark.asyncio 28 @pytest.mark.with_interventions 29 async def test_app_installation_requested_on_android(client): 30 await client.navigate(URL, wait="none") 31 assert client.await_css(INSTALL_APP_CSS, is_displayed=True)