Skip to content

chore: add Next.js e2e tooling #1773

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 7 commits into from
Nov 16, 2022
Merged

chore: add Next.js e2e tooling #1773

merged 7 commits into from
Nov 16, 2022

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Nov 14, 2022

Summary

Adds test tooling to allow us to run e2e tests from the Next.js monorepo. Most of the changes in this PR are files copied from the Next.js monorepo. See next section for details.

Test plan

The following directories do not need reviewing:

  • test/e2e/getserversideprops: test and fixture site copied from Next.js monorepo
  • everything in test/e2e/next-test-lib except test/e2e/next-test-lib/next-modes/next-deploy.ts

This e2e test is failing because it's caught a bug already! Issue: #1776 Fix: #1780

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

smol capy

Standard checks:

  • Check the Deploy Preview's Demo site for your PR's functionality
  • Add docs when necessary

🧪 Once merged, make sure to update the version if needed and that it was published correctly.

@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit d7ecb26
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/6375066a535f6800088ffd53
😎 Deploy Preview https://deploy-preview-1773--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit d7ecb26
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/6375066a25114a00092ab207
😎 Deploy Preview https://deploy-preview-1773--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit d7ecb26
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/6375066a916cb00008f05014
😎 Deploy Preview https://deploy-preview-1773--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit d7ecb26
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/6375066ab7b187000978b085
😎 Deploy Preview https://deploy-preview-1773--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit d7ecb26
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/6375066a156486000938d97e
😎 Deploy Preview https://deploy-preview-1773--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Nov 14, 2022
@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit d7ecb26
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/6375066aa671cd00089549b7
😎 Deploy Preview https://deploy-preview-1773--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit d7ecb26
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/6375066a94b04d0007ce994d
😎 Deploy Preview https://deploy-preview-1773--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit d7ecb26
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/6375066aa671cd00089549b5
😎 Deploy Preview https://deploy-preview-1773--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit d7ecb26
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/6375066a295acb0007d83d5b
😎 Deploy Preview https://deploy-preview-1773--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ascorbic ascorbic force-pushed the mk/e2e-tooling branch 2 times, most recently from 994a1b0 to 1cac95e Compare November 14, 2022 15:41
@netlify
Copy link

netlify bot commented Nov 15, 2022

Deploy Preview for nextjs-plugin-next-11-demo failed.

Name Link
🔨 Latest commit d7ecb26
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-next-11-demo/deploys/6375066a94b04d0007ce9952

@ascorbic ascorbic marked this pull request as ready for review November 15, 2022 11:48
@ascorbic ascorbic requested a review from a team November 15, 2022 11:48
console.log(`Using Netlify CLI version:`, res.stdout)
} catch (_) {
console.log(`Installing Netlify CLI`)
await execa('npm', ['i', '-g', 'netlify-cli@latest'], {

Choose a reason for hiding this comment

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

should we use yarn to install this as we're using yarn above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one is a global install, so it doesn't really matter

Copy link

@sarahetter sarahetter left a comment

Choose a reason for hiding this comment

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

So excited for this! Just one question, but otherwise the code you added LGTM

@kodiakhq kodiakhq bot merged commit c6aeb68 into main Nov 16, 2022
@kodiakhq kodiakhq bot deleted the mk/e2e-tooling branch November 16, 2022 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants