import { test, expect } from "@playwright/test"; test("test", async ({ page }) => { // Recording... await page.goto("http://localhost:3000/auth/error?error=Verification"); await page.getByRole("link", { name: "Home", exact: true }).click(); await page.goto("http://localhost:3000/myportal"); await page.getByRole("heading", { name: "Representations awaiting" }).click(); const containerLink = page .locator("div", { hasText: "Representations awaiting" }) .locator("a") .first() .click(); await page.getByText("CAS-01085-K4R4X0").first().click(); await page.goto( "http://localhost:3000/myportal/representation?case=CAS-01085-K4R4X0&state=edit&created=2026-04-15-12%3A32%3A23_-_LPA_-_Questionnaire_-_CardiffCouncil", ); await page.getByRole("button", { name: "Save and exit" }).click(); await page.goto("http://localhost:3000/myportal"); });