Daily updates from Odoo
Thursday, November 21, 2024
2 changes
Code cleanup and technical improvements
This update refreshes how Odoo's automated web tours detect visible screen elements, making test behavior more consistent and reducing false results. It also improves error messages so issues in guided flows can be diagnosed faster, with no expected direct change for everyday users.
Original PR description
In this commit, we replace the use of _legacyIsVisible by the visible option of hoot which refers to isVisible function of hoot-dom.js. This change implies changes in a few tours. For information, _legacyIsVisible accepts elements with a width of 0 or a length of 0 (which is a bit absurd) while isVisible does not, which implies the changes where we just add :not(:visible) to the trigger. The other main modifications implies tours where you have to hover the trigger to then see the element you want to click on. In this commit, we also improve error logs. task~3974087 https://github.com/odoo/enterprise/pull/74171
This change updates internal automated tours to use a newer and stricter visibility check. It helps keep business workflows such as accounting, knowledge, helpdesk knowledge, website, and studio testing reliable without changing normal user-facing behavior.
Original PR description
In this commit, we replace the use of _legacyIsVisible by the visible option of hoot which refers to isVisible function of hoot-dom.js. This change implies changes in a few tours. For information, _legacyIsVisible accepts elements with a width of 0 or a length of 0 (which is a bit absurd) while isVisible does not, which implies the changes where we just add :not(:visible) to the trigger. The other main modifications implies tours where you have to hover the trigger to then see the element you want to click on. task~3974087 https://github.com/odoo/odoo/pull/187894