Skip to content

Scheduling infrastructure for absolutely everyone.

fix/booking-first-day-of-next-mont (#2037)

alannnc15052c8b487a
diff --git a/apps/web/playwright/booking-pages.test.ts b/apps/web/playwright/booking-pages.test.ts
index 88eeae21a65..0e365ef606a 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 0fd437b90d5..dbb3c246084 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 a0c110fcc99..5a799533af0 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"]');