diff --git a/tests/browser/heif_import.mjs b/tests/browser/heif_import.mjs index 1de2ea293..fe9abdd0b 100644 --- a/tests/browser/heif_import.mjs +++ b/tests/browser/heif_import.mjs @@ -116,7 +116,8 @@ try { for (const asset of originals) { const node = imported.canvasItems.find(item => item.binding.objectRef?.assetId === asset.id); assert.ok(node, JSON.stringify(imported.canvasItems)); - const pixels = await page.locator(`.react-flow__node[data-id="${node.id}"] img.cw-image-preview`).evaluate(async image => { + const revealed = await reveal(node.id); + const pixels = await revealed.locator("img.cw-image-preview").evaluate(async image => { await image.decode(); const canvas = document.createElement("canvas"); canvas.width = image.naturalWidth; canvas.height = image.naturalHeight;