We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e8a0fe + dfc2e3f commit ad61305Copy full SHA for ad61305
assets/tests/template/template-video.spec.js
@@ -1,7 +1,13 @@
1
import { test, expect } from "@playwright/test";
2
3
test("Video 0", async ({ page }) => {
4
- await page.goto("/template/video-0");
+ await page.goto("template/video-0");
5
6
- // TODO
+ 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
+ );
13
});
0 commit comments