-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
test(react-router): Add e2e tests for react router framework SPA mode #16390
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
dev-packages/e2e-tests/test-applications/react-router-7-framework-spa/app/root.tsx
Outdated
Show resolved
Hide resolved
<button | ||
id="throw-on-click" | ||
onClick={() => { | ||
throw new Error('¡Madre mía!'); |
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 error messages 😂
], | ||
}, | ||
// todo: should be '/errors/client/:client-param' | ||
transaction: '/errors/client/churros', |
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.
We don't have these parameterized? 🤔
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.
Apparently not for errors, this isn't a special case for SPA though check out https://github.com/getsentry/sentry-javascript/blob/develop/dev-packages/e2e-tests/test-applications/react-router-7-framework/tests/errors/errors.client.test.ts#L81. Maybe there's an issue for this somewhere?
Adding e2e tests for SPA mode for react router framework. It was confirmed that navigation and client pageload instrumentations work.
closes getsentry/sentry-docs#13856