Tuesday, May 13, 2025
2 changes · saas-17.4
Resolved issues and error corrections
This change makes an automated test for reference fields wait for the interface to finish updating before checking results. It reduces false test failures caused by timing issues, helping keep development and release validation more reliable without changing user-facing behavior.
Original PR description
This commit adds an `await animationFrame()` in a reference field test. This makes the first assertion relevant, as it wasn't before (the view could never be there instantly). It also makes the test more robust as it could sometimes fail for the second assertions (race condition), see https://runbot.odoo.com/runbot/build/80157085 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The website donation payment test was split into separate setup and user-check steps to avoid timing problems on slow networks. This helps prevent false test failures and better reflects how regular users interact with donation forms.
Original PR description
On slow networks, users or runbot may click checkboxes before the JavaScript is fully loaded by the lazy loader, causing event handlers to not be attached. Fix: Split the test into two separate tours. One while logged in for donation configuration, and another while logged out to test it, since the issue does not occur when the iframe is not present. **Tested with a custom multi-build and the test do not fail anymore** runbot-77224