Skip to content

Commit 54673b6

Browse files
committed
5317: iframe template test
1 parent 6ff64fe commit 54673b6

File tree

1 file changed

+7
-3
lines changed

1 file changed

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

3-
test("IFrame 0", async ({ page }) => {
3+
test("iframe-0: ui tests", async ({ page }) => {
44
await page.goto("/template/iframe-0");
5-
6-
// TODO
5+
const iframe = page.locator("iframe");
6+
await expect(iframe).toBeVisible();
7+
await expect(iframe).toHaveAttribute(
8+
"src",
9+
"https://images.unsplash.com/photo-1551373884-8a0750074df7?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2370&q=80",
10+
);
711
});

0 commit comments

Comments
 (0)