A full-featured CRM built with React, shadcn/ui, and Supabase.
fix(e2e): the dismiss toast helper now targets the first 'close' button
Jonathan ARNAULTa3c3602baa08
diff --git a/e2e/fixtures.ts b/e2e/fixtures.tsindex fecd8fbd..6d5c8d4e 100644--- a/e2e/fixtures.ts+++ b/e2e/fixtures.ts@@ -206,7 +206,7 @@ const getMenuMethod = ({ page }: { page: Page; isMobile: boolean }) => ({const dismissToast = async (page: Page, content: string) => {await expect(page.getByText(content)).toBeVisible();- await page.getByLabel("Close toast").click();+ await page.getByLabel("Close toast").first().click();// Since we are in optimistic UI, dismissing the toast trigger the request to the api linked to the toast messageawait page.waitForLoadState("networkidle");};