tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_1448747_118757_discountcoffee_co_uk.py (717B)


      1 import pytest
      2 
      3 URL = "https://www.discountcoffee.co.uk/collections/ground-coffee-single-bags"
      4 SELECT_CSS = "select#BrowseBy"
      5 
      6 
      7 async def is_fastclick_active(client):
      8    async with client.ensure_fastclick_activates():
      9        await client.navigate(URL)
     10        select = client.await_css(SELECT_CSS, is_displayed=True)
     11        return client.test_for_fastclick(select)
     12 
     13 
     14 @pytest.mark.only_platforms("android")
     15 @pytest.mark.asyncio
     16 @pytest.mark.with_interventions
     17 async def test_enabled(client):
     18    assert not await is_fastclick_active(client)
     19 
     20 
     21 @pytest.mark.only_platforms("android")
     22 @pytest.mark.asyncio
     23 @pytest.mark.without_interventions
     24 async def test_disabled(client):
     25    assert await is_fastclick_active(client)