test_1448747_101356_dylantalkstone_com.py (981B)
1 import time 2 3 import pytest 4 5 URL = "https://dylantalkstone.com/collections/tele-pickups/products/flat-6-tele-pickups" 6 SELECT_CSS = "select#productSelect-option-0" 7 8 9 async def is_fastclick_active(client): 10 async with client.ensure_fastclick_activates(): 11 # The page endlessly stalls while loading, but if we force-stop it then 12 # that triggers it to show the broken selector right away. 13 await client.navigate(URL, wait="none") 14 time.sleep(3) 15 client.execute_script("window.stop()") 16 return client.test_for_fastclick( 17 client.await_css(SELECT_CSS, is_displayed=True) 18 ) 19 20 21 @pytest.mark.only_platforms("android") 22 @pytest.mark.asyncio 23 @pytest.mark.with_interventions 24 async def test_enabled(client): 25 assert not await is_fastclick_active(client) 26 27 28 @pytest.mark.only_platforms("android") 29 @pytest.mark.asyncio 30 @pytest.mark.without_interventions 31 async def test_disabled(client): 32 assert await is_fastclick_active(client)