tor-browser

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

test_1902385_bithumb_com.py (590B)


      1 import asyncio
      2 
      3 import pytest
      4 
      5 URL = "https://www.bithumb.com/"
      6 
      7 FAILURE_TEXT = "크롬 브라우저를"
      8 
      9 
     10 @pytest.mark.skip_platforms("android")
     11 @pytest.mark.asyncio
     12 @pytest.mark.with_interventions
     13 async def test_enabled(client):
     14    await client.navigate(URL)
     15    await asyncio.sleep(3)
     16    assert not client.find_text(FAILURE_TEXT, is_displayed=True)
     17 
     18 
     19 @pytest.mark.skip_platforms("android")
     20 @pytest.mark.asyncio
     21 @pytest.mark.without_interventions
     22 async def test_disabled(client):
     23    await client.navigate(URL, wait="none")
     24    assert client.await_text(FAILURE_TEXT, is_displayed=True)