Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(e2e): Fix broken regression tests due to GovPay copy change #3494

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading