test_1898938_conference_amwell_com.py (674B)
1 import pytest 2 3 URL = "https://conference.amwell.com/" 4 5 SUPPORTED_CSS = "#code" 6 UNSUPPORTED_TITLE = "Incompatible Browser" 7 8 9 @pytest.mark.asyncio 10 @pytest.mark.with_interventions 11 async def test_enabled(client): 12 await client.navigate(URL, wait="complete") 13 client.await_css(SUPPORTED_CSS, is_displayed=True) 14 assert UNSUPPORTED_TITLE != client.execute_script("return document.title") 15 16 17 @pytest.mark.asyncio 18 @pytest.mark.without_interventions 19 async def test_disabled(client, wait="complete"): 20 await client.navigate(URL) 21 assert UNSUPPORTED_TITLE == client.execute_script("return document.title") 22 assert not client.find_css(SUPPORTED_CSS, is_displayed=True)