Skip to content

Commit b72b5f6

Browse files
author
Luca Forstner
authored
test(e2e): Run e2e tests for Next.js 13 and 14 (#9381)
1 parent 8d41656 commit b72b5f6

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,12 @@ jobs:
884884
- test-application: 'standard-frontend-react'
885885
build-command: 'test:build-ts3.8'
886886
label: 'standard-frontend-react (TS 3.8)'
887+
- test-application: 'create-next-app'
888+
build-command: 'test:build-13'
889+
label: 'create-next-app (next@13)'
890+
- test-application: 'nextjs-app-dir'
891+
build-command: 'test:build-13'
892+
label: 'nextjs-app-dir (next@13)'
887893

888894
steps:
889895
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})

packages/e2e-tests/test-applications/create-next-app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"test:prod": "TEST_ENV=prod playwright test",
99
"test:dev": "TEST_ENV=dev playwright test",
1010
"test:build": "pnpm install && npx playwright install && pnpm build",
11+
"test:build-13": "pnpm install && pnpm add [email protected] && npx playwright install && pnpm build",
1112
"test:assert": "pnpm test:prod && pnpm test:dev"
1213
},
1314
"dependencies": {
@@ -16,7 +17,7 @@
1617
"@types/node": "18.11.17",
1718
"@types/react": "18.0.26",
1819
"@types/react-dom": "18.0.9",
19-
"next": "13.0.7",
20+
"next": "14.0.0",
2021
"react": "18.2.0",
2122
"react-dom": "18.2.0",
2223
"typescript": "4.9.5"

packages/e2e-tests/test-applications/nextjs-app-dir/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"test:test-build": "pnpm ts-node --script-mode assert-build.ts",
1212
"test:build-canary": "pnpm install && pnpm add next@canary && npx playwright install && pnpm build",
1313
"test:build-latest": "pnpm install && pnpm add next@latest && npx playwright install && pnpm build",
14+
"test:build-13": "pnpm install && pnpm add [email protected] && npx playwright install && pnpm build",
1415
"test:assert": "pnpm test:test-build && pnpm test:prod && pnpm test:dev"
1516
},
1617
"dependencies": {
@@ -19,7 +20,7 @@
1920
"@types/node": "18.11.17",
2021
"@types/react": "18.0.26",
2122
"@types/react-dom": "18.0.9",
22-
"next": "13.4.19",
23+
"next": "14.0.0",
2324
"react": "18.2.0",
2425
"react-dom": "18.2.0",
2526
"typescript": "4.9.5",

0 commit comments

Comments
 (0)