Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(video): do not fail when removing non-existent video (#7060)
Pavel Feldmane4d93cd1f39c
diff --git a/src/test/index.ts b/src/test/index.tsindex 1859a2fda2..8db7954274 100644--- a/src/test/index.ts+++ b/src/test/index.ts@@ -162,8 +162,12 @@ export const test = _baseTest.extend<PlaywrightTestArgs & PlaywrightTestOptions,const video = page.video();if (!video)return;- const videoPath = await video.path();- await fs.promises.unlink(videoPath).catch(e => {});+ try {+ const videoPath = await video.path();+ await fs.promises.unlink(videoPath);+ } catch (e) {+ // Silent catch.+ }}));}},