-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one zomars 🚀
18f1fb8
to
349d8c0
Compare
import stripe from "@calcom/features/ee/payments/server/stripe"; | ||
import { DEFAULT_SCHEDULE, getAvailabilityFromSchedule } from "@calcom/lib/availability"; | ||
import { WEBAPP_URL } from "@calcom/lib/constants"; | ||
import { prisma } from "@calcom/prisma"; | ||
import { MembershipRole, SchedulingType } from "@calcom/prisma/enums"; | ||
|
||
import { selectFirstAvailableTimeSlotNextMonth, teamEventSlug, teamEventTitle } from "../lib/testUtils"; | ||
import type { TimeZoneEnum } from "./types"; | ||
import { TimeZoneEnum } from "./types"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think we should move TimeZoneEnum from types to somewhere else as it's not just a type, a value also.
import { prisma } from "@calcom/prisma"; | ||
|
||
const translator = short(); | ||
|
||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: We could use Timezone.UK here also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
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