test_1448747_104998_renewd_com_au.py (646B)
1 import pytest 2 3 URL = "https://renewd.com.au" 4 ADD_TO_CART_CSS = "button[id].btn.add_to_cart" 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(ADD_TO_CART_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)