summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/interventions/tests/test_1830810_interceramic_com.py
blob: 78620fd343be938e03f5040136311a9792bf9275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import time

import pytest

URL = "https://interceramic.com/mx_202VWME/galeria/index"
UNSUPPORTED_CSS = "#ff-modal"


@pytest.mark.asyncio
@pytest.mark.with_interventions
async def test_enabled(client):
    await client.navigate(URL)
    time.sleep(3)
    assert client.find_css(UNSUPPORTED_CSS, is_displayed=False)


@pytest.mark.asyncio
@pytest.mark.without_interventions
async def test_disabled(client):
    await client.navigate(URL)
    assert client.await_css(UNSUPPORTED_CSS, is_displayed=True)