From 8713b908e0ad75e1a6e83ad71343dafe144c644f Mon Sep 17 00:00:00 2001 From: Nicolas Chevobbe Date: Mon, 8 Nov 2021 10:21:18 +0000 Subject: [PATCH] Bug 1739215 - [devtools] Revert `click` to `sendMouseEvent` in browser_webconsole_location_styleeditor_link.js. r=bomsy. The test is tagged as `fail-if= a11y_checks`, but as patch for Bug 1738124 switched to Element.click, we don't get the expected failure anymore (since the a11y_check task does not perform assertion on element.click). Let's revert to the original behavior so we can still see that the test need some a11y work. Differential Revision: https://phabricator.services.mozilla.com/D130610 --- .../browser/browser_webconsole_location_styleeditor_link.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devtools/client/webconsole/test/browser/browser_webconsole_location_styleeditor_link.js b/devtools/client/webconsole/test/browser/browser_webconsole_location_styleeditor_link.js index 203460a4eb44..80798e29ae95 100644 --- a/devtools/client/webconsole/test/browser/browser_webconsole_location_styleeditor_link.js +++ b/devtools/client/webconsole/test/browser/browser_webconsole_location_styleeditor_link.js @@ -37,7 +37,10 @@ async function testViewSource(hud, toolbox, text) { const onStyleEditorSelected = toolbox.once("styleeditor-selected"); - messageNode.querySelector(".frame-link-filename").click(); + EventUtils.sendMouseEvent( + { type: "click" }, + messageNode.querySelector(".frame-link-filename") + ); const panel = await onStyleEditorSelected; ok(