Thursday, February 15, 2024
2 changes · master
Code cleanup and technical improvements
The web module's internal tests for integer fields were converted to a newer testing framework. This helps keep quality checks maintainable and reliable without changing how users interact with the product.
Original PR description
task 3705027 Note for reviewer: the test "with disable formatting option" is gone as it was testing an option that no longer exist. Or more specifically, is still there but called `enable_formatting`. The test was working cause the localization was unpatched by default in the qunit suite, so the grouping was inexistant and it ended up unformatted. Just by chance. Since the hoot suite has a localization patch by default, the test no longer passed and couldn't never as the option `format` no longer exist.
This update modernizes the way Odoo’s guided tour tests identify and interact with screens, replacing older jQuery-based logic with the newer Hoot approach. It also adds better debugging support for tour tests, helping developers diagnose issues faster while keeping the change largely internal to quality assurance.
Original PR description
In this commit : Tour Compiler uses now Hoot selectors instead of jQuery selectors. jQuery selectors from tours trigger (extra_trigger and others) have been so adapted to be compatible with Hoot selectors. Most of uses of jQuery in step.run() has been replaced by native or hoot-dom helpers. A new option has been added in start_tour() (debug=True) to make it easier to debug tours. This opens a full screen browser with opened devtools and a breakpoint at tour initialization. In debug=True mode, step.freeze allows you to pause de tour at this step. Use thaw() to continue it. task~3600484 Community : https://github.com/odoo/odoo/pull/148639