From 6b8ced7c14322ab3c17a7f5a3adea843017f1cfb Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Wed, 2 Dec 2026 11:32:14 +0100 Subject: [PATCH] test(rrweb-snapshot): Wait for blob src in picture-blob integration test Co-Authored-By: Claude Opus 5.5 --- packages/rrweb-snapshot/test/integration.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/rrweb-snapshot/test/integration.test.ts b/packages/rrweb-snapshot/test/integration.test.ts index d63c3e017f..0fc5ee9254 100644 --- a/packages/rrweb-snapshot/test/integration.test.ts +++ b/packages/rrweb-snapshot/test/integration.test.ts @@ -141,6 +141,12 @@ describe('integration tests', function (this: ISuite) { waitUntil: 'load', }); } + if (html.filePath === 'picture-blob.html') { + // the fixture sets the blob src after an async fetch + await page.waitForFunction(() => + document.querySelector('img')?.src.startsWith('blob:'), + ); + } await waitForRAF(page); const rebuildHtml = ( (await page.evaluate(`${code}