From 54673b6a2b8988bbcde7f84ea08b5dfece18538f Mon Sep 17 00:00:00 2001 From: sinejespersen Date: Fri, 12 Sep 2025 12:27:43 +0200 Subject: [PATCH 1/2] 5317: iframe template test --- assets/tests/template/template-iframe.spec.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/tests/template/template-iframe.spec.js b/assets/tests/template/template-iframe.spec.js index 336cc51b..b8d0b500 100644 --- a/assets/tests/template/template-iframe.spec.js +++ b/assets/tests/template/template-iframe.spec.js @@ -1,7 +1,11 @@ import { test, expect } from "@playwright/test"; -test("IFrame 0", async ({ page }) => { +test("iframe-0: ui tests", async ({ page }) => { await page.goto("/template/iframe-0"); - - // TODO + const iframe = page.locator("iframe"); + await expect(iframe).toBeVisible(); + await expect(iframe).toHaveAttribute( + "src", + "https://images.unsplash.com/photo-1551373884-8a0750074df7?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2370&q=80", + ); }); From 9883a36106dfbe76cd43c2e94d5ae119a81ff628 Mon Sep 17 00:00:00 2001 From: sinejespersen Date: Tue, 16 Sep 2025 13:36:41 +0200 Subject: [PATCH 2/2] 5317: change url in iframe --- assets/template/fixtures/slide-fixtures.js | 3 +-- assets/tests/template/template-iframe.spec.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/template/fixtures/slide-fixtures.js b/assets/template/fixtures/slide-fixtures.js index 5411fb9a..0545fc5e 100644 --- a/assets/template/fixtures/slide-fixtures.js +++ b/assets/template/fixtures/slide-fixtures.js @@ -772,8 +772,7 @@ const slideFixtures = [ }, content: { duration: 5000, - source: - "https://images.unsplash.com/photo-1551373884-8a0750074df7?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2370&q=80", + source: "https://display.local.itkdev.dk/docs", }, }, { diff --git a/assets/tests/template/template-iframe.spec.js b/assets/tests/template/template-iframe.spec.js index b8d0b500..2d0170e2 100644 --- a/assets/tests/template/template-iframe.spec.js +++ b/assets/tests/template/template-iframe.spec.js @@ -6,6 +6,6 @@ test("iframe-0: ui tests", async ({ page }) => { await expect(iframe).toBeVisible(); await expect(iframe).toHaveAttribute( "src", - "https://images.unsplash.com/photo-1551373884-8a0750074df7?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2370&q=80", + "https://display.local.itkdev.dk/docs", ); });