diff options
Diffstat (limited to 'testing/webcompat/interventions/tests/test_1836178_atracker_pro.py')
-rw-r--r-- | testing/webcompat/interventions/tests/test_1836178_atracker_pro.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/webcompat/interventions/tests/test_1836178_atracker_pro.py b/testing/webcompat/interventions/tests/test_1836178_atracker_pro.py new file mode 100644 index 0000000000..78dbbaf1dd --- /dev/null +++ b/testing/webcompat/interventions/tests/test_1836178_atracker_pro.py @@ -0,0 +1,23 @@ +import pytest + +URL = "https://atracker.pro/" +LOGIN_CSS = "a[onclick='openWebVersionWindow()']" + + +async def get_login_popup_url(client, popup_url): + popup = await client.await_popup(popup_url) + await client.navigate(URL, wait="load") + client.soft_click(client.await_css(LOGIN_CSS)) + return await popup + + +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + assert await get_login_popup_url(client, "index.html") + + +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + assert await get_login_popup_url(client, "BrowserCheck") |