Monday, October 25, 2021
1 change · master
Enhancements to existing features
This update improves the way Odoo's automated browser tests communicate with Chrome, making test runs more reliable and easier to diagnose. It also fixes a calendar click-position issue in newer Chrome versions and removes a test mode that made troubleshooting harder by stopping after the first failure.
Original PR description
Currently the runner kinda sorta tries to run the message pump when it needs a message, but it makes for messy and convoluted code as the "request/response" callers have to deal with a bunch of events they don't understand or care for, and can lose other people's events entirely. Try to use a more evented model: the downstream from Chrome is handled by a separate thread which can handle all events and responses somewhat uniformly. Request/response callers can register their desire for feedback and get a nice `Future` to wait on (or add a callback to). Also: * removes the failfast mode of JS tests as that mostly just makes fixing tests more annoying (as only one failure is shown per run) * fix a hitbox bug in calendar on Chrome 94 * fix a somewhat latent race condition in the qunit test suite / runner, which triggered during the POS qunit run (and is now a hard failure)