summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/interventions/tests/test_1836140_indices_iriworldwide_com.py
blob: 1ffaf5c09f4b38b707ae4111ff66a6c80f1c5dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import pytest

URL = "https://indices.iriworldwide.com/covid19/register.html"
BAD_CSS = ".hiddPage"


@pytest.mark.asyncio
@pytest.mark.with_interventions
async def test_enabled(client):
    await client.navigate(URL, wait="complete")
    assert not client.find_css(BAD_CSS)


@pytest.mark.asyncio
@pytest.mark.without_interventions
async def test_disabled(client):
    await client.navigate(URL, wait="complete")
    assert client.find_css(BAD_CSS)