8000 test(e2e): Add `nextjs-13` e2e test app by lforst · Pull Request #13154 · getsentry/sentry-javascript · GitHub
[go: up one dir, main page]

Skip to content

test(e2e): Add nextjs-13 e2e test app #13154

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 3 commits into from
Aug 1, 2024
Merged

Conversation

lforst
Copy link
Contributor
@lforst lforst commented Aug 1, 2024

This PR adds a Next.js 13 e2e test app with all the tests we have in our current Next.js integration tests.

Ref #13086

@lforst
Copy link
Contributor Author
lforst commented Aug 1, 2024

(The old Next.js integration tests flaking on this PR is hilariously ironic)

@lforst lforst marked this pull request as ready for review August 1, 2024 11:44
@@ -22,7 +22,7 @@ export function getPlaywrightConfig(
const config: PlaywrightTestConfig = {
testDir: './tests',
/* Maximum time one test can run for. */
timeout: 150_000,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We used to have a very long timeout here because we used to poll for events on sentry and that could take a while. Nowadays the tests that poll sentry have their own playwright configs with long timeouts so we can lessen the timeout here.

Copy link
Member
@chargome chargome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM , nice cleanup with #13155!

if (typeof window !== 'undefined' && typeof window.onerror === 'function') {
// Lovely oldschool browsers syntax with 5 arguments <3
// @ts-expect-error
window.onerror(null, null, null, null, new Error('Crashed'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kamilogorek it lives on

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@lforst lforst merged commit 26c81e8 into develop Aug 1, 2024
139 of 141 checks passed
@lforst lforst deleted the nextjs-13-e2e-test-app branch August 1, 2024 12:33
lforst added a commit that referenced this pull request Aug 1, 2024
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.

3 participants
0