From 6ceab52880f2c3529f023fc407601f32176db59d Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 25 Feb 2025 20:43:56 +0100 Subject: [PATCH] Fix tests --- e2e/availabilities.spec.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/e2e/availabilities.spec.ts b/e2e/availabilities.spec.ts index 0acf9e7..c496b8d 100644 --- a/e2e/availabilities.spec.ts +++ b/e2e/availabilities.spec.ts @@ -36,21 +36,18 @@ test("availability navigation buttons", async ({ page }) => { await page.locator(".availability-edit button").first().click(); await expect(page.locator(".stepper-number-done")).not.toBeVisible(); await expect(page.locator(".step--active")).toBeVisible(); - await expect(page.locator("footer .button--primary")).not.toHaveAttribute( - "disabled" - ); await expect( page.locator("footer .button--outline").first() ).not.toHaveAttribute("disabled"); await page.getByLabel("Total size").click(); - await expect( - page.locator("footer .button--outline").first() - ).not.toHaveAttribute("disabled"); - await page.getByLabel("Total size").fill("19"); + await page.getByLabel("Total size").fill(""); + await page.getByLabel("Duration").click(); + await expect(page.locator("footer .button--primary")).toHaveAttribute( "disabled", { timeout: 3000 } ); + await page.getByLabel("Total size").click(); await page.getByLabel("Total size").fill("0.5"); await page.getByRole("button", { name: "Next" }).click();