diff options
Diffstat (limited to 'testing/webcompat/interventions/tests/test_1849058_nicochannel_jp.py')
-rw-r--r-- | testing/webcompat/interventions/tests/test_1849058_nicochannel_jp.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/webcompat/interventions/tests/test_1849058_nicochannel_jp.py b/testing/webcompat/interventions/tests/test_1849058_nicochannel_jp.py new file mode 100644 index 0000000000..ba66992c7a --- /dev/null +++ b/testing/webcompat/interventions/tests/test_1849058_nicochannel_jp.py @@ -0,0 +1,19 @@ +import pytest + +URL = "https://nicochannel.jp/engage-kiss/video/smBAc4UhdTUivpbuzBexSa9d" +BLOCKED_TEXT = "このブラウザはサポートされていません。" +PLAY_BUTTON_CSS = ".nfcp-overlay-play-lg" + + +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL) + assert client.await_css(PLAY_BUTTON_CSS, timeout=30) + + +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + await client.navigate(URL) + assert client.await_text(BLOCKED_TEXT, timeout=20) |