test_1743627_renaud-bray_com.py (644B)
1 import pytest 2 3 URL = "https://www.renaud-bray.com/accueil.aspx" 4 ERROR_MSG = "ua.split(...)[1] is undefined" 5 MENU_CSS = "#pageHeader_menuStores" 6 7 8 @pytest.mark.only_platforms("android") 9 @pytest.mark.asyncio 10 @pytest.mark.with_interventions 11 async def test_enabled(client): 12 await client.navigate(URL) 13 assert client.execute_script( 14 """ 15 return arguments[0].style.zIndex == "7000"; 16 """, 17 client.await_css(MENU_CSS), 18 ) 19 20 21 @pytest.mark.only_platforms("android") 22 @pytest.mark.asyncio 23 @pytest.mark.without_interventions 24 async def test_disabled(client): 25 await client.navigate(URL, await_console_message=ERROR_MSG)