summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/interventions/tests/test_1836141_yabbycasino_com.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/webcompat/interventions/tests/test_1836141_yabbycasino_com.py')
-rw-r--r--testing/webcompat/interventions/tests/test_1836141_yabbycasino_com.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/webcompat/interventions/tests/test_1836141_yabbycasino_com.py b/testing/webcompat/interventions/tests/test_1836141_yabbycasino_com.py
new file mode 100644
index 0000000000..bcf6de192d
--- /dev/null
+++ b/testing/webcompat/interventions/tests/test_1836141_yabbycasino_com.py
@@ -0,0 +1,24 @@
+import pytest
+
+URL = "https://yabbycasino.com/game/aces-and-eights"
+IFRAME_CSS = "iframe#game"
+GOOD_CSS = "#rotateDevice"
+BAD_CSS = ".unsupported-device-box"
+
+
+@pytest.mark.only_platforms("android")
+@pytest.mark.asyncio
+@pytest.mark.with_interventions
+async def test_enabled(client):
+ await client.navigate(URL)
+ client.switch_to_frame(client.await_css(IFRAME_CSS))
+ assert client.await_css(GOOD_CSS, is_displayed=True)
+
+
+@pytest.mark.only_platforms("android")
+@pytest.mark.asyncio
+@pytest.mark.without_interventions
+async def test_disabled(client):
+ await client.navigate(URL)
+ client.switch_to_frame(client.await_css(IFRAME_CSS))
+ assert client.await_css(BAD_CSS, is_displayed=True)