summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/interventions/tests/test_1849058_nicochannel_jp.py
blob: ba66992c7a451ace3e03b6774f1a3136f3a8cf16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)