add timeout

This commit is contained in:
Simon Knott 2025-02-07 09:13:25 +01:00
parent 28bc673b16
commit 0ba7a7f072
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -641,7 +641,7 @@ class ArtifactsRecorder {
});
this._pageSnapshotRecorder = new SnapshotRecorder(this, pageSnapshot ?? 'only-on-failure', 'pageSnapshot', 'text/plain', '.ariasnapshot', async (page, path) => {
const ariaSnapshot = await page.locator('body').ariaSnapshot();
const ariaSnapshot = await page.locator('body').ariaSnapshot({ timeout: 5000 });
await fs.promises.writeFile(path, ariaSnapshot);
});
}