From a6bb1c438fd62cf098cdaf119ad7f0d55e7d93a4 Mon Sep 17 00:00:00 2001 From: Kevin Dew Date: Mon, 10 Feb 2025 09:19:49 +0000 Subject: [PATCH 1/2] Test chat against publishing host name GOV.UK Chat is no longer hosted on www.gov.uk and is available, behind signon, on chat.publishing.service.gov.uk. --- tests/chat.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/chat.spec.js b/tests/chat.spec.js index bc65c68..d964376 100644 --- a/tests/chat.spec.js +++ b/tests/chat.spec.js @@ -3,6 +3,8 @@ import { test } from "../lib/cachebust-test"; import { publishingAppUrl } from "../lib/utils"; test.describe("GOV.UK Chat", { tag: ["@app-govuk-chat", "@not-production"] }, () => { + test.use({ baseURL: publishingAppUrl("chat") }); + test("Can view a static page", async ({ page }) => { await page.goto("/chat/about"); await expect(page.getByRole("heading", { name: "About GOV.UK Chat" })).toBeVisible(); From f9c66133e067a8fcfa26e99b4bca35cf3bf90225 Mon Sep 17 00:00:00 2001 From: Kevin Dew Date: Mon, 10 Feb 2025 09:20:50 +0000 Subject: [PATCH 2/2] Test chat about page in production When this test was written GOV.UK Chat was not available in production. --- tests/chat.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/chat.spec.js b/tests/chat.spec.js index d964376..0428ea5 100644 --- a/tests/chat.spec.js +++ b/tests/chat.spec.js @@ -2,7 +2,7 @@ import { expect } from "@playwright/test"; import { test } from "../lib/cachebust-test"; import { publishingAppUrl } from "../lib/utils"; -test.describe("GOV.UK Chat", { tag: ["@app-govuk-chat", "@not-production"] }, () => { +test.describe("GOV.UK Chat", { tag: ["@app-govuk-chat"] }, () => { test.use({ baseURL: publishingAppUrl("chat") }); test("Can view a static page", async ({ page }) => {