Skip to content
Snippets Groups Projects
Commit 575c0c58 authored by Rodopho Cammarosano de Lima (rcdl)'s avatar Rodopho Cammarosano de Lima (rcdl)
Browse files

[FIX] web_editor: fix MouseEvent in checkbox tests


When the test suit is run in Chrome with zoom level different than
100%, the tests than toggle list checkboxes fail.

This is due to the lack of the "view" option in the simulated MouseClick
event. When not present, it defaults to null and the mouse coordinates
get messed up when the zoom level is not 100%.

This affects only the tests, not the actual application.

task# 3062132

closes odoo/odoo#105979

Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
parent d1e94e2f
Branches
Tags
No related merge requests found
......@@ -401,6 +401,7 @@ export async function click(el, options) {
bubbles: true,
clientX: pos.left + 1,
clientY: pos.top + 1,
view: el.ownerDocument.defaultView,
},
options,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment