Bug 1928134 - [devtools] Wait for the right resource in browser_inspector_fission_frame_navigation.js. r=devtools-reviewers,bomsy.

Differential Revision: https://phabricator.services.mozilla.com/D228407
This commit is contained in:
Nicolas Chevobbe 2024-11-08 14:36:29 +00:00
parent 446391bf9b
commit 017c39770e

View File

@ -67,7 +67,7 @@ add_task(async function navigateFrameNotExpandedInMarkupView() {
}
const { inspector } = await openInspectorForURL(TEST_ORG_URI);
const resourceCommand = inspector.toolbox.resourceCommand;
const { resourceCommand } = inspector.commands;
// At this stage the expected layout of the markup view is
// v html (expanded)
@ -117,6 +117,7 @@ async function navigateIframeTo(inspector, url) {
resourceCommand.TYPES.ROOT_NODE,
{
ignoreExistingResources: true,
predicate: resource => resource.targetFront.url === encodeURI(url),
}
);