summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/interventions/tests/test_1829944_411_ca.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/webcompat/interventions/tests/test_1829944_411_ca.py')
-rw-r--r--testing/webcompat/interventions/tests/test_1829944_411_ca.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/webcompat/interventions/tests/test_1829944_411_ca.py b/testing/webcompat/interventions/tests/test_1829944_411_ca.py
new file mode 100644
index 0000000000..8147063c7d
--- /dev/null
+++ b/testing/webcompat/interventions/tests/test_1829944_411_ca.py
@@ -0,0 +1,18 @@
+import pytest
+
+URL = "https://411.ca"
+UNSUPPORTED_CSS = "ngb-alert.header-outdated-alert"
+
+
+@pytest.mark.asyncio
+@pytest.mark.with_interventions
+async def test_enabled(client):
+ await client.navigate(URL)
+ assert not client.find_css(UNSUPPORTED_CSS)
+
+
+@pytest.mark.asyncio
+@pytest.mark.without_interventions
+async def test_disabled(client):
+ await client.navigate(URL)
+ assert client.find_css(UNSUPPORTED_CSS)