test_1902474_lg_jio_com.py (856B)
1 import pytest 2 3 URL = "https://lg.jio.com/" 4 CONTINUE_BUTTON_CSS = "#contBtn" 5 SUBMIT_BUTTON_CSS = "#submitBtn" 6 UNSUPPORTED_ALERT = "Please open website on Chrome, Firefox or Safari." 7 8 9 @pytest.mark.only_platforms("android") 10 @pytest.mark.asyncio 11 @pytest.mark.with_interventions 12 async def test_enabled(client): 13 await client.navigate(URL, wait="none") 14 client.await_css(CONTINUE_BUTTON_CSS, is_displayed=True, timeout=30).click() 15 assert client.await_css(SUBMIT_BUTTON_CSS, is_displayed=True) 16 assert not await client.find_alert(delay=3) 17 18 19 @pytest.mark.only_platforms("android") 20 @pytest.mark.asyncio 21 @pytest.mark.without_interventions 22 async def test_disabled(client): 23 await client.navigate(URL, wait="none") 24 client.await_css(CONTINUE_BUTTON_CSS, is_displayed=True, timeout=30).click() 25 assert await client.await_alert(UNSUPPORTED_ALERT)