summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/interventions/tests/test_1829126_otsuka_co_jp.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/webcompat/interventions/tests/test_1829126_otsuka_co_jp.py')
-rw-r--r--testing/webcompat/interventions/tests/test_1829126_otsuka_co_jp.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/webcompat/interventions/tests/test_1829126_otsuka_co_jp.py b/testing/webcompat/interventions/tests/test_1829126_otsuka_co_jp.py
new file mode 100644
index 0000000000..fe7ad3071c
--- /dev/null
+++ b/testing/webcompat/interventions/tests/test_1829126_otsuka_co_jp.py
@@ -0,0 +1,28 @@
+import pytest
+
+URL = "https://www.otsuka.co.jp/fib/"
+SPLASH_CSS = ".splash"
+
+# Note this site can be really slow
+
+
+async def splash_is_hidden(client):
+ await client.navigate(URL, wait="none")
+ splash = client.await_css(SPLASH_CSS, is_displayed=True, timeout=20)
+ assert splash
+ client.await_element_hidden(client.css(SPLASH_CSS), timeout=20)
+ return not client.is_displayed(splash)
+
+
+@pytest.mark.only_platforms("android")
+@pytest.mark.asyncio
+@pytest.mark.with_interventions
+async def test_enabled(client):
+ assert await splash_is_hidden(client)
+
+
+@pytest.mark.only_platforms("android")
+@pytest.mark.asyncio
+@pytest.mark.without_interventions
+async def test_disabled(client):
+ assert not await splash_is_hidden(client)