tor-browser

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

test_1966377_nvidia_com.py (557B)


      1 import pytest
      2 
      3 URL = "https://nvidia.com/en-eu"
      4 
      5 
      6 async def is_content_offscreen(client):
      7    await client.navigate(URL)
      8    return client.execute_script("return document.body.scrollWidth > screen.width")
      9 
     10 
     11 @pytest.mark.only_platforms("android")
     12 @pytest.mark.asyncio
     13 @pytest.mark.with_interventions
     14 async def test_enabled(client):
     15    assert not await is_content_offscreen(client)
     16 
     17 
     18 @pytest.mark.only_platforms("android")
     19 @pytest.mark.asyncio
     20 @pytest.mark.without_interventions
     21 async def test_disabled(client):
     22    assert await is_content_offscreen(client)