0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-14 18:35:08 +01:00

Adding the sleep also to the docs workflow

This commit is contained in:
Arne Tarara 2023-10-02 17:31:40 +02:00
parent 2848d535bf
commit 71ef61a396
No known key found for this signature in database
GPG key ID: 2540198A4079785B

View file

@ -26,6 +26,11 @@ def create_user(playwright: Playwright, browser_name: str, username: str, passwo
page.get_by_label("Account name or email").press("Tab")
page.get_by_label("Password", exact=True).fill("Override")
page.get_by_label("Password", exact=True).press("Enter")
log_note("Wait for welcome popup")
# Sleep to make sure the modal has time to appear before continuing navigation
sleep(5)
with contextlib.suppress(Exception):
page.get_by_role("button", name="Close modal").click(timeout=15_000)
log_note("Create user")