test_1986875_electrosport_com.py (635B)
1 import pytest 2 3 URL = "https://www.electrosport.com/" 4 SELECT_CSS = "select#es_vs_type" 5 6 7 async def is_fastclick_active(client): 8 async with client.ensure_fastclick_activates(): 9 await client.navigate(URL) 10 return client.test_for_fastclick(client.await_css(SELECT_CSS)) 11 12 13 @pytest.mark.only_platforms("android") 14 @pytest.mark.asyncio 15 @pytest.mark.with_interventions 16 async def test_enabled(client): 17 assert not await is_fastclick_active(client) 18 19 20 @pytest.mark.only_platforms("android") 21 @pytest.mark.asyncio 22 @pytest.mark.without_interventions 23 async def test_disabled(client): 24 assert await is_fastclick_active(client)