tor-browser

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

test_1448747_100145_bathpublishing_com.py (737B)


      1 import pytest
      2 
      3 URL = "https://bathpublishing.com/products/clinical-negligence-made-clear-a-guide-for-patients-professionals"
      4 SELECT_CSS = "select#productSelect--product-template-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)