Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix(e2e): test fir playing video files

Ilian Sapundshiev024a0ad6d465
diff --git a/tests/e2e/viewer-audiovideo.pw.e2e.js b/tests/e2e/viewer-audiovideo.pw.e2e.js
index c076be985..5d9d1b24f 100644
--- a/tests/e2e/viewer-audiovideo.pw.e2e.js
+++ b/tests/e2e/viewer-audiovideo.pw.e2e.js
@@ -53,13 +53,18 @@ test.describe('TST59 - Media player', () => {
/**
* http://localhost:63342/test-artifacts/playwright-report/trace/manifest.webmanifest?_ijt=eojod6f91jej1donf3vd1jp8ju
*/
- test('TST5902 - Play ogv file [web,s3,electron]', async ({ isWin }) => {
+ test('TST5902 - Play mp4 file [web,s3,electron]', async ({
+ isWin,
+ isWeb,
+ }) => {
if (!isWin) {
await openContextEntryMenu(
- getGridFileSelector('sample.ogv'),
+ getGridFileSelector('sample.mp4'),
'fileMenuOpenFile',
);
- await expectMediaPlay();
+ // Playwright's Chromium lacks H.264 codec (licensing), so mp4 can't
+ // actually play on web — only verify the player is visible, not seekable
+ await expectMediaPlay(!isWeb);
}
});