Fix env puppeteer error in cross-origin-iframes.test.ts (#1629)

This commit is contained in:
Eoghan Murray
2026-04-01 12:00:00 +08:00
committed by GitHub
parent cd68189faa
commit 6cf00f77b5
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
---
---

View File

@@ -54,7 +54,7 @@ async function injectRecordScript(
// we get this error: `Protocol error (DOM.resolveNode): Node with given id does not belong to the document`
// then the page wasn't loaded yet and we try again
if (
!e.message.includes('DOM.resolveNode') ||
!e.message.includes('DOM.resolveNode') &&
!e.message.includes('DOM.describeNode')
)
throw e;