1
0
Fork 0
firefox/testing/webcompat/interventions/tests/test_1902397_e-src_net.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

19 lines
457 B
Python

import pytest
URL = "https://www.e-src.net/"
UNSUPPORTED_TEXT = "Google Chrome"
@pytest.mark.asyncio
@pytest.mark.with_interventions
async def test_enabled(client):
await client.navigate(URL)
assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True)
@pytest.mark.asyncio
@pytest.mark.without_interventions
async def test_disabled(client):
await client.navigate(URL)
assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True)