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
pull/2004/head^2
alannnc 2022-03-02 15:51:46 -07:00 committed by GitHub
parent 800002222b
commit 15052c8b48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View File

@ -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"]

View File

@ -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"]

View File

@ -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"]');