Wait for availability chunk loading

This commit is contained in:
Arnaud 2024-10-24 15:17:29 +02:00
parent 39badaaf14
commit 85d71fa220
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -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()