From 15052c8b487af6cf7a9dc7dabb6779003946e7f8 Mon Sep 17 00:00:00 2001 From: alannnc Date: Wed, 2 Mar 2022 15:51:46 -0700 Subject: [PATCH] fix/booking-first-day-of-next-mont (#2037) * fix/booking-first-day-of-next-mont * Change minimum wait time for booking next month first day test * Change minimum wait time for booking next month first day test * Change minimum wait time for booking next month first day test * Added Todo note for future improvement * Apply same timeout change in others change of month action test --- apps/web/playwright/booking-pages.test.ts | 5 +++++ apps/web/playwright/integrations-stripe.test.ts | 5 +++++ apps/web/playwright/integrations.test.ts | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/apps/web/playwright/booking-pages.test.ts b/apps/web/playwright/booking-pages.test.ts index 88eeae21a6..0e365ef606 100644 --- a/apps/web/playwright/booking-pages.test.ts +++ b/apps/web/playwright/booking-pages.test.ts @@ -31,6 +31,11 @@ test.describe("pro user", () => { await page.click('[data-testid="event-type-link"]'); // Click [data-testid="incrementMonth"] await page.click('[data-testid="incrementMonth"]'); + + // @TODO: Find a better way to make test wait for full month change render to end + // so it can click up on the right day, also when resolve remove other todos + // Waiting for full month increment + await page.waitForTimeout(400); // Click [data-testid="day"] await page.click('[data-testid="day"][data-disabled="false"]'); // Click [data-testid="time"] diff --git a/apps/web/playwright/integrations-stripe.test.ts b/apps/web/playwright/integrations-stripe.test.ts index 0fd437b90d..dbb3c24608 100644 --- a/apps/web/playwright/integrations-stripe.test.ts +++ b/apps/web/playwright/integrations-stripe.test.ts @@ -39,6 +39,11 @@ test.describe.serial("Stripe integration", () => { await page.goto("/pro/paid"); // Click [data-testid="incrementMonth"] await page.click('[data-testid="incrementMonth"]'); + + // @TODO: Find a better way to make test wait for full month change render to end + // so it can click up on the right day, also when resolve remove other todos + // Waiting for full month increment + await page.waitForTimeout(400); // Click [data-testid="day"] await page.click('[data-testid="day"][data-disabled="false"]'); // Click [data-testid="time"] diff --git a/apps/web/playwright/integrations.test.ts b/apps/web/playwright/integrations.test.ts index a0c110fcc9..5a799533af 100644 --- a/apps/web/playwright/integrations.test.ts +++ b/apps/web/playwright/integrations.test.ts @@ -39,6 +39,11 @@ test.describe("integrations", () => { // --- Book the first available day next month in the pro user's "30min"-event await page.goto(`/pro/30min`); await page.click('[data-testid="incrementMonth"]'); + + // @TODO: Find a better way to make test wait for full month change render to end + // so it can click up on the right day, also when resolve remove other todos + // Waiting for full month increment + await page.waitForTimeout(400); await page.click('[data-testid="day"][data-disabled="false"]'); await page.click('[data-testid="time"]');