Source code

Revision control

Copy as Markdown

Other Tools

import asyncio
import pytest
LANDING_PAGE_CSS = ".landingPage"
WARNING_TEXT = "please open in Chrome"
@pytest.mark.asyncio
@pytest.mark.with_interventions
async def test_enabled(client):
await client.navigate(URL)
client.await_css(LANDING_PAGE_CSS, is_displayed=True)
await asyncio.sleep(1)
assert not client.find_text(WARNING_TEXT, is_displayed=True)
@pytest.mark.asyncio
@pytest.mark.without_interventions
async def test_disabled(client):
await client.navigate(URL)
client.await_text(WARNING_TEXT, is_displayed=True)