custom timeout for expect in failing test

This commit is contained in:
Daniel 2023-11-30 19:02:36 +01:00
parent 0d76754ece
commit 4af494e047

View file

@ -11,10 +11,10 @@ def test_visit_from_domain(authentik_admin_context: BrowserContext, dotenv_confi
page.goto(url) page.goto(url)
# look for content wrapper # look for content wrapper
expect(page.locator("#wpcontent")).to_be_visible() expect(page.locator("#wpcontent")).to_be_visible(timeout=3_000)
# look for admin bar # look for admin bar
expect(page.locator("#wpadminbar")).to_be_visible() expect(page.locator("#wpadminbar")).to_be_visible(timeout=3_000)
def test_visit_from_authentik(authentik_admin_page: Page, DIR: DirManager): def test_visit_from_authentik(authentik_admin_page: Page, DIR: DirManager):