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
This commit is contained in:
parent
800002222b
commit
15052c8b48
3 changed files with 15 additions and 0 deletions
|
@ -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"]
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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"]');
|
||||
|
||||
|
|
Loading…
Reference in a new issue