Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions tests/e2e/wallet/payment_requests/manual.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/wallet/table_net_gross.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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$/,
Expand All @@ -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");
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down
Loading