Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: throw better error if ffmpeg doesn't exist (#37382)

Max Schmittaa4a11729dea
diff --git a/tests/library/video.spec.ts b/tests/library/video.spec.ts
index 123e7533ad..ac39ede6e6 100644
--- a/tests/library/video.spec.ts
+++ b/tests/library/video.spec.ts
@@ -23,7 +23,7 @@ import { registry } from '../../packages/playwright-core/lib/server';
import { expect, browserTest as it } from '../config/browserTest';
import { parseTraceRaw } from '../config/utils';
-const ffmpeg = registry.findExecutable('ffmpeg')!.executablePath('javascript');
+const ffmpeg = registry.findExecutable('ffmpeg')!.executablePathOrDie('javascript');
export class VideoPlayer {
fileName: string;