Skip to content

Commit

Permalink
Add backend app tags to relevant frontend tests
Browse files Browse the repository at this point in the history
- We want to make sure that when these apps are deployed frontend can still access them.
  • Loading branch information
KludgeKML committed Dec 3, 2024
1 parent b432fb1 commit c05ed83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/frontend.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ test.describe("Frontend", { tag: ["@app-frontend", "@domain-www"] }, () => {
await expect(page.getByText("Electoral Services Dudley")).toBeVisible();
});

test("find your local council", async ({ page }) => {
test("find your local council", { tag: ["@app-local-links-manager", "@app-locations-api"] }, async ({ page }) => {
await page.goto("/find-local-council");
await expect(page.getByRole("heading", { name: "Find your local council" })).toBeVisible();
await page.getByLabel("Enter a postcode").fill("WV14 8TU");
Expand Down Expand Up @@ -120,15 +120,15 @@ test.describe("Frontend", { tag: ["@app-frontend", "@domain-www"] }, () => {
await expect(page.getByRole("button", { name: "Start now" })).toBeVisible();
});

test("local transaction page", async ({ page }) => {
test("local transaction page", { tag: ["@app-local-links-manager", "@app-locations-api"] }, async ({ page }) => {
await page.goto("/pay-council-tax");
await expect(page.getByRole("heading", { name: "Pay your Council Tax" })).toBeVisible();
await page.getByLabel("Enter a postcode").fill("WC2B 6NH");
await page.getByRole("button", { name: "Find" }).click();
await expect(page.getByText("London Borough of Camden", { exact: true })).toBeVisible();
});

test("place page", async ({ page }) => {
test("place page",{ tag: ["@app-places-manager", "@app-locations-api"] }, async ({ page }) => {
await page.goto("/ukonline-centre-internet-access-computer-training");
await expect(page.getByRole("heading", { name: "Online Centres Network" })).toBeVisible();
await page.getByLabel("Enter a postcode").fill("WC2B 6NH");
Expand Down

0 comments on commit c05ed83

Please sign in to comment.