test_1990193_zeit_werkheim_de.py (648B)
1 import pytest 2 from webdriver.error import NoSuchElementException 3 4 URL = "http://zeit.werkheim.de:8080/" 5 LOGIN_CSS = "#InputBenutzername" 6 7 8 async def does_site_finish_loading(client): 9 await client.navigate(URL) 10 try: 11 client.await_css(LOGIN_CSS, is_displayed=True, timeout=10) 12 return True 13 except NoSuchElementException: 14 return False 15 16 17 @pytest.mark.asyncio 18 @pytest.mark.with_interventions 19 async def test_enabled(client): 20 assert await does_site_finish_loading(client) 21 22 23 @pytest.mark.asyncio 24 @pytest.mark.without_interventions 25 async def test_disabled(client): 26 assert not await does_site_finish_loading(client)