Skip to content

Commit ac27a69

Browse files
authored
Merge pull request #306 from os2display/feature/5317-iframe-template-tests
iframe template test
2 parents 078f0c8 + 9883a36 commit ac27a69

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

assets/template/fixtures/slide-fixtures.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,7 @@ const slideFixtures = [
772772
},
773773
content: {
774774
duration: 5000,
775-
source:
776-
"https://images.unsplash.com/photo-1551373884-8a0750074df7?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2370&q=80",
775+
source: "https://display.local.itkdev.dk/docs",
777776
},
778777
},
779778
{
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://display.local.itkdev.dk/docs",
10+
);
711
});

0 commit comments

Comments
 (0)