Skip to content

Commit ad61305

Browse files
authored
Merge pull request #276 from os2display/feature/5317-video-template-test
Add video test
2 parents 0e8a0fe + dfc2e3f commit ad61305

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)