make setup_authentik support en ui

This commit is contained in:
Daniel 2023-12-14 22:55:05 +01:00
parent 98f496db72
commit db9df2cb90

View file

@ -50,7 +50,8 @@ def create_invite_link(admin_context: BrowserContext, env_config: dict[str, str]
page.locator('input[name="name"]').click()
linkname = "test_link_123"
page.locator('input[name="name"]').fill(linkname)
page.get_by_placeholder("Wählen Sie ein Objekt aus.").click()
placeholder_pattern = re.compile(r"Wählen Sie ein|Select an")
page.get_by_placeholder(placeholder_pattern).click()
page.get_by_role("option", name=re.compile(r"invitation-enrollment-flow")).click()
# force, because else we get "intercepts pointer events"