Skip to content

Commit

Permalink
fix(e2e): Fix broken regression tests due to GovPay copy change
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Aug 5, 2024
1 parent 9c869fc commit 8073db2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions e2e/tests/ui-driven/src/pay.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,16 @@ test.describe("Gov Pay integration @regression", async () => {
await expect(page.getByText("Application sent")).toBeVisible();
await expect(page.getByText(actualPaymentId)).toBeVisible();

// try going back to the payment page
// Try going back to the GovPay payment page
await page.goBack();
// Unable to make another payment - just get a status page...
await expect(
page.locator("h1").getByText("Your payment session has expired"),
page.locator("h1").getByText("Your payment was successful"),
).toBeVisible();
// ...with a link back to PlanX
await page.locator("a").getByText("View your payment summary").click();
await expect(
page.locator("h1").getByText("Application sent"),
).toBeVisible();
});
});
Expand Down

0 comments on commit 8073db2

Please sign in to comment.