Bug 1832017 - [devtools] Wait for updates to complete so popups do not lose focus mid assertion r=devtools-reviewers,nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D227038
This commit is contained in:
Hubert Boma Manilla 2024-10-29 08:29:19 +00:00
parent c9db251568
commit b7edb77774

View File

@ -535,6 +535,12 @@ async function assertGutterBlackBoxBoxContextMenuItems(dbg, testFixtures) {
info(
"Asserts that the gutter context menu items when clicking on the gutter of a nonBlackboxed line"
);
// Wait for CM6 to complete any updates so the popup
// does not lose focus while asserting the context menu items due
// late updates completion.
await waitForDocumentLoadComplete(dbg);
const popup = await openContextMenuInDebugger(
dbg,
"gutterElement",