tor-browser

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

test_1959444_m_modanisa_com.py (772B)


      1 import pytest
      2 
      3 URL = "https://m.modanisa.com/en-sevilen-modanisa-markalari12.list"
      4 DESKTOP_VP = "width=320, user-scalable=no, initial-scale=3.0625"
      5 MOBILE_VP = "width=320, user-scalable=no"
      6 
      7 
      8 async def get_meta_viewport_content(client):
      9    await client.navigate(URL, wait="none")
     10    mvp = client.await_css("meta[name=viewport]")
     11    return client.get_element_attribute(mvp, "content")
     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 MOBILE_VP == await get_meta_viewport_content(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 DESKTOP_VP == await get_meta_viewport_content(client)