Saturday, February 17, 2024
1 change · master
Enhancements to existing features
This update improves Odoo's internal HOOT testing tools so tests behave more consistently across browsers and environments. It also refines the test interface, improves file input and scrolling simulations, and updates event handling to encourage modern, reliable behavior.
Original PR description
Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4: https://github.com/odoo/odoo/pull/153203…
Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4: https://github.com/odoo/odoo/pull/153203 Part 5: https://github.com/odoo/odoo/pull/153425 Part 6: https://github.com/odoo/odoo/pull/153700 This pull requests brings the following changes to HOOT and the test helpers: - mock hard-coded default user agent in tests for consistency - small HOOT UI improvements - trigger "change" when setting files in input type="file" - test constants -> server state (makes it dynamic and mockable on the fly) - fix `scroll` HOOT DOM helper - `queryFirst`'s best friend: `queryLast` (`queryMiddle` will arrive in the next PR) - different focus trigger handling when document is out of focus - drop support for deprecated/non-standard event types and properties - improved dry run performances - introduced log levels - more keyboard aliases for convenience --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr