test_1968640_shop_ticket-center-hohenschwangau-de.py (779B)
1 import pytest 2 3 URL = "https://shop.ticket-center-hohenschwangau.de/Shop/Index/en/39901" 4 TICKET_CSS = "#TicketListContainer .RespTicket" 5 SELECT_CSS = "select#nPlaces" 6 7 8 async def is_fastclick_active(client): 9 async with client.ensure_fastclick_activates(): 10 await client.navigate(URL) 11 client.await_css(TICKET_CSS, is_displayed=True).click() 12 return client.test_for_fastclick(client.await_css(SELECT_CSS)) 13 14 15 @pytest.mark.only_platforms("android") 16 @pytest.mark.asyncio 17 @pytest.mark.with_interventions 18 async def test_enabled(client): 19 assert not await is_fastclick_active(client) 20 21 22 @pytest.mark.only_platforms("android") 23 @pytest.mark.asyncio 24 @pytest.mark.without_interventions 25 async def test_disabled(client): 26 assert await is_fastclick_active(client)