Skip to content
Snippets Groups Projects
Commit cf8ff0da authored by Pierre Paridans's avatar Pierre Paridans
Browse files

[FIX] web: tests: click helper: throw error if target is disabled


This commit is a backport of odoo/odoo@f065276a4611ddad67fd3d200fc131f2e30907b5

Before chrome 116, programmatic clicks on disabled buttons weren't
actually fired. With chrome 116, they are. As a consequence, some
tests fails on chrome 116 because they click (on purpose) on
disabled button to highlight the fact that nothing happens.

This commit improves the click helper to make it throw an error
when the target is disabled. It also adapts the tests that were
clicking on disabled button, in general to simply assert that the
button is disabled instead.

closes odoo/odoo#137901

Related: odoo/enterprise#48559
Signed-off-by: default avatarRomeo Fragomeli (rfr) <rfr@odoo.com>
Co-authored-by: default avatarAaron Bohy <aab@odoo.com>
parent 2726d272
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment