diff --git a/tests/e2e/wallet/payment_requests/manual.spec.ts b/tests/e2e/wallet/payment_requests/manual.spec.ts index 474f9bc42..8a92b67f3 100644 --- a/tests/e2e/wallet/payment_requests/manual.spec.ts +++ b/tests/e2e/wallet/payment_requests/manual.spec.ts @@ -356,6 +356,7 @@ test.describe("Payment request", () => { test.describe("Manual Payment request modal fourth step", () => { let count = 0; test.beforeEach(async ({ page }) => { + count = 0; await walletPage.postUsersMePayments(); await walletPage.requestPayment(); await expect(page.getByTestId("payment-modal-next")).toBeVisible(); diff --git a/tests/e2e/wallet/table_net_gross.spec.ts b/tests/e2e/wallet/table_net_gross.spec.ts index 079fb2c24..db9b9d4b1 100644 --- a/tests/e2e/wallet/table_net_gross.spec.ts +++ b/tests/e2e/wallet/table_net_gross.spec.ts @@ -17,7 +17,7 @@ test.describe("Net and gross columns in wallet table", () => { test("Should show columns net and gross in wallet table", async ({ page, }) => { - const walletTable = page.locator(".wallet-table"); + const walletTable = page.locator(".wallet-table").first(); await expect(walletTable.locator(".thead")).toHaveCount(numberOfColumns); await expect(walletTable.locator(".thead")).toContainText([ /^ID$/, @@ -31,7 +31,7 @@ test.describe("Net and gross columns in wallet table", () => { }); test("Should show net and gross values in wallet table", async ({ page }) => { - const walletTable = page.locator(".wallet-table"); + const walletTable = page.locator(".wallet-table").first(); const { results, } = require("../../api/users/me/payments/_get/200_multiple-pages.json"); @@ -49,7 +49,7 @@ test.describe("Net and gross columns in wallet table", () => { test("Should show a non empty table in the payment detail modal", async ({ page, }) => { - const walletTable = page.locator(".wallet-table"); + const walletTable = page.locator(".wallet-table").first(); const allCells = walletTable.locator(".tbody.cell"); for (const [index, cell] of (await allCells.all()).entries()) { if (index + 1 === numberOfColumns * 2) { @@ -71,7 +71,7 @@ test.describe("Net and gross columns in wallet table", () => { }); test("Should show empty state if no payments", async ({ page }) => { - const walletTable = page.locator(".wallet-table"); + const walletTable = page.locator(".wallet-table").first(); const allCells = walletTable.locator(".tbody.cell"); for (const [index, cell] of (await allCells.all()).entries()) { if (index + 1 === numberOfColumns * 3) {