Friday, April 25, 2025
1 change · saas-17.4
Resolved issues and error corrections
This fixes an automated test that could fail randomly when restaurant orders were sent for preparation and then validated immediately. The customer-facing behavior remains unchanged, while test results should be more stable and reduce false failures in quality checks.
Original PR description
`sync_from_ui` server method is called when sending items for preparation and when validating an order. We call the method asynchronously when sending items for preparation, so when running the test automatically, there is a risk of concurrent calls of `sync_from_ui` if preparation order action is immediately followed by validating the order. Runbot observes the issue randomly. It's a functional requirement that we don't wait for the preparation order request so in this PR, we fix the test by waiting for the preparation order request to finish before proceeding to the succeeding steps.