summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/interventions/tests/test_1719846_covid_cdc_gov.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testing/webcompat/interventions/tests/test_1719846_covid_cdc_gov.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/webcompat/interventions/tests/test_1719846_covid_cdc_gov.py b/testing/webcompat/interventions/tests/test_1719846_covid_cdc_gov.py
new file mode 100644
index 0000000000..253ea6167e
--- /dev/null
+++ b/testing/webcompat/interventions/tests/test_1719846_covid_cdc_gov.py
@@ -0,0 +1,21 @@
+import pytest
+
+URL = "https://covid.cdc.gov/covid-data-tracker/#pandemic-vulnerability-index"
+
+
+IFRAME_CSS = "#pviIframe"
+UNSUPPORTED_TEXT = "not support Internet Explorer"
+
+
+@pytest.mark.asyncio
+@pytest.mark.with_interventions
+async def test_enabled(client):
+ await client.navigate(URL)
+ assert client.await_css(IFRAME_CSS)
+
+
+@pytest.mark.asyncio
+@pytest.mark.without_interventions
+async def test_disabled(client):
+ await client.navigate(URL)
+ assert client.await_text(UNSUPPORTED_TEXT)