blob: 67e1aa761b3a0f84324ddb51c704b6634a589d60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import pytest
URL = "https://gts-pro.sdimedia.com/"
UNSUPPORTED_CSS = "#invalid-browser"
LOGIN_CSS = "button[data-qa='open-login-page']"
@pytest.mark.asyncio
@pytest.mark.with_interventions
async def test_enabled(client):
await client.navigate(URL)
assert client.await_css(LOGIN_CSS, is_displayed=True)
@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)
|