tor-browser

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

test_1997883_pwa_samsungglobalgoals_com.py (890B)


      1 import pytest
      2 
      3 URL = "https://pwa.samsungglobalgoals.com/settings"
      4 
      5 SIGN_IN_TEXT = "Sign in to use Donate with Friends"
      6 SUPPORTED_TEXT = "Choose sign in method"
      7 UNSUPPORTED_TEXT = "Open in browser to continue"
      8 
      9 
     10 @pytest.mark.asyncio
     11 @pytest.mark.with_interventions
     12 async def test_enabled(client):
     13    await client.navigate(URL, wait="none")
     14    client.soft_click(client.await_text(SIGN_IN_TEXT, is_displayed=True))
     15    assert client.await_text(SUPPORTED_TEXT, is_displayed=True)
     16    assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True)
     17 
     18 
     19 @pytest.mark.asyncio
     20 @pytest.mark.without_interventions
     21 async def test_disabled(client):
     22    await client.navigate(URL, wait="none")
     23    client.soft_click(client.await_text(SIGN_IN_TEXT, is_displayed=True))
     24    assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True)
     25    assert not client.find_text(SUPPORTED_TEXT, is_displayed=True)