Skip to content

Commit dfc2e3f

Browse files
author
Sine Jespersen
committed
5317: add video test
1 parent 43796f0 commit dfc2e3f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { test, expect } from "@playwright/test";
22

33
test("Video 0", async ({ page }) => {
4-
await page.goto("/template/video-0");
4+
await page.goto("template/video-0");
55

6-
// TODO
6+
const video = page.locator("video");
7+
const source = page.locator("source");
8+
await expect(video).toBeVisible();
9+
await expect(source).toHaveAttribute(
10+
"src",
11+
"/fixtures/template/videos/test.mp4",
12+
);
713
});

0 commit comments

Comments
 (0)