Skip to content

Commit 652d01a

Browse files
committed
replace paynow with approve in test
1 parent 43d523a commit 652d01a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/tests/company/invoices/one-off-payments.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ test.describe("One-off payments", () => {
254254
await expect(page.getByRole("row", { name: "$123.45 Payment scheduled" })).toBeVisible();
255255
});
256256

257-
test("shows 'Pay again' button for failed payments", async ({ page }) => {
257+
test("shows 'Approve' button for failed payments", async ({ page }) => {
258258
const { invoice } = await invoicesFactory.create({
259259
companyId: company.id,
260260
companyContractorId: companyContractor.id,
@@ -272,7 +272,7 @@ test.describe("One-off payments", () => {
272272
Amount: "$500",
273273
Status: "Failed",
274274
})
275-
.getByRole("button", { name: "Pay again" })
275+
.getByRole("button", { name: "Approve" })
276276
.click();
277277

278278
await expect(page.getByText("Payment initiated")).toBeVisible();

0 commit comments

Comments
 (0)