From 5e0cff29e92d5878fa5152bb1356dc46355b270e Mon Sep 17 00:00:00 2001 From: Benjamin Cavy Date: Thu, 19 Sep 2024 11:49:35 +0200 Subject: [PATCH] fix: frontend testing --- izanami-frontend/tests/users.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/izanami-frontend/tests/users.spec.ts b/izanami-frontend/tests/users.spec.ts index 2c2b9a53..a0325c19 100644 --- a/izanami-frontend/tests/users.spec.ts +++ b/izanami-frontend/tests/users.spec.ts @@ -17,7 +17,7 @@ test("User invitation flow should work", async ({ await page .getByLabel("Email to invite") .fill(`benjamin.cavy.${browserName}@gmail.com`); - await page.getByRole("checkbox").check(); + await page.getByRole("checkbox").nth(0).check(); // FIXME when react forms will pass labels await page.getByRole("button", { name: "Send invitation" }).click(); let url = "";