test_1973019_mitsukoshi_mistore_jp.py (704B)
1 import pytest 2 from webdriver import NoSuchElementException 3 4 URL = "https://mitsukoshi.mistore.jp/bunka/culture/index_sp.html" 5 HERO_CSS = "#add-main" 6 7 8 async def does_redirect(client): 9 await client.navigate(URL) 10 try: 11 client.await_css(HERO_CSS, is_displayed=True, timeout=10) 12 return False 13 except NoSuchElementException: 14 return True 15 16 17 @pytest.mark.only_platforms("android") 18 @pytest.mark.asyncio 19 @pytest.mark.with_interventions 20 async def test_enabled(client): 21 assert not await does_redirect(client) 22 23 24 @pytest.mark.only_platforms("android") 25 @pytest.mark.asyncio 26 @pytest.mark.without_interventions 27 async def test_disabled(client): 28 assert await does_redirect(client)