Skip to content

Commit

Permalink
🧵 Wait for UI state to be processed before saving
Browse files Browse the repository at this point in the history
There's a possible race condition here that the clicks happen too
quickly and the state change was not processed yet and the old state
is then sent to the backend.
  • Loading branch information
sergei-maertens committed Jul 26, 2024
1 parent 273cf21 commit 513f429
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openforms/forms/tests/e2e_tests/test_form_designer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,9 @@ def setUpTestData():
await page.goto(str(admin_url))

await page.get_by_label("Appointment enabled").click()
await expect(
page.get_by_role("tab", name="Steps and fields")
).not_to_be_visible()

with phase("save form changes to backend"):
await page.get_by_role("button", name="Save", exact=True).click()
Expand Down

0 comments on commit 513f429

Please sign in to comment.