From 85d71fa2206974454f352e68392f7a4c0e228eb5 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 24 Oct 2024 15:17:29 +0200 Subject: [PATCH] Wait for availability chunk loading --- e2e/availabilities.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e2e/availabilities.spec.ts b/e2e/availabilities.spec.ts index ce823d2..5b4ee1a 100644 --- a/e2e/availabilities.spec.ts +++ b/e2e/availabilities.spec.ts @@ -3,6 +3,7 @@ import test, { expect } from "@playwright/test"; test('creates an availability', async ({ page }) => { await page.goto('/dashboard'); await page.getByRole('link', { name: 'Sales' }).click(); + await page.waitForTimeout(500); await page.getByRole('button').first().click(); await page.getByLabel('Total size').click(); await page.getByLabel('Total size').fill('0.50'); @@ -26,6 +27,7 @@ test('creates an availability', async ({ page }) => { test('availability navigation buttons', async ({ page }) => { await page.goto('/dashboard/availabilities'); + await page.waitForTimeout(500); await page.getByRole('button').first().click(); await expect(page.locator('.stepper-number-done')).not.toBeVisible() await expect(page.locator('.stepper-number-active')).toBeVisible()