fix: inconsistent timezones in e2e tests#11841
Conversation
|
Current dependencies on/for this PR: This comment was auto-generated by Graphite. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
|
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes! |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Current Playwright Test Results Summary✅ 162 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 10/16/2023 11:33:33pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: 349d8c0 Started: 10/16/2023 11:30:58pm UTC
|
|
|
2 Test Cases Affected |
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Popup Tests should be able to reschedule
Retry 2 • Retry 1 • Initial Attempt |
7.85% (26)26 / 331 runsfailed over last 7 days |
90.94% (301)301 / 331 runsflaked over last 7 days |
|
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when no theme is configured through Embed API
Retry 1 • Initial Attempt |
3.31% (11)11 / 332 runsfailed over last 7 days |
37.35% (124)124 / 332 runsflaked over last 7 days |
📄 apps/web/playwright/profile.e2e.ts • 1 Flake
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Teams Profile page is loaded for users in Organization
Retry 1 • Initial Attempt |
1.62% (5)5 / 309 runsfailed over last 7 days |
28.80% (89)89 / 309 runsflaked over last 7 days |
63f514c to
f0ae8bd
Compare
18f1fb8 to
349d8c0
Compare
|
|
||
| import { selectFirstAvailableTimeSlotNextMonth, teamEventSlug, teamEventTitle } from "../lib/testUtils"; | ||
| import type { TimeZoneEnum } from "./types"; | ||
| import { TimeZoneEnum } from "./types"; |
There was a problem hiding this comment.
nit: I think we should move TimeZoneEnum from types to somewhere else as it's not just a type, a value also.
| type BookingFixture = ReturnType<typeof createBookingFixture>; | ||
|
|
||
| // We default all dayjs calls to use Europe/London timezone | ||
| const dayjs = (...args: Parameters<typeof _dayjs>) => _dayjs(...args).tz("Europe/London"); |
There was a problem hiding this comment.
nit: We could use Timezone.UK here also.

What does this PR do?
refs #2337
Up until recently, running e2e tests locally didn't take into account local timezones. Now it seems like it is and is triggering the update timezone popup, getting tests to timeout.
Type of change
How should this be tested?
On a browser with a different timezone (like America/Mazatlan), run e2e tests. The popup should not appear.
Mandatory Tasks