Fix env puppeteer error in cross-origin-iframes.test.ts (#1629)
This commit is contained in:
2
.changeset/shy-countries-rhyme.md
Normal file
2
.changeset/shy-countries-rhyme.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
@@ -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`
|
// 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
|
// then the page wasn't loaded yet and we try again
|
||||||
if (
|
if (
|
||||||
!e.message.includes('DOM.resolveNode') ||
|
!e.message.includes('DOM.resolveNode') &&
|
||||||
!e.message.includes('DOM.describeNode')
|
!e.message.includes('DOM.describeNode')
|
||||||
)
|
)
|
||||||
throw e;
|
throw e;
|
||||||
|
|||||||
Reference in New Issue
Block a user