summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/interventions/tests/test_1719859_saxoinvestor.py
blob: 774cc8dbc811a3bb6f4803f2f8800b5ebc7ef774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import pytest

URL = (
    "https://www.saxoinvestor.fr/login/?adobe_mc="
    "MCORGID%3D173338B35278510F0A490D4C%2540AdobeOrg%7CTS%3D1621688498"
)


@pytest.mark.skip_platforms("linux")
@pytest.mark.asyncio
@pytest.mark.with_interventions
async def test_enabled(client):
    await client.navigate(URL)
    userid = client.find_css("input#field_userid")
    password = client.find_css("input#field_password")
    submit = client.find_css("input#button_login")
    assert client.is_displayed(userid)
    assert client.is_displayed(password)
    assert client.is_displayed(submit)


@pytest.mark.skip_platforms("linux")
@pytest.mark.asyncio
@pytest.mark.without_interventions
async def test_disabled(client):
    await client.navigate(URL)
    warning = client.find_css("#browser_support_section")
    assert client.is_displayed(warning)