Skip to content

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

Merged
merged 6 commits into from
May 28, 2025

Conversation

RulaKhaled
Copy link
Member

@RulaKhaled RulaKhaled commented May 26, 2025

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

@RulaKhaled RulaKhaled changed the title test(react-router): Add e2e tests for react router framework SPA mode [WIP] test(react-router): Add e2e tests for react router framework SPA mode May 26, 2025
@RulaKhaled RulaKhaled changed the title [WIP] test(react-router): Add e2e tests for react router framework SPA mode test(react-router): Add e2e tests for react router framework SPA mode May 27, 2025
<button
id="throw-on-click"
onClick={() => {
throw new Error('¡Madre mía!');
Copy link
Member

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',
Copy link
Member

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? 🤔

Copy link
Member Author

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?

@RulaKhaled RulaKhaled merged commit e6a8594 into develop May 28, 2025
161 checks passed
@RulaKhaled RulaKhaled deleted the e2e-spa-rr7 branch May 28, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants