Skip to content

Commit 176fb77

Browse files
fix: One flaky E2E tests (#24815)
* fix: exclude booking responses from calendar/CRM integrations for seated events For seated events (events with seatsPerTimeSlot), booking responses are now excluded from being sent to calendar integrations (Google Calendar, etc.), CRM integrations (HubSpot, Salesforce, etc.), and other integrations. This applies to both creating new seated bookings and rescheduling seated bookings. The calendar event and CRM records are still created, but without the custom booking field responses included in the description/notes. Co-Authored-By: [email protected] <[email protected]> * test * Refactor Office 365 Calendar OAuth redirect URI Removed debug logging for redirect URI and client ID. * test * check * Update Prisma connection logic for integration tests Refactor database connection handling for integration tests. * update * Refactor conditionals and simplify role handling * Add test comment in index.ts * Remove integration test flag from index.ts Remove integration test flag from database connection logic. * update --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent ae7fd0c commit 176fb77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/web/playwright/dynamic-booking-pages.e2e.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ test("multiple duration selection updates event length correctly", async ({ page
118118

119119
await page.goto(`/${user.username}/multiple-duration`);
120120

121-
// Wait for time slots to be visible and clickable
122-
await page.locator('[data-testid="time"]').nth(0).waitFor({ state: "visible" });
121+
await page.waitForURL((url) => {
122+
return url.searchParams.get("overlayCalendar") === "true";
123+
});
123124

124125
await page.locator('[data-testid="multiple-choice-30mins"]').waitFor({ state: "visible" });
125126

@@ -131,6 +132,7 @@ test("multiple duration selection updates event length correctly", async ({ page
131132

132133
await test.step("book with 90min duration and verify title", async () => {
133134
await page.getByTestId("multiple-choice-90mins").click();
135+
await page.locator('[data-testid="time"]').nth(0).waitFor({ state: "visible" });
134136

135137
const duration90 = page.getByTestId("multiple-choice-90mins");
136138
const activeState = await duration90.getAttribute("data-active");

0 commit comments

Comments
 (0)