-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
(The old Next.js integration tests flaking on this PR is hilariously ironic) |
@@ -22,7 +22,7 @@ export function getPlaywrightConfig( | |||
const config: PlaywrightTestConfig = { | |||
testDir: './tests', | |||
/* Maximum time one test can run for. */ | |||
timeout: 150_000, |
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 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.
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.
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')); |
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.
🔥
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.
@kamilogorek it lives on
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.
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