mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
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:
parent
c9db251568
commit
b7edb77774
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user