tor-browser

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

test_1975953_envios_mercadolibre_com_ar.py (690B)


      1 import pytest
      2 
      3 URL = "https://envios.mercadolibre.com.ar/shipping/agencies-map/pick-up?zip_code=4500"
      4 
      5 APP_CSS = "#root-app"
      6 
      7 
      8 async def content_is_visible(client):
      9    await client.navigate(URL, wait="none")
     10    app = client.await_css(APP_CSS, is_displayed=True)
     11    return client.execute_script("return arguments[0].clientHeight > 0", app)
     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 await content_is_visible(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 not await content_is_visible(client)