test_1895997_e_seb_lt.py (556B)
1 import pytest 2 3 URL = "https://login.seb.lt/ui/" 4 5 HERO_CSS = "#userId" 6 UNSUPPORTED_TEXT = "Google Chrome" 7 8 9 @pytest.mark.asyncio 10 @pytest.mark.with_interventions 11 async def test_enabled(client): 12 await client.navigate(URL) 13 await client.stall(3) 14 client.await_css(HERO_CSS, is_displayed=True) 15 assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True) 16 17 18 @pytest.mark.asyncio 19 @pytest.mark.without_interventions 20 async def test_disabled(client): 21 await client.navigate(URL) 22 assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True)