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

This commit is contained in:
Eoghan Murray
2025-02-05 15:23:46 +00:00
committed by GitHub
parent f18fead64e
commit 965b0a9836
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;