tor-browser

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

test_1997575_perplexity_ai.py (826B)


      1 import pytest
      2 
      3 URL = "https://perplexity.ai?pc=firefox&q=firefox"
      4 ASK_INPUT_CSS = "#ask-input"
      5 
      6 
      7 @pytest.mark.only_platforms("android")
      8 @pytest.mark.asyncio
      9 @pytest.mark.with_interventions
     10 async def test_enabled(client):
     11    await client.navigate(URL)
     12 
     13    viewport = client.execute_script(
     14        "return document.querySelector('meta[name=viewport]').content"
     15    )
     16 
     17    assert (
     18        viewport
     19        == "width=device-width,initial-scale=1,interactive-widget=resizes-content"
     20    )
     21 
     22 
     23 @pytest.mark.only_platforms("android")
     24 @pytest.mark.asyncio
     25 @pytest.mark.without_interventions
     26 async def test_disabled(client):
     27    await client.navigate(URL)
     28 
     29    viewport = client.execute_script(
     30        "return document.querySelector('meta[name=viewport]').content"
     31    )
     32 
     33    assert viewport == "width=device-width,initial-scale=1"