tor-browser

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

test_1913099_whooshmotorsports_com.py (761B)


      1 import pytest
      2 
      3 URL = "https://whooshmotorsports.com/collections/2013-ford-focus-st/products/copy-of-whoosh-motorsports-performance-coil-packs-2014-2019-focus-st-2-0l"
      4 SELECT_CSS = "select#productSelect-option-0"
      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)