-
Notifications
You must be signed in to change notification settings - Fork 8.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: api-middleware #11825
test: api-middleware #11825
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Ignored Deployments
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
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✅ 147 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 10/11/2023 01:30:52pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: 4dc5c7b Started: 10/11/2023 01:28:20pm UTC
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
pro user can reschedule a booking
Retry 2 • Retry 1 • Initial Attempt |
1.05% (3)3 / 285 runsfailed over last 7 days |
6.67% (19)19 / 285 runsflaked over last 7 days |
📄 packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 2 Flakes
Top 1 Common Error Messages
|
2 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 |
2.80% (8)8 / 286 runsfailed over last 7 days |
16.43% (47)47 / 286 runsflaked over last 7 days |
Popup Tests should be able to reschedule
Retry 1 • Initial Attempt |
4.20% (12)12 / 286 runsfailed over last 7 days |
94.41% (270)270 / 286 runsflaked over last 7 days |
📄 apps/web/playwright/managed-event-types.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Managed Event Types tests Can create managed event type
Retry 2 • Retry 1 • Initial Attempt |
0.70% (2)2 / 287 runsfailed over last 7 days |
25.09% (72)72 / 287 runsflaked over last 7 days |
📄 packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Routing Forms Seeded Routing Form Routing Link should validate fields
Retry 1 • Initial Attempt |
0.35% (1)1 / 289 runfailed over last 7 days |
9.69% (28)28 / 289 runsflaked over last 7 days |
.vscode/settings.json
Outdated
@@ -7,5 +7,6 @@ | |||
"typescript.preferences.importModuleSpecifier": "non-relative", | |||
"spellright.language": ["en"], | |||
"spellright.documentTypes": ["markdown", "typescript", "typescriptreact"], | |||
"tailwindCSS.experimental.classRegex": [["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]] | |||
"tailwindCSS.experimental.classRegex": [["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]], | |||
"vitest.commandLine": "" |
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.
"vitest.commandLine": "" |
5775f5d
to
df1ec3b
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.
Fix tests (These test were never running due to the vitest workspace config)
Commented out so we can still run tests in API dir
@@ -16,7 +16,7 @@ const workspaces = packagedEmbedTestsOnly | |||
test: { | |||
include: ["packages/**/*.{test,spec}.{ts,js}", "apps/**/*.{test,spec}.{ts,js}"], | |||
// TODO: Ignore the api until tests are fixed | |||
exclude: ["apps/api/**/*", "**/node_modules/**/*", "packages/embeds/**/*"], |
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.
No longer exclude tests
df1ec3b
to
5e5016c
Compare
5e5016c
to
a820942
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.
Fix tests (These test were never running due to the vitest workspace config)
- Commented out as they are broken
@@ -21,7 +22,7 @@ vi.mock("@calcom/lib/server/i18n", () => { | |||
}; | |||
}); | |||
|
|||
describe("POST /api/bookings", () => { | |||
describe.skipIf(true)("POST /api/bookings", () => { |
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.
Skipping as these tests are always failing - they never used to run due to how vitest.workspace.ts was configured
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.
Great work, @sean-brydon. What do you think about adding tests for the withMiddleware
file as well. This way we can guarantee the middleware we expect to be wired up is there and in the order we expect.
* tests/api-middleware * Skip if true * Remove prisma from response mock
Adds tests to api middleware