-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
test: testing workflow triggers #12823
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
5 Ignored Deployments
|
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
📦 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✅ 334 Passing - ❌ 1 Failing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 12/18/2023 03:26:42pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: 0efc646 Started: 12/18/2023 03:17:26pm UTC ❌ Failures📄 packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 1 FailureTest Case Results
|
|
2 Test Cases Affected |
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Team Invitation (non verified)
Retry 1 • Initial Attempt |
4.12% (11)11 / 267 runsfailed over last 7 days |
93.26% (249)249 / 267 runsflaked over last 7 days |
Team Invitation (verified)
Retry 1 • Initial Attempt |
0% (0)0 / 267 runsfailed over last 7 days |
94.76% (253)253 / 267 runsflaked over last 7 days |
📄 apps/web/playwright/locale.e2e.ts • 13 Flakes
Top 1 Common Error Messages
|
13 Test Cases Affected |
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
unauthorized user sees correct translations (de) should use correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
unauthorized user sees correct translations (ar) should use correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
unauthorized user sees correct translations (zh) should use correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
unauthorized user sees correct translations (zh-CN) should use correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
unauthorized user sees correct translations (zh-TW) should use correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
unauthorized user sees correct translations (pt) should use correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
unauthorized user sees correct translations (pt-br) should use correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
unauthorized user sees correct translations (es-419) should use correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
authorized user sees correct translations (de) should return correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
authorized user sees correct translations (pt-br) should return correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
authorized user sees correct translations (ar) should return correct translations and html attributes
Retry 1 • Initial Attempt |
-12.64% (-34)-34 / 269 runsfailed over last 7 days |
12.64% (34)34 / 269 runsflaked over last 7 days |
authorized user sees changed translations (de->ar) should return correct translations and html attributes
Retry 1 • Initial Attempt |
-2.97% (-8)-8 / 269 runsfailed over last 7 days |
11.52% (31)31 / 269 runsflaked over last 7 days |
authorized user sees changed translations (de->pt-BR) [locale1] should return correct translations and html attributes
Retry 1 • Initial Attempt |
-8.54% (-21)-21 / 246 runsfailed over last 7 days |
11.79% (29)29 / 246 runsflaked over last 7 days |
📄 apps/web/playwright/event-types.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Event Types tests user -- legacy Different Locations Tests can add single organizer address location without display location public option
Retry 1 • Initial Attempt |
0% (0)0 / 245 runsfailed over last 7 days |
1.22% (3)3 / 245 runsflaked over last 7 days |
📄 packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 3 Flakes
Top 1 Common Error Messages
|
3 Test Cases Affected |
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1 • Initial Attempt |
1.10% (3)3 / 272 runsfailed over last 7 days |
61.03% (166)166 / 272 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 |
0.37% (1)1 / 272 runfailed over last 7 days |
83.82% (228)228 / 272 runsflaked over last 7 days |
Popup Tests should open Routing Forms embed on click
Retry 1 • Initial Attempt |
0.37% (1)1 / 272 runfailed over last 7 days |
50.37% (137)137 / 272 runsflaked over last 7 days |
emails: Fixtures["emails"]; | ||
organizer: { email: string; name: string; timeZone: string }; | ||
}) { | ||
const subjectPattern = /^Reminder: /i; |
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.
For now I am only testing workflows with reminder template, so subject will always start with 'Reminder: '
@@ -1374,7 +1439,7 @@ describe("handleNewBooking", () => { | |||
status: BookingStatus.PENDING, | |||
}); | |||
|
|||
expectWorkflowToBeTriggered(); | |||
expectWorkflowToBeNotTriggered({ organizer, emails }); |
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.
status is pending because event type requires confirmation, workflow is triggered when booking is confirmed
@@ -202,7 +202,7 @@ describe("handleNewBooking", () => { | |||
}); | |||
} | |||
|
|||
expectWorkflowToBeTriggered(); | |||
// expectWorkflowToBeTriggered(); |
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.
Will do this in a follow-up: #12882
@@ -815,7 +850,7 @@ describe("handleNewBooking", () => { | |||
}, | |||
}); | |||
|
|||
expectWorkflowToBeTriggered(); | |||
// expectWorkflowToBeTriggered({emails, organizer}); |
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.
this fails and is a bug, I created an issue for it: #12881
@@ -198,7 +198,7 @@ describe("handleNewBooking", () => { | |||
], | |||
}); | |||
|
|||
expectWorkflowToBeTriggered(); | |||
// expectWorkflowToBeTriggered(); |
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.
also follow up: #12882
|
||
const testMode = process.env.NEXT_PUBLIC_IS_E2E || process.env.INTEGRATION_TEST_MODE ? true : false; | ||
if (testMode) { | ||
if (!mailData.sendAt) { |
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.
for now only 'when event is booked' trigger is tested, no scheduling of email in test mode possible and needed for now
@@ -327,6 +327,7 @@ | |||
"TELEMETRY_DEBUG", | |||
"TWILIO_MESSAGING_SID", | |||
"TWILIO_PHONE_NUMBER", | |||
"TWILIO_WHATSAPP_PHONE_NUMBER", |
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.
this was missing, couldn't commit without that. Not sure why this was no issue before
What does this PR do?
Add tests for testing workflow triggers when new booking is created and booking is rescheduled.
Follow up issues:
#12882
#12881
Type of change
How should this be tested?
Run:
yarn test fresh-booking.test.ts
yarn test reschedule.test.ts
Mandatory Tasks