test(playback): verify recommendation capability guards

This commit is contained in:
4gray committed 2026-08-04 21:27:33 +02:00
1 parent 5e13f73912
commit 7c19caba6c
3 files changed
+353 -16

No files matched your search

+9
View File
@@ -150,4 +150,13 @@ test('@web @m3u @dash unsupported DRM shows the encryption diagnostic', async ({
const banner = page.locator('[data-test-id="playback-diagnostic-banner"]');
await expect(banner).toBeVisible({ timeout: 15_000 });
await expect(banner).toContainText(/encrypted or DRM-protected/i);
await expect(
banner.locator('[data-test-id="playback-fallback-mpv"]')
).toHaveCount(0);
await expect(
banner.locator('[data-test-id="playback-fallback-vlc"]')
).toHaveCount(0);
await expect(
banner.locator('[data-test-id^="playback-recommendation-"]')
).toHaveCount(0);
});
@@ -0,0 +1 @@
This fixture intentionally declares Matroska without playable media bytes.