-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
chore: update system tests and prep for react18 harness removal/upstream merge for component testing #30614
chore: update system tests and prep for react18 harness removal/upstream merge for component testing #30614
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ | |
"src/**/*.js" | ||
], | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=18" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just a missed detail. Cypress requires node 18 and up so this is a non breaking change |
||
}, | ||
"types": "dist/index.d.ts", | ||
"license": "MIT", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ exports['@cypress/webpack-dev-server / react / executes all of the tests for web | |
──────────────────────────────────────────────────────────────────────────────────────────────────── | ||
Running: port.cy.jsx (1 of 1) | ||
41 modules | ||
✓ ensures we have launched at the overridden port | ||
|
@@ -69,9 +68,6 @@ exports['@cypress/webpack-dev-server / react / executes all of the tests for web | |
──────────────────────────────────────────────────────────────────────────────────────────────────── | ||
Running: port.cy.jsx (1 of 1) | ||
6 assets | ||
58 modules | ||
webpack x.x.x compiled successfully in xxx ms | ||
✓ ensures we have launched at the overridden port | ||
|
@@ -127,7 +123,6 @@ exports['@cypress/webpack-dev-server / react / executes all of the tests for web | |
──────────────────────────────────────────────────────────────────────────────────────────────────── | ||
Running: App.cy.jsx (1 of 9) | ||
51 modules | ||
ERROR in ./src/AppCompilationError.cy.jsx | ||
Module build failed (from [..]): | ||
|
@@ -173,7 +168,7 @@ SyntaxError: /foo/bar/.projects/webpack4_wds4-react/src/AppCompilationError.cy.j | |
1 failing | ||
1) An uncaught error was detected outside of a test: | ||
Error: The following error originated from your test code, not from Cypress. | ||
The following error originated from your test code, not from Cypress. | ||
> Module build failed (from [..]): | ||
SyntaxError: /foo/bar/.projects/webpack4_wds4-react/src/AppCompilationError.cy.jsx: Unexpected token, expected "," (8:0) | ||
|
@@ -190,6 +185,23 @@ When Cypress detects uncaught errors originating from your test code it will aut | |
Cypress could not associate this error to any specific test. | ||
We dynamically generated a new test to display this failure. | ||
Error: The following error originated from your test code, not from Cypress. | ||
> Module build failed (from [..]): | ||
SyntaxError: /foo/bar/.projects/webpack4_wds4-react/src/AppCompilationError.cy.jsx: Unexpected token, expected "," (8:0) | ||
6 | cy.get('h1').contains('Hello World') | ||
7 | } | ||
> 8 | }) | ||
| ^ | ||
9 | | ||
[stack trace lines] | ||
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test. | ||
Cypress could not associate this error to any specific test. | ||
We dynamically generated a new test to display this failure. | ||
[stack trace lines] | ||
|
@@ -550,9 +562,6 @@ exports['@cypress/webpack-dev-server / react / executes all of the tests for web | |
──────────────────────────────────────────────────────────────────────────────────────────────────── | ||
Running: App.cy.jsx (1 of 9) | ||
16 assets | ||
68 modules | ||
ERROR in ./src/AppCompilationError.cy.jsx | ||
Module build failed (from [..]): | ||
SyntaxError: /foo/bar/.projects/webpack5_wds4-react/src/AppCompilationError.cy.jsx: Unexpected token, expected "," (8:0) | ||
|
@@ -564,7 +573,7 @@ SyntaxError: /foo/bar/.projects/webpack5_wds4-react/src/AppCompilationError.cy.j | |
9 | | ||
[stack trace lines] | ||
webpack x.x.x compiled with x errors in xxx ms | ||
webpack compiled with 1 error | ||
✓ renders hello world | ||
|
@@ -599,7 +608,7 @@ webpack x.x.x compiled with x errors in xxx ms | |
1 failing | ||
1) An uncaught error was detected outside of a test: | ||
Error: The following error originated from your test code, not from Cypress. | ||
The following error originated from your test code, not from Cypress. | ||
> Module build failed (from [..]): | ||
SyntaxError: /foo/bar/.projects/webpack5_wds4-react/src/AppCompilationError.cy.jsx: Unexpected token, expected "," (8:0) | ||
|
@@ -616,6 +625,23 @@ When Cypress detects uncaught errors originating from your test code it will aut | |
Cypress could not associate this error to any specific test. | ||
We dynamically generated a new test to display this failure. | ||
Error: The following error originated from your test code, not from Cypress. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this error showing up twice in the output? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's the update to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will that look weird to the user to have it show up twice? Or is this just a system test nuance? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't believe so since this is our default behavior if we can discover a message. My guess is previously there wasn't a message attached with the error and now there is, so we have something to print |
||
> Module build failed (from [..]): | ||
SyntaxError: /foo/bar/.projects/webpack5_wds4-react/src/AppCompilationError.cy.jsx: Unexpected token, expected "," (8:0) | ||
6 | cy.get('h1').contains('Hello World') | ||
7 | } | ||
> 8 | }) | ||
| ^ | ||
9 | | ||
[stack trace lines] | ||
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test. | ||
Cypress could not associate this error to any specific test. | ||
We dynamically generated a new test to display this failure. | ||
[stack trace lines] | ||
|
@@ -976,9 +1002,6 @@ exports['@cypress/webpack-dev-server / react / executes all of the tests for web | |
──────────────────────────────────────────────────────────────────────────────────────────────────── | ||
Running: App.cy.jsx (1 of 9) | ||
16 assets | ||
72 modules | ||
ERROR in ./src/AppCompilationError.cy.jsx | ||
Module build failed (from [..]): | ||
SyntaxError: /foo/bar/.projects/webpack5_wds5-react/src/AppCompilationError.cy.jsx: Unexpected token, expected "," (8:0) | ||
|
@@ -990,7 +1013,7 @@ SyntaxError: /foo/bar/.projects/webpack5_wds5-react/src/AppCompilationError.cy.j | |
9 | | ||
[stack trace lines] | ||
webpack x.x.x compiled with x errors in xxx ms | ||
webpack compiled with 1 error | ||
✓ renders hello world | ||
|
@@ -1417,9 +1440,6 @@ exports['@cypress/webpack-dev-server / react / executes all of the tests for web | |
──────────────────────────────────────────────────────────────────────────────────────────────────── | ||
Running: port.cy.jsx (1 of 1) | ||
6 assets | ||
62 modules | ||
webpack x.x.x compiled successfully in xxx ms | ||
✓ ensures we have launched at the overridden port | ||
|
@@ -1462,7 +1482,7 @@ Your configFile threw an error from: cypress-webpack.config.ts | |
We stopped running your tests because your config file crashed. | ||
CypressWebpackDevServerError: Incompatible major versions of webpack and webpack-dev-server! | ||
webpack-dev-server major version 5 only works with major versions of webpack 5 - saw webpack-dev-server version 5.0.4. | ||
webpack-dev-server major version 5 only works with major versions of webpack 5 - saw webpack-dev-server version 5.1.0. | ||
If using webpack major version 4, please install webpack-dev-server version 4 to be used with @cypress/webpack-dev-server or upgrade to webpack 5. | ||
[stack trace lines] | ||
` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { mount } from 'cypress/react' | ||
import { mount } from 'cypress/react18' | ||
|
||
import './backgroundColor.css' | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
const { defineConfig } = require('vite') | ||
|
||
module.exports = defineConfig({ | ||
resolve: { | ||
alias: { | ||
'react': require.resolve('react'), | ||
'react-dom': require.resolve('react-dom'), | ||
}, | ||
}, | ||
logLevel: 'silent', | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"dependencies": { | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2" | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,32 +14,24 @@ loose-envify@^1.1.0: | |
dependencies: | ||
js-tokens "^3.0.0 || ^4.0.0" | ||
|
||
object-assign@^4.1.1: | ||
version "4.1.1" | ||
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" | ||
integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== | ||
|
||
[email protected]: | ||
version "17.0.2" | ||
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23" | ||
integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA== | ||
[email protected]: | ||
version "18.3.1" | ||
resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz#c2265d79511b57d479b3dd3fdfa51536494c5cb4" | ||
integrity sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw== | ||
dependencies: | ||
loose-envify "^1.1.0" | ||
object-assign "^4.1.1" | ||
scheduler "^0.20.2" | ||
scheduler "^0.23.2" | ||
|
||
react@17.0.2: | ||
version "17.0.2" | ||
resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037" | ||
integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA== | ||
react@18.3.1: | ||
version "18.3.1" | ||
resolved "https://registry.npmjs.org/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891" | ||
integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ== | ||
dependencies: | ||
loose-envify "^1.1.0" | ||
object-assign "^4.1.1" | ||
|
||
scheduler@^0.20.2: | ||
version "0.20.2" | ||
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91" | ||
integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ== | ||
scheduler@^0.23.2: | ||
version "0.23.2" | ||
resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz#414ba64a3b282892e944cf2108ecc078d115cdc3" | ||
integrity sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ== | ||
dependencies: | ||
loose-envify "^1.1.0" | ||
object-assign "^4.1.1" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"devDependencies": { | ||
"typescript": "4.7.3" | ||
"typescript": "5.6.3" | ||
}, | ||
"projectFixtureDirectory": "simple_passing" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"devDependencies": { | ||
"typescript": "4.7.3" | ||
"typescript": "5.6.3" | ||
}, | ||
"projectFixtureDirectory": "simple_passing" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Typescript versioning | ||
|
||
Typescript v4.9.5 is used here as Typescript v5 does NOT support E3 as a target. Once Cypress drops support for TypeScript 4, this project can be removed. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"devDependencies": { | ||
"typescript": "4.7.3" | ||
"typescript": "4.9.5" | ||
}, | ||
"projectFixtureDirectory": "simple_passing" | ||
} |
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.
needs to be updated since
find-up
update in themodule-api
system test is now on version 7 and cannot be installed with node 16.ubuntu-2004:202111-02
ships with node 16, asubuntu-2004:2024.05.1
ships with node 20.13.0