test_1960316_wms_sso_biglobe_ne_jp.py (809B)
1 import pytest 2 3 URL = "https://wms.sso.biglobe.ne.jp/webmail/index-tui.jsp?v=0.30-0" 4 5 SUPPORTED_URL = "https://auth.sso.biglobe.ne.jp/mail/" 6 UNSUPPORTED_URL = "https://wms.sso.biglobe.ne.jp/webmail/notsupport.jsp" 7 8 9 # don't skip android, as we want to ensure they do not begin blocking Firefox there as well. 10 @pytest.mark.asyncio 11 @pytest.mark.with_interventions 12 async def test_enabled(client): 13 redirect = await client.promise_navigation_begins(url=SUPPORTED_URL, timeout=20) 14 await client.navigate(URL) 15 assert await redirect 16 17 18 @pytest.mark.skip_platforms("android") 19 @pytest.mark.asyncio 20 @pytest.mark.without_interventions 21 async def test_disabled(client): 22 redirect = await client.promise_navigation_begins(url=UNSUPPORTED_URL, timeout=20) 23 await client.navigate(URL) 24 assert await redirect