Merged PR 2558: updated link on awaiting submission view allin welsh

updated link on awaiting submission view allin welsh

Related work items: #24389
This commit is contained in:
Robert Bond
2026-08-12 13:58:07 +00:00
parent 5813d409bc
commit 478fa91004
14 changed files with 1769 additions and 7 deletions
@@ -0,0 +1,26 @@
import { test, expect } from "@playwright/test";
test("Download a file", async ({ page }) => {
await page.goto("/");
await page.getByRole("button", { name: "Accept cookies" }).click();
await page
.getByRole("textbox", { name: "Use the case reference or DNS" })
.click();
await page
.getByRole("textbox", { name: "Use the case reference or DNS" })
.fill("gaerwen");
await page.getByRole("button", { name: "Submit search" }).click();
// await page
// .getByRole("link", { name: "DNS3276735 - Gaerwen Wind Farm (test)" })
// .click();
await page.locator("dd a.govuk-link--no-underline").first().click();
const downloadPromise = page.waitForEvent("download");
await page.locator(".documentLink").first().click();
const download = await downloadPromise;
await page.getByText("Download complete!").click();
await page.getByRole("link", { name: "Home" }).click();
});