tor-browser

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

test_1902367_seller_kuajingmaihuo_com.py (484B)


      1 import pytest
      2 
      3 URL = "https://seller.kuajingmaihuo.com"
      4 UNSUPPORTED_TEXT = "请使用 Chrome 浏览器打开"
      5 
      6 
      7 @pytest.mark.asyncio
      8 @pytest.mark.with_interventions
      9 async def test_enabled(client):
     10    await client.navigate(URL)
     11    assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True)
     12 
     13 
     14 @pytest.mark.asyncio
     15 @pytest.mark.without_interventions
     16 async def test_disabled(client):
     17    await client.navigate(URL)
     18    assert client.find_text(UNSUPPORTED_TEXT, is_displayed=True)