-
Notifications
You must be signed in to change notification settings - Fork 366
chore(e2e): Fix flaky tests for multi-session with tasks #6306
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
4b6bf18
to
7eb1978
Compare
📝 WalkthroughWalkthroughThe test "when switching sessions, navigate to task" in the integration test suite was unskipped and refactored from an afterEach hook to a standalone test. The test now includes a conditional skip for Next.js version 14. Additional synchronization steps were added: after switching user accounts, the test waits for the user button popover to close, waits for the sign-in component to mount, and ensures the page URL matches a task-related pattern before proceeding. The test concludes by signing out and clearing cookies. No changes were made to exported or public entity declarations. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/elements
@clerk/clerk-expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/clerk-react
@clerk/react-router
@clerk/remix
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/themes
@clerk/types
@clerk/upgrade
@clerk/vue
commit: |
The multi-session test is failing on Next.js 14 inconsistently. I'm not sure if this is related with server-state. I'm struggling to get it running locally with the E2E pointing to Next.js 14 so I'll link the app-router playground and try to reproduce any bug related to it, otherwise, might be some race condition on the assertions still. |
7eb1978
to
fd40f3b
Compare
947ac11
to
e412dc7
Compare
I'm running after-auth with multi-session on an app running Next.js 14.2.25 and I still couldn't run Cypress with the debug mode to see why the assertions are failing to navigate to tasks on 14. |
b13827a
to
6526104
Compare
6526104
to
de1cb20
Compare
88af358
to
54c0f69
Compare
Description
This PR temporarily skips the multi-session test for Next.js 14. I don't know the root cause yet, due to not having been able to run Cypress locally with debug mode against Next.js 14.
We made tests on a Next.js 14 app using the latest
@clerk/nextjs
and the feature works correctly.For Next.js 15: Tests were flaky before due to a race condition where we were awaiting for the
SignIn
component to be mounted, by the time the client-side navigation to the/tasks
route was happening.Checklist
pnpm test
runs as expected.pnpm build
runs as expected.Type of change
Summary by CodeRabbit