summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/interventions/tests/test_1722954_granbluefantasy_jp.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/webcompat/interventions/tests/test_1722954_granbluefantasy_jp.py')
-rw-r--r--testing/webcompat/interventions/tests/test_1722954_granbluefantasy_jp.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/webcompat/interventions/tests/test_1722954_granbluefantasy_jp.py b/testing/webcompat/interventions/tests/test_1722954_granbluefantasy_jp.py
new file mode 100644
index 0000000000..93fdf940b7
--- /dev/null
+++ b/testing/webcompat/interventions/tests/test_1722954_granbluefantasy_jp.py
@@ -0,0 +1,27 @@
+import pytest
+
+URL = "https://game.granbluefantasy.jp/"
+
+
+def content_is_full_width(client):
+ return client.execute_script(
+ """
+ return document.querySelector("#wrapper").offsetWidth == document.body.clientWidth;
+ """
+ )
+
+
+@pytest.mark.only_platforms("android")
+@pytest.mark.asyncio
+@pytest.mark.with_interventions
+async def test_enabled(client):
+ await client.navigate(URL)
+ assert content_is_full_width(client)
+
+
+@pytest.mark.only_platforms("android")
+@pytest.mark.asyncio
+@pytest.mark.without_interventions
+async def test_disabled(client):
+ await client.navigate(URL)
+ assert not content_is_full_width(client)