test_1906654_dublinexpress_ie.py (773B)
1 import pytest 2 3 URL = "https://www.dublinexpress.ie/" 4 COOKIE_BANNER_CSS = "#onetrust-consent-sdk" 5 SELECT_CSS = "select#from-dropdown" 6 7 8 async def is_fastclick_active(client): 9 async with client.ensure_fastclick_activates(): 10 await client.navigate(URL) 11 client.hide_elements(COOKIE_BANNER_CSS) 12 select = client.await_css(SELECT_CSS, is_displayed=True) 13 return client.test_for_fastclick(select) 14 15 16 @pytest.mark.only_platforms("android") 17 @pytest.mark.asyncio 18 @pytest.mark.with_interventions 19 async def test_enabled(client): 20 assert not await is_fastclick_active(client) 21 22 23 @pytest.mark.only_platforms("android") 24 @pytest.mark.asyncio 25 @pytest.mark.without_interventions 26 async def test_disabled(client): 27 assert await is_fastclick_active(client)