diff --git a/.circleci/workflows.yml b/.circleci/workflows.yml index 2fa72864f8..8b875cf747 100644 --- a/.circleci/workflows.yml +++ b/.circleci/workflows.yml @@ -3486,7 +3486,7 @@ jobs: yarn lerna run types name: Test types - sanitize-verify-and-store-mocha-results: - expectedResultCount: 17 + expectedResultCount: 16 working_directory: ~/cypress v8-integration-tests: environment: diff --git a/guides/error-handling-accept-snapshot.png b/guides/error-handling-accept-snapshot.png deleted file mode 100644 index f3be3fa5f9..0000000000 Binary files a/guides/error-handling-accept-snapshot.png and /dev/null differ diff --git a/guides/error-handling-snapshot-compare.png b/guides/error-handling-snapshot-compare.png new file mode 100644 index 0000000000..1f2c9457b8 Binary files /dev/null and b/guides/error-handling-snapshot-compare.png differ diff --git a/guides/error-handling.md b/guides/error-handling.md index 24ca4d3578..0450914efa 100644 --- a/guides/error-handling.md +++ b/guides/error-handling.md @@ -8,30 +8,23 @@ All error related logic for the server should be added to `@packages/errors`. ### Errors Development Workflow -Adding and editing errors is best done with the help of the Error Comparison tool. +Adding and editing errors is best done with the help of an ANSI Comparison tool. Cursor/VSCode offer the [vscode-ansi](https://marketplace.cursorapi.com/items/?itemName=iliazeus.vscode-ansi) comparison tool. -Start off by launching the Error Comparison tool from `packages/errors` via `yarn comparison`. This will launch a mini-webapp at http://localhost:5555. - -The Error Comparison app has three pages: Ansi Compare, Ansi Base List, and Markdown. - -1. Ansi Compare - Used to compare and accept changes made during development -2. Ansi Base List - Used to preview errors as they will be rendered to users in the Terminal. -3. Markdown - Used to preview errors as they will be rendered to users within the App, Launchpad, and Reporter. +Errors can be compared directly in your code error. Comparing old vs new errors can be done via comparing the git diff or the snapshot diff. #### Editing or Adding New Errors and Updating Snapshots - + 1. Add (or update) errors in `packages/errors/src/errors.ts` -2. Add test cases to `visualSnapshotErrors_spec.ts` -3. Run `yarn test` in the `packages/errors` directory -4. Run `yarn comparison` in the `packages/errors` directory -5. Open http://localhost:5555/ -6. Search for the error you're working on by the error key. (e.g. `AUTOMATION_SERVER_DISCONNECTED`) -7. Click "Looks Good" if it looks good. -8. To make edits, re-run the `yarn test` command and do a full refresh of the webapp. -9. Run `yarn test` after updating the snapshot to validate the changes were applied. -10. Commit the files changed in `__snapshot-html__` +2. Add test cases to `visualSnapshotErrors.spec.ts`. +3. Run `yarn test` in the `packages/errors` directory. +4. See the `.ansi` file generated/edited for your added test case. The file should be named by the error key. (e.g. `AUTOMATION_SERVER_DISCONNECTED`). +5. click the "Open Preview to the Side" icon in the top right portion of your code editor. +6. Verify the changes expected. +7. To make edits, re-run the `yarn test -u` command. `-u` will update the test snapshots. +8. Run `yarn test` after updating the snapshot to validate the changes were applied. +9. Commit the files changed in `./test/__snapshots__`. ### Technical Overview diff --git a/guides/esm-migration.md b/guides/esm-migration.md index 05e948f80a..d353b2d247 100644 --- a/guides/esm-migration.md +++ b/guides/esm-migration.md @@ -90,7 +90,7 @@ - [ ] packages/data-context - [x] packages/driver ✅ **COMPLETED** - [x] packages/electron ✅ **COMPLETED** -- [ ] packages/error +- [x] packages/error ✅ **COMPLETED** - [ ] packages/extension - [ ] packages/https-proxy - [x] packages/electron ✅ **COMPLETED** diff --git a/packages/data-context/schemas/schema.graphql b/packages/data-context/schemas/schema.graphql index ecb460e3bd..ee9151e4fe 100644 --- a/packages/data-context/schemas/schema.graphql +++ b/packages/data-context/schemas/schema.graphql @@ -1188,7 +1188,6 @@ enum ErrorTypeEnum { EXPERIMENTAL_SKIP_DOMAIN_INJECTION_REMOVED EXPERIMENTAL_STUDIO_E2E_ONLY EXTENSION_NOT_LOADED - FIREFOX_CDP_FAILED_TO_CONNECT FIREFOX_COULD_NOT_CONNECT FIREFOX_GECKODRIVER_FAILURE FIXTURE_NOT_FOUND diff --git a/packages/errors/.mocharc.js b/packages/errors/.mocharc.js deleted file mode 100644 index a1506f6625..0000000000 --- a/packages/errors/.mocharc.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - spec: 'test/unit/*.ts', - require: '@packages/ts/register', - recursive: true, - extension: ['ts'], - reporter: 'mocha-multi-reporters', - reporterOptions: { - configFile: '../../mocha-reporter-config.json', - }, - exit: true, -} diff --git a/packages/errors/__snapshot-html__/AUTOMATION_SERVER_DISCONNECTED.html b/packages/errors/__snapshot-html__/AUTOMATION_SERVER_DISCONNECTED.html deleted file mode 100644 index 170d59baca..0000000000 --- a/packages/errors/__snapshot-html__/AUTOMATION_SERVER_DISCONNECTED.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
The automation client disconnected. Cannot continue running tests.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/BAD_POLICY_WARNING.html b/packages/errors/__snapshot-html__/BAD_POLICY_WARNING.html deleted file mode 100644 index 617575adb0..0000000000 --- a/packages/errors/__snapshot-html__/BAD_POLICY_WARNING.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - -
Cypress detected policy settings on your computer that may cause issues.
-
-The following policies were detected that may prevent Cypress from automating Chrome:
-
- - HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ProxyServer
- - HKEY_CURRENT_USER\Software\Policies\Google\Chromium\ExtensionSettings
-
-For more information, see https://on.cypress.io/bad-browser-policy
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/BAD_POLICY_WARNING_TOOLTIP.html b/packages/errors/__snapshot-html__/BAD_POLICY_WARNING_TOOLTIP.html deleted file mode 100644 index a0c6acb190..0000000000 --- a/packages/errors/__snapshot-html__/BAD_POLICY_WARNING_TOOLTIP.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Cypress detected policy settings on your computer that may cause issues with using this browser. For more information, see https://on.cypress.io/bad-browser-policy
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/BROWSER_CRASHED.html b/packages/errors/__snapshot-html__/BROWSER_CRASHED.html deleted file mode 100644 index 7d1d2394d6..0000000000 --- a/packages/errors/__snapshot-html__/BROWSER_CRASHED.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - -
We detected that the Chrome process just crashed with code 'code' and signal 'signal'.
-
-We have failed the current spec but will continue running the next spec.
-
-This can happen for many different reasons:
-
-- You wrote an endless loop and you must fix your own code
-- You are running lots of tests on a memory intense application
-- You are running in a memory starved VM environment
-- There are problems with your GPU / GPU drivers
-- There are browser bugs
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/BROWSER_NOT_FOUND_BY_NAME - canary.html b/packages/errors/__snapshot-html__/BROWSER_NOT_FOUND_BY_NAME - canary.html deleted file mode 100644 index 8fc4dce047..0000000000 --- a/packages/errors/__snapshot-html__/BROWSER_NOT_FOUND_BY_NAME - canary.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - -
Can't run because you've entered an invalid browser name.
-
-Browser: canary was not found on your system or is not supported by Cypress.
-
-Cypress supports the following browsers:
- - electron
- - chrome
- - chromium
- - chrome-for-testing
- - edge
- - firefox
-
-You can also use a custom browser: https://on.cypress.io/customize-browsers
-
-Available browsers found on your system are:
- - chrome
- - chrome:beta
- - chrome:canary
- - chrome-for-testing
- - chromium
- - firefox
- - firefox:dev
- - firefox:nightly
- - edge
- - edge:beta
- - edge:canary
- - edge:dev
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/BROWSER_NOT_FOUND_BY_NAME.html b/packages/errors/__snapshot-html__/BROWSER_NOT_FOUND_BY_NAME.html deleted file mode 100644 index 2ee1cd1ce6..0000000000 --- a/packages/errors/__snapshot-html__/BROWSER_NOT_FOUND_BY_NAME.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - -
Can't run because you've entered an invalid browser name.
-
-Browser: invalid-browser was not found on your system or is not supported by Cypress.
-
-Cypress supports the following browsers:
- - electron
- - chrome
- - chromium
- - chrome-for-testing
- - edge
- - firefox
-
-You can also use a custom browser: https://on.cypress.io/customize-browsers
-
-Available browsers found on your system are:
- - chrome
- - chrome:beta
- - chrome:canary
- - chrome-for-testing
- - chromium
- - firefox
- - firefox:dev
- - firefox:nightly
- - edge
- - edge:beta
- - edge:canary
- - edge:dev
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/BROWSER_NOT_FOUND_BY_PATH.html b/packages/errors/__snapshot-html__/BROWSER_NOT_FOUND_BY_PATH.html deleted file mode 100644 index c6c0b962e0..0000000000 --- a/packages/errors/__snapshot-html__/BROWSER_NOT_FOUND_BY_PATH.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
We could not identify a known browser at the path you provided: /path/does/not/exist
-
-Read more about how to troubleshoot launching browsers: https://on.cypress.io/troubleshooting-launching-browsers
-
-The output from the command we ran was:
-
-fail whale
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/BROWSER_PAGE_CLOSED_UNEXPECTEDLY.html b/packages/errors/__snapshot-html__/BROWSER_PAGE_CLOSED_UNEXPECTEDLY.html deleted file mode 100644 index c7f1e71af8..0000000000 --- a/packages/errors/__snapshot-html__/BROWSER_PAGE_CLOSED_UNEXPECTEDLY.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
We detected that the chrome tab running Cypress tests closed unexpectedly.
-
-We have failed the current spec and aborted the run.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/BROWSER_PROCESS_CLOSED_UNEXPECTEDLY.html b/packages/errors/__snapshot-html__/BROWSER_PROCESS_CLOSED_UNEXPECTEDLY.html deleted file mode 100644 index 5ac27b0e06..0000000000 --- a/packages/errors/__snapshot-html__/BROWSER_PROCESS_CLOSED_UNEXPECTEDLY.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
We detected that the chrome browser process closed unexpectedly.
-
-We have failed the current spec and aborted the run.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/BROWSER_UNSUPPORTED_LAUNCH_OPTION.html b/packages/errors/__snapshot-html__/BROWSER_UNSUPPORTED_LAUNCH_OPTION.html deleted file mode 100644 index 99ec4e5464..0000000000 --- a/packages/errors/__snapshot-html__/BROWSER_UNSUPPORTED_LAUNCH_OPTION.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
Warning: The following browser launch options were provided but are not supported by electron
-
- - env
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/BUNDLE_ERROR.html b/packages/errors/__snapshot-html__/BUNDLE_ERROR.html deleted file mode 100644 index e64518f7a9..0000000000 --- a/packages/errors/__snapshot-html__/BUNDLE_ERROR.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - -
Oops...we found an error preparing this test file:
-
-  > /path/to/file
-
-The error was:
-
-fail whale
-
-This occurred while Cypress was compiling and bundling your test code. This is usually caused by:
-
-- A missing file or dependency
-- A syntax error in the file or one of its dependencies
-
-Fix the error in your code and re-run your tests.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL.html b/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL.html deleted file mode 100644 index 2708c07753..0000000000 --- a/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
Cypress failed to verify that your server is running.
-
-Please start this server and then run Cypress again.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL_RETRYING - retrying.html b/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL_RETRYING - retrying.html deleted file mode 100644 index d0d57752b8..0000000000 --- a/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL_RETRYING - retrying.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
We will try connecting to it 60 more times...
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL_RETRYING.html b/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL_RETRYING.html deleted file mode 100644 index ce25c081ad..0000000000 --- a/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL_RETRYING.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
Cypress could not verify that this server is running:
-
-  > http://localhost:3000
-
-We are verifying this server because it has been configured as your baseUrl.
-
-Cypress automatically waits until your server is accessible before running tests.
-
-We will try connecting to it 60 more times...
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL_WARNING.html b/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL_WARNING.html deleted file mode 100644 index 555dfe4a14..0000000000 --- a/packages/errors/__snapshot-html__/CANNOT_CONNECT_BASE_URL_WARNING.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Cypress could not verify that this server is running:
-
-  > http://localhost:3000
-
-This server has been configured as your baseUrl, and tests will likely fail if it is not running.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CANNOT_CREATE_PROJECT_TOKEN.html b/packages/errors/__snapshot-html__/CANNOT_CREATE_PROJECT_TOKEN.html deleted file mode 100644 index 59fd388581..0000000000 --- a/packages/errors/__snapshot-html__/CANNOT_CREATE_PROJECT_TOKEN.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Can't create project's secret key.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CANNOT_FETCH_PROJECT_TOKEN.html b/packages/errors/__snapshot-html__/CANNOT_FETCH_PROJECT_TOKEN.html deleted file mode 100644 index c4df34380c..0000000000 --- a/packages/errors/__snapshot-html__/CANNOT_FETCH_PROJECT_TOKEN.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Can't find project's secret key.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CANNOT_RECORD_NO_PROJECT_ID.html b/packages/errors/__snapshot-html__/CANNOT_RECORD_NO_PROJECT_ID.html deleted file mode 100644 index b41d0bb115..0000000000 --- a/packages/errors/__snapshot-html__/CANNOT_RECORD_NO_PROJECT_ID.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - -
You passed the --record flag but this project has not been setup to record.
-
-This project is missing the projectId inside of: /path/to/cypress.config.js
-
-We cannot uniquely identify this project without this id.
-
-You need to setup this project to record. This will generate a unique projectId.
-
-Alternatively if you omit the --record flag this project will run without recording.
-
-https://on.cypress.io/recording-project-runs
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CANNOT_REMOVE_OLD_BROWSER_PROFILES.html b/packages/errors/__snapshot-html__/CANNOT_REMOVE_OLD_BROWSER_PROFILES.html deleted file mode 100644 index 8beb31f7cf..0000000000 --- a/packages/errors/__snapshot-html__/CANNOT_REMOVE_OLD_BROWSER_PROFILES.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: We failed to remove old browser profiles from previous runs.
-
-This error will not affect or change the exit code.
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at CANNOT_REMOVE_OLD_BROWSER_PROFILES (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CANNOT_TRASH_ASSETS.html b/packages/errors/__snapshot-html__/CANNOT_TRASH_ASSETS.html deleted file mode 100644 index 6f2d58c304..0000000000 --- a/packages/errors/__snapshot-html__/CANNOT_TRASH_ASSETS.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: We failed to trash the existing run results.
-
-This error will not affect or change the exit code.
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at CANNOT_TRASH_ASSETS (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CDP_COULD_NOT_CONNECT.html b/packages/errors/__snapshot-html__/CDP_COULD_NOT_CONNECT.html deleted file mode 100644 index 8cf89fe130..0000000000 --- a/packages/errors/__snapshot-html__/CDP_COULD_NOT_CONNECT.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
Cypress failed to make a connection to the Chrome DevTools Protocol after retrying for 50 seconds.
-
-This usually indicates there was a problem opening the Chrome browser.
-
-The CDP port requested was 2345.
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at CDP_COULD_NOT_CONNECT (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CDP_COULD_NOT_RECONNECT.html b/packages/errors/__snapshot-html__/CDP_COULD_NOT_RECONNECT.html deleted file mode 100644 index d43f466e18..0000000000 --- a/packages/errors/__snapshot-html__/CDP_COULD_NOT_RECONNECT.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
There was an error reconnecting to the Chrome DevTools protocol. Please restart the browser.
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at CDP_COULD_NOT_RECONNECT (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CDP_RETRYING_CONNECTION.html b/packages/errors/__snapshot-html__/CDP_RETRYING_CONNECTION.html deleted file mode 100644 index da6e47b6aa..0000000000 --- a/packages/errors/__snapshot-html__/CDP_RETRYING_CONNECTION.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Still waiting to connect to Chrome, retrying in 1 second (attempt 1/62)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CDP_VERSION_TOO_OLD - older.html b/packages/errors/__snapshot-html__/CDP_VERSION_TOO_OLD - older.html deleted file mode 100644 index 401ca5b3a6..0000000000 --- a/packages/errors/__snapshot-html__/CDP_VERSION_TOO_OLD - older.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
A minimum CDP version of 1.3 is required, but the current browser has an older version.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CDP_VERSION_TOO_OLD.html b/packages/errors/__snapshot-html__/CDP_VERSION_TOO_OLD.html deleted file mode 100644 index b2f35a65c7..0000000000 --- a/packages/errors/__snapshot-html__/CDP_VERSION_TOO_OLD.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
A minimum CDP version of 1.3 is required, but the current browser has 1.2.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CHROME_137_LOAD_EXTENSION_NOT_SUPPORTED.html b/packages/errors/__snapshot-html__/CHROME_137_LOAD_EXTENSION_NOT_SUPPORTED.html deleted file mode 100644 index daa57bd90a..0000000000 --- a/packages/errors/__snapshot-html__/CHROME_137_LOAD_EXTENSION_NOT_SUPPORTED.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Google Chrome v137 and higher does not allow loading extensions via --load-extension. If you need to load an extension to test with Cypress, please use Chrome for Testing, Chromium, or another Chrome variant that supports loading extensions.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CHROME_WEB_SECURITY_NOT_SUPPORTED.html b/packages/errors/__snapshot-html__/CHROME_WEB_SECURITY_NOT_SUPPORTED.html deleted file mode 100644 index 7d0a2e73f9..0000000000 --- a/packages/errors/__snapshot-html__/CHROME_WEB_SECURITY_NOT_SUPPORTED.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
Your project has set the configuration option: `chromeWebSecurity` to `false`.
-
-This option will not have an effect in Firefox. Tests that rely on web security being disabled will not run as expected.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_ALREADY_COMPLETE.html b/packages/errors/__snapshot-html__/CLOUD_ALREADY_COMPLETE.html deleted file mode 100644 index 0d684dcab1..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_ALREADY_COMPLETE.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
The run you are attempting to access is already complete and will not accept new groups.
-
-The existing run is: https://cloud.cypress.io/project/abcd/runs/1
-
-When a run finishes all of its groups, it waits for a configurable set of time before finally completing. You must add more groups during that time period.
-
-The --group flag you passed was: foo
-The --parallel flag you passed was: true
-
-https://on.cypress.io/already-complete
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_API_RESPONSE_FAILED_RETRYING - lastTry.html b/packages/errors/__snapshot-html__/CLOUD_API_RESPONSE_FAILED_RETRYING - lastTry.html deleted file mode 100644 index c93032f73e..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_API_RESPONSE_FAILED_RETRYING - lastTry.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - -
We encountered an unexpected error communicating with our servers.
-
-StatusCodeError: 500 - "Internal Server Error"
-
-We will retry 1 more time in 5 seconds...
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_API_RESPONSE_FAILED_RETRYING.html b/packages/errors/__snapshot-html__/CLOUD_API_RESPONSE_FAILED_RETRYING.html deleted file mode 100644 index a8acc2a35f..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_API_RESPONSE_FAILED_RETRYING.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - -
We encountered an unexpected error communicating with our servers.
-
-StatusCodeError: 500 - "Internal Server Error"
-
-We will retry 3 more times in 5 seconds...
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_AUTO_CANCEL_MISMATCH.html b/packages/errors/__snapshot-html__/CLOUD_AUTO_CANCEL_MISMATCH.html deleted file mode 100644 index 687c1b550f..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_AUTO_CANCEL_MISMATCH.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - -
You passed the --auto-cancel-after-failures flag, but this run originally started with a different value for the --auto-cancel-after-failures flag.
-
-The existing run is: https://cloud.cypress.io/project/abcd/runs/1
-
-The --group flag you passed was: foo
-The --parallel flag you passed was: true
-The --auto-cancel-after-failures flag you passed was: 3
-
-The first setting of --auto-cancel-after-failures for any given run takes precedent.
-
-https://on.cypress.io/auto-cancellation-mismatch
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_AUTO_CANCEL_NOT_AVAILABLE_IN_PLAN.html b/packages/errors/__snapshot-html__/CLOUD_AUTO_CANCEL_NOT_AVAILABLE_IN_PLAN.html deleted file mode 100644 index 8f45a1d468..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_AUTO_CANCEL_NOT_AVAILABLE_IN_PLAN.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Auto Cancellation is not included under your current billing plan.
-
-To enable this service, please visit your billing and upgrade to another plan with Auto Cancellation.
-
-https://on.cypress.io/set-up-billing
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_CANCEL_SKIPPED_SPEC.html b/packages/errors/__snapshot-html__/CLOUD_CANCEL_SKIPPED_SPEC.html deleted file mode 100644 index 6d454e3c40..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_CANCEL_SKIPPED_SPEC.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - -

-  This spec and its tests were skipped because the run has been canceled.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_CANNOT_CONFIRM_ARTIFACTS.html b/packages/errors/__snapshot-html__/CLOUD_CANNOT_CONFIRM_ARTIFACTS.html deleted file mode 100644 index 6d2107cb9f..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_CANNOT_CONFIRM_ARTIFACTS.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered an error while confirming the upload of artifacts for this spec.
-
-These results will not display artifacts.
-
-This error will not affect or change the exit code.
-
-Error: fail whale
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_CANNOT_CREATE_RUN_OR_INSTANCE.html b/packages/errors/__snapshot-html__/CLOUD_CANNOT_CREATE_RUN_OR_INSTANCE.html deleted file mode 100644 index e5cabd1708..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_CANNOT_CREATE_RUN_OR_INSTANCE.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered an error communicating with our servers.
-
-This run will proceed, but will not be recorded.
-
-This error will not affect or change the exit code.
-
-StatusCodeError: 500 - "Internal Server Error"
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_CANNOT_PROCEED_IN_PARALLEL.html b/packages/errors/__snapshot-html__/CLOUD_CANNOT_PROCEED_IN_PARALLEL.html deleted file mode 100644 index b37ece750e..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_CANNOT_PROCEED_IN_PARALLEL.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - -
We encountered an unexpected error communicating with our servers.
-
-StatusCodeError: 500 - "Internal Server Error"
-
-Because you passed the --parallel flag, this run cannot proceed since it requires a valid response from our servers.
-
-The --group flag you passed was: foo
-The --ciBuildId flag you passed was: invalid
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_CANNOT_PROCEED_IN_SERIAL.html b/packages/errors/__snapshot-html__/CLOUD_CANNOT_PROCEED_IN_SERIAL.html deleted file mode 100644 index ffd39bc25e..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_CANNOT_PROCEED_IN_SERIAL.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - -
We encountered an unexpected error communicating with our servers.
-
-StatusCodeError: 500 - "Internal Server Error"
-
-Because you passed the --record flag, this run cannot proceed since it requires a valid response from our servers.
-
-The --group flag you passed was: foo
-The --ciBuildId flag you passed was: invalid
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_CANNOT_UPLOAD_ARTIFACTS.html b/packages/errors/__snapshot-html__/CLOUD_CANNOT_UPLOAD_ARTIFACTS.html deleted file mode 100644 index e8d2ceec9e..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_CANNOT_UPLOAD_ARTIFACTS.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered an error while uploading screenshots & videos from your run.
-
-These results will not be recorded.
-
-This error will not affect or change the exit code.
-
-StatusCodeError: 500 - "Internal Server Error"
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_GRAPHQL_ERROR.html b/packages/errors/__snapshot-html__/CLOUD_GRAPHQL_ERROR.html deleted file mode 100644 index 880966d79f..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_GRAPHQL_ERROR.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - -
We received an unexpected error response from the request to Cypress Cloud:
-
-"fail whale"
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_INVALID_RUN_REQUEST.html b/packages/errors/__snapshot-html__/CLOUD_INVALID_RUN_REQUEST.html deleted file mode 100644 index f4e85bab90..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_INVALID_RUN_REQUEST.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - -
Recording this run failed. The request was invalid.
-
-Request Validation Error
-
-Errors:
-
-[
-  "data.commit has additional properties",
-  "data.ci.buildNumber is required"
-]
-
-Request Sent:
-
-{
-  "foo": "foo",
-  "bar": "bar",
-  "baz": "baz"
-}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PARALLEL_DISALLOWED.html b/packages/errors/__snapshot-html__/CLOUD_PARALLEL_DISALLOWED.html deleted file mode 100644 index 362276da3b..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PARALLEL_DISALLOWED.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
You passed the --parallel flag, but this run group was originally created without the --parallel flag.
-
-The existing run is: https://cloud.cypress.io/project/abcd/runs/1
-
-The --group flag you passed was: foo
-The --parallel flag you passed was: true
-
-You can not use the --parallel flag with this group.
-
-https://on.cypress.io/parallel-disallowed
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH - differentParams.html b/packages/errors/__snapshot-html__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH - differentParams.html deleted file mode 100644 index 26e6dbf56c..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH - differentParams.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - -
You passed the --parallel flag, but we do not parallelize tests across different environments.
-
-This machine is sending different environment parameters than the first machine that started this parallel run.
-
-The existing run is: https://cloud.cypress.io/project/abcd/runs/1
-
-In order to run in parallel mode each machine must send identical environment parameters such as:
-
- - specs
- - osName
- - osVersion
- - browserName
- - browserVersion (major)
-
-This machine sent the following parameters:
-
-{
-  "osName": "darwin",
-  "osVersion": "v1",
-  "browserName": "Electron.... (Expected: Electron)",
-  "browserVersion": "59.1.2.3.... (Expected: 64)",
-  "differentSpecs": {
-    "added": [
-      "cypress/integration/foo_spec.js"
-    ],
-    "missing": []
-  }
-}
-
-https://on.cypress.io/parallel-group-params-mismatch
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH.html b/packages/errors/__snapshot-html__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH.html deleted file mode 100644 index ccd0d1276b..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - -
You passed the --parallel flag, but we do not parallelize tests across different environments.
-
-This machine is sending different environment parameters than the first machine that started this parallel run.
-
-The existing run is: https://cloud.cypress.io/project/abcd/runs/1
-
-In order to run in parallel mode each machine must send identical environment parameters such as:
-
- - specs
- - osName
- - osVersion
- - browserName
- - browserVersion (major)
-
-This machine sent the following parameters:
-
-{
-  "osName": "darwin",
-  "osVersion": "v1",
-  "browserName": "Electron",
-  "browserVersion": "59.1.2.3",
-  "specs": [
-    "cypress/integration/app_spec.js"
-  ]
-}
-
-https://on.cypress.io/parallel-group-params-mismatch
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PARALLEL_REQUIRED.html b/packages/errors/__snapshot-html__/CLOUD_PARALLEL_REQUIRED.html deleted file mode 100644 index 0c89f5b8d4..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PARALLEL_REQUIRED.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
You did not pass the --parallel flag, but this run's group was originally created with the --parallel flag.
-
-The existing run is: https://cloud.cypress.io/project/abcd/runs/1
-
-The --group flag you passed was: foo
-The --parallel flag you passed was: true
-
-You must use the --parallel flag with this group.
-
-https://on.cypress.io/parallel-required
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROJECT_NOT_FOUND.html b/packages/errors/__snapshot-html__/CLOUD_PROJECT_NOT_FOUND.html deleted file mode 100644 index dd4b50111f..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROJECT_NOT_FOUND.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - -
We could not find a Cypress Cloud project with the projectId: project-id-123
-
-This projectId came from your /path/to/cypress.config.js file or an environment variable.
-
-Please log into Cypress Cloud and find your project.
-
-We will list the correct projectId in the 'Settings' tab.
-
-Alternatively, you can create a new project directly from within the Cypress app.
-
-https://on.cypress.io/cloud
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_CANNOT_UPLOAD_ARTIFACT.html b/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_CANNOT_UPLOAD_ARTIFACT.html deleted file mode 100644 index 361046abc4..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_CANNOT_UPLOAD_ARTIFACT.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - -
Warning: We are unable to upload the Test Replay recording of this spec due to a missing or invalid upload URL.
-
-These results will not display Test Replay recordings.
-
-This error will not affect or change the exit code.
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_CAPTURE_FAILURE.html b/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_CAPTURE_FAILURE.html deleted file mode 100644 index 3c72df4cb0..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_CAPTURE_FAILURE.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered an error while recording Test Replay data for this spec.
-
-These results will not display Test Replay recordings.
-
-This can happen for many reasons. If this problem persists:
-
-- Try increasing the available disk space.
-- Ensure that /os/tmpdir/cypress/protocol is both readable and writable.
-
-This error will not affect or change the exit code.
-
-Error: fail whale
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_INITIALIZATION_FAILURE.html b/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_INITIALIZATION_FAILURE.html deleted file mode 100644 index b7b137d78b..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_INITIALIZATION_FAILURE.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered an error while initializing the Test Replay recording for this spec.
-
-These results will not display Test Replay recordings.
-
-This error will not affect or change the exit code.
-
-Error: fail whale
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR - withNetworkError.html b/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR - withNetworkError.html deleted file mode 100644 index 56e65f16b0..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR - withNetworkError.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered multiple errors while uploading the Test Replay recording for this spec.
-
-We attempted to upload the Test Replay recording 3 times.
-
-Some or all of the errors encountered are system-level network errors. Please verify your network configuration for connecting to http://some/url
-
-http://some/url: ECONNRESET
-fail whale
-fail whale
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR - withSystemError.html b/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR - withSystemError.html deleted file mode 100644 index 56e65f16b0..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR - withSystemError.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered multiple errors while uploading the Test Replay recording for this spec.
-
-We attempted to upload the Test Replay recording 3 times.
-
-Some or all of the errors encountered are system-level network errors. Please verify your network configuration for connecting to http://some/url
-
-http://some/url: ECONNRESET
-fail whale
-fail whale
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR.html b/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR.html deleted file mode 100644 index 4f628f44af..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered multiple errors while uploading the Test Replay recording for this spec.
-
-We attempted to upload the Test Replay recording 3 times.
-
-fail whale
-fail whale
-fail whale
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_HTTP_FAILURE.html b/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_HTTP_FAILURE.html deleted file mode 100644 index f0a94a7dfb..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_HTTP_FAILURE.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered an HTTP error while uploading the Test Replay recording for this spec.
-
-These results will not display Test Replay recordings.
-
-This error will not affect or change the exit code.
-
-https://some/url responded with HTTP 500: Internal Server Error
-
-{ status: 500, reason: 'unknown'}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_NETWORK_FAILURE.html b/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_NETWORK_FAILURE.html deleted file mode 100644 index 25caca183d..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_NETWORK_FAILURE.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered a network error while uploading the Test Replay recording for this spec.
-
-Please verify your network configuration for accessing https://some/url
-
-These results will not display Test Replay recordings.
-
-This error will not affect or change the exit code.
-
-Error: fail whale
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_STREAM_STALL_FAILURE.html b/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_STREAM_STALL_FAILURE.html deleted file mode 100644 index e90fe847b7..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_STREAM_STALL_FAILURE.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered slow network conditions while uploading the Test Replay recording for this spec.
-
-The upload transfer rate fell below 6.4kbps over a sampling period of 10 seconds.
-
-To prevent long CI execution durations, this Test Replay recording will not be uploaded.
-
-The results for this spec will not display Test Replay recordings.
-
-If this error occurs often, the sampling period may be configured by setting the CYPRESS_TEST_REPLAY_UPLOAD_SAMPLING_INTERVAL environment variable to a higher value than 10000.
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_UNKNOWN_ERROR.html b/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_UNKNOWN_ERROR.html deleted file mode 100644 index 6620d0f838..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_PROTOCOL_UPLOAD_UNKNOWN_ERROR.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - -
Warning: We encountered an error while uploading the Test Replay recording of this spec.
-
-These results will not display Test Replay recordings.
-
-This error will not affect or change the exit code.
-
-Error: fail whale
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_RECORD_KEY_NOT_VALID.html b/packages/errors/__snapshot-html__/CLOUD_RECORD_KEY_NOT_VALID.html deleted file mode 100644 index f55be52511..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_RECORD_KEY_NOT_VALID.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Your Record Key record-key-123 is not valid with this projectId: project-id-123
-
-It may have been recently revoked by you or another user.
-
-Please log into Cypress Cloud to see the valid Record Keys.
-
-https://on.cypress.io/dashboard/projects/project-id-123
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_RUN_GROUP_NAME_NOT_UNIQUE.html b/packages/errors/__snapshot-html__/CLOUD_RUN_GROUP_NAME_NOT_UNIQUE.html deleted file mode 100644 index eddadd7ac7..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_RUN_GROUP_NAME_NOT_UNIQUE.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
You passed the --group flag, but this group name has already been used for this run.
-
-The existing run is: https://cloud.cypress.io/project/abcd/runs/1
-
-The --group flag you passed was: foo
-The --parallel flag you passed was: true
-
-If you are trying to parallelize this run, then also pass the --parallel flag, else pass a different group name.
-
-https://on.cypress.io/run-group-name-not-unique
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_STALE_RUN.html b/packages/errors/__snapshot-html__/CLOUD_STALE_RUN.html deleted file mode 100644 index 6899d2e18a..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_STALE_RUN.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
You are attempting to pass the --parallel flag to a run that was completed over 24 hours ago.
-
-The existing run is: https://cloud.cypress.io/project/abcd/runs/1
-
-You cannot parallelize a run that has been complete for that long.
-
-The --group flag you passed was: foo
-The --parallel flag you passed was: true
-
-https://on.cypress.io/stale-run
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_UNKNOWN_CREATE_RUN_WARNING.html b/packages/errors/__snapshot-html__/CLOUD_UNKNOWN_CREATE_RUN_WARNING.html deleted file mode 100644 index e1caf03e6c..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_UNKNOWN_CREATE_RUN_WARNING.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
Warning from Cypress Cloud: You are almost out of time
-
-Details:
-
-{
-  "code": "OUT_OF_TIME",
-  "name": "OutOfTime",
-  "hadTime": 1000,
-  "spentTime": 999
-}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CLOUD_UNKNOWN_INVALID_REQUEST.html b/packages/errors/__snapshot-html__/CLOUD_UNKNOWN_INVALID_REQUEST.html deleted file mode 100644 index 4a8f63595d..0000000000 --- a/packages/errors/__snapshot-html__/CLOUD_UNKNOWN_INVALID_REQUEST.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - -
We encountered an unexpected error communicating with our servers.
-
-StatusCodeError: 500 - "Internal Server Error"
-
-There is likely something wrong with the request.
-
-The --group flag you passed was: foo
-The --ciBuildId flag you passed was: invalid
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.html b/packages/errors/__snapshot-html__/COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.html deleted file mode 100644 index 324726a465..0000000000 --- a/packages/errors/__snapshot-html__/COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - -
We detected that you have versions of dependencies that are not officially supported:
-
- - `vite`. Expected ^=2.0.0 || ^=3.0.0 || ^=4.0.0 || ^=5.0.0, found 1.0.0.
-
-If you're experiencing problems, ensure your dependencies are on a supported version and restart Cypress.
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILES_LANGUAGE_CONFLICT.html b/packages/errors/__snapshot-html__/CONFIG_FILES_LANGUAGE_CONFLICT.html deleted file mode 100644 index bdc6a273dd..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILES_LANGUAGE_CONFLICT.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
Could not load a Cypress configuration file because there are multiple matches.
-
-We've found 3 Cypress configuration files named
-cypress.config.js, cypress.config.ts, cypress.config.mjs at the location below:
-
-  > /path/to/project/root
-
-Please delete the conflicting configuration files.
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_DEV_SERVER_INVALID_RETURN.html b/packages/errors/__snapshot-html__/CONFIG_FILE_DEV_SERVER_INVALID_RETURN.html deleted file mode 100644 index 0852e83723..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_DEV_SERVER_INVALID_RETURN.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
The returned value of the devServer function is not valid.
-
-The returned value must be an object with a port property of the dev-server that is running.
-
-Instead, we saw:
-
-{}
-
-Learn more: https://on.cypress.io/dev-server
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_DEV_SERVER_IS_NOT_VALID.html b/packages/errors/__snapshot-html__/CONFIG_FILE_DEV_SERVER_IS_NOT_VALID.html deleted file mode 100644 index 736a2910eb..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_DEV_SERVER_IS_NOT_VALID.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - -
Your configFile is invalid: /path/to/config.ts
-
-The component.devServer must be an object with a supported framework and bundler.
-
-{
-  component: {
-    devServer: {
-      framework: 'react', // Your framework
-      bundler: 'webpack' // Your dev server
-    }
-  }
-}
-
-Instead, we saw:
-
-{}
-
-Learn more: https://on.cypress.io/dev-server
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_ROOT_CONFIG.html b/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_ROOT_CONFIG.html deleted file mode 100644 index e4fd80194d..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_ROOT_CONFIG.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - -
The specPattern configuration option is invalid when set from the root of the config object.
-
-Set it within a testing type property: e2e.specPattern and component.specPattern
-
-{
-  e2e: {
-    specPattern: '...',
-  },
-  component: {
-    specPattern: '...',
-  },
-}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_ROOT_CONFIG_COMPONENT.html b/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_ROOT_CONFIG_COMPONENT.html deleted file mode 100644 index 05a70bb0cd..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_ROOT_CONFIG_COMPONENT.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
The indexHtmlFile configuration option is invalid when set from the root of the config object.
-
-Set it within a testing type property: component.indexHtmlFile
-
-{
-  component: {
-    indexHtmlFile: '...',
-  }
-}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_ROOT_CONFIG_E2E.html b/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_ROOT_CONFIG_E2E.html deleted file mode 100644 index 376eb5f580..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_ROOT_CONFIG_E2E.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
The baseUrl configuration option is invalid when set from the root of the config object.
-
-Set it within a testing type property: e2e.baseUrl
-
-{
-  e2e: {
-    baseUrl: '...',
-  }
-}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_COMPONENT.html b/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_COMPONENT.html deleted file mode 100644 index 13fd6906b4..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_COMPONENT.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
The component.baseUrl configuration option is not valid for component testing.
-
-Please remove this option or add this as an e2e testing type property: e2e.baseUrl
-
-{
-  e2e: {
-    baseUrl: '...',
-  }
-}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_E2E.html b/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_E2E.html deleted file mode 100644 index 7878f398fc..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_E2E.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
The e2e.indexHtmlFile configuration option is not valid for e2e testing.
-
-Please remove this option or add this as a component testing type property: component.indexHtmlFile
-
-{
-  e2e: {
-    indexHtmlFile: '...',
-  }
-}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_NOT_FOUND.html b/packages/errors/__snapshot-html__/CONFIG_FILE_NOT_FOUND.html deleted file mode 100644 index fae8c30497..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_NOT_FOUND.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
Could not find a Cypress configuration file.
-
-We looked but did not find a cypress.config.js file in this folder: /path/to/project/root
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_REQUIRE_ERROR.html b/packages/errors/__snapshot-html__/CONFIG_FILE_REQUIRE_ERROR.html deleted file mode 100644 index b5c70d1767..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_REQUIRE_ERROR.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Your configFile is invalid: /path/to/cypress.config.js
-
-It threw an error when required, check the stack trace below:
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at CONFIG_FILE_REQUIRE_ERROR (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR - component.html b/packages/errors/__snapshot-html__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR - component.html deleted file mode 100644 index bd9ea07ad5..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR - component.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Your configFile threw an error from: /path/to/cypress.config.js
-
-The error was thrown while executing your component.setupNodeEvents() function:
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at CONFIG_FILE_SETUP_NODE_EVENTS_ERROR (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR.html b/packages/errors/__snapshot-html__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR.html deleted file mode 100644 index 216fefd7db..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Your configFile threw an error from: /path/to/cypress.config.js
-
-The error was thrown while executing your e2e.setupNodeEvents() function:
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at CONFIG_FILE_SETUP_NODE_EVENTS_ERROR (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_FILE_UNEXPECTED_ERROR.html b/packages/errors/__snapshot-html__/CONFIG_FILE_UNEXPECTED_ERROR.html deleted file mode 100644 index 3b8eb00825..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_FILE_UNEXPECTED_ERROR.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Your configFile threw an error from: /path/to/cypress.config.js
-
-We stopped running your tests because your config file crashed.
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at CONFIG_FILE_UNEXPECTED_ERROR (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidArray.html b/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidArray.html deleted file mode 100644 index 80078cd1b6..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidArray.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - -
Your configFile at cypress.config.js set an invalid value:
-
-Expected defaultCommandTimeout to be a number.
-
-Instead the value was: 
-
-[
-  1,
-  2,
-  3
-]
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidObject.html b/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidObject.html deleted file mode 100644 index 7bc565be88..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidObject.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
Your configFile at cypress.config.js set an invalid value:
-
-Expected defaultCommandTimeout to be a number.
-
-Instead the value was: 
-
-{
-  "foo": "bar"
-}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidString.html b/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidString.html deleted file mode 100644 index 683e42e090..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidString.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Your configFile at cypress.config.js set an invalid value:
-
-Expected defaultCommandTimeout to be a number.
-
-Instead the value was: "1234"
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - list.html b/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - list.html deleted file mode 100644 index 5f9ae2353e..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - list.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - -
Your configFile at cypress.config.js set an invalid value:
-
-The error occurred while validating the browsers list.
-
-Expected displayName to be a non-empty string.
-
-Instead the value was: 
-
-{
-  "name": "chrome",
-  "version": "1.2.3",
-  "displayName": null
-}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - noFileType.html b/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - noFileType.html deleted file mode 100644 index 534dff554f..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - noFileType.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
An invalid configuration value was set.
-
-Expected defaultCommandTimeout to be a number.
-
-Instead the value was: false
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR.html b/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR.html deleted file mode 100644 index bffbd09b96..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Your configFile at cypress.config.js set an invalid value:
-
-Expected defaultCommandTimeout to be a number.
-
-Instead the value was: false
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_MSG_ERROR - noFileType.html b/packages/errors/__snapshot-html__/CONFIG_VALIDATION_MSG_ERROR - noFileType.html deleted file mode 100644 index 686eace28b..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_MSG_ERROR - noFileType.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
An invalid configuration value was set:
-
-`something` was not right
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_MSG_ERROR.html b/packages/errors/__snapshot-html__/CONFIG_VALIDATION_MSG_ERROR.html deleted file mode 100644 index 6fce3bfc58..0000000000 --- a/packages/errors/__snapshot-html__/CONFIG_VALIDATION_MSG_ERROR.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
Your configFile as cypress.config.js set an invalid value:
-
-`something` was not right
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/COULD_NOT_PARSE_ARGUMENTS.html b/packages/errors/__snapshot-html__/COULD_NOT_PARSE_ARGUMENTS.html deleted file mode 100644 index 38ab9bc38c..0000000000 --- a/packages/errors/__snapshot-html__/COULD_NOT_PARSE_ARGUMENTS.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Cypress encountered an error while parsing the argument: --spec
-
-You passed: 1
-
-The error was: spec must be a string or comma-separated list
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/DEFAULT_SUPPORT_FILE_NOT_FOUND.html b/packages/errors/__snapshot-html__/DEFAULT_SUPPORT_FILE_NOT_FOUND.html deleted file mode 100644 index 0e104e36b8..0000000000 --- a/packages/errors/__snapshot-html__/DEFAULT_SUPPORT_FILE_NOT_FOUND.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Your project does not contain a default supportFile. We expect a file matching /path/to/supportFile/**/*.{js,jsx,ts,tsx} to exist.
-
-If a support file is not necessary for your project, set supportFile to false.
-
-https://on.cypress.io/support-file-missing-or-invalid
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/DEV_SERVER_CONFIG_FILE_NOT_FOUND.html b/packages/errors/__snapshot-html__/DEV_SERVER_CONFIG_FILE_NOT_FOUND.html deleted file mode 100644 index c1be73f2b2..0000000000 --- a/packages/errors/__snapshot-html__/DEV_SERVER_CONFIG_FILE_NOT_FOUND.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - -
You are using vite for your dev server, but a configuration file was not found. We traversed upwards from:
-
-/dev/project
-
-looking for a file named:
-
- - vite.config.js
- - vite.config.ts
-
-Add your vite config at one of the above paths, or import your configuration file and provide it to
-the devServer config as a viteConfig option.
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/DUPLICATE_TASK_KEY.html b/packages/errors/__snapshot-html__/DUPLICATE_TASK_KEY.html deleted file mode 100644 index b06b8fa527..0000000000 --- a/packages/errors/__snapshot-html__/DUPLICATE_TASK_KEY.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: Multiple attempts to register the following task(s):
-
- - foo
- - bar
- - baz
-
-Only the last attempt will be registered.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/ERROR_READING_FILE.html b/packages/errors/__snapshot-html__/ERROR_READING_FILE.html deleted file mode 100644 index e31d0f8c08..0000000000 --- a/packages/errors/__snapshot-html__/ERROR_READING_FILE.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Error reading from: /path/to/read/file.ts
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at ERROR_READING_FILE (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/ERROR_WRITING_FILE.html b/packages/errors/__snapshot-html__/ERROR_WRITING_FILE.html deleted file mode 100644 index 7d7a875f1c..0000000000 --- a/packages/errors/__snapshot-html__/ERROR_WRITING_FILE.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Error writing to: /path/to/write/file.ts
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at ERROR_WRITING_FILE (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/EXPERIMENTAL_JIT_COMPILE_REMOVED.html b/packages/errors/__snapshot-html__/EXPERIMENTAL_JIT_COMPILE_REMOVED.html deleted file mode 100644 index 0b9be6897f..0000000000 --- a/packages/errors/__snapshot-html__/EXPERIMENTAL_JIT_COMPILE_REMOVED.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
The experimentalJustInTimeCompile configuration option was removed in Cypress version 14.0.0.
-A new justInTimeCompile configuration option is available and is now true by default.
-You can safely remove this option from your config.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/EXPERIMENTAL_ORIGIN_DEPENDENCIES_E2E_ONLY.html b/packages/errors/__snapshot-html__/EXPERIMENTAL_ORIGIN_DEPENDENCIES_E2E_ONLY.html deleted file mode 100644 index f364a229d2..0000000000 --- a/packages/errors/__snapshot-html__/EXPERIMENTAL_ORIGIN_DEPENDENCIES_E2E_ONLY.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
The experimentalOriginDependencies experiment is currently only supported for End to End Testing and must be configured as an e2e testing type property: e2e.experimentalOriginDependencies.
-
-{
-  e2e: {
-    experimentalOriginDependencies: true
-  },
-}
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/EXPERIMENTAL_RUN_ALL_SPECS_E2E_ONLY.html b/packages/errors/__snapshot-html__/EXPERIMENTAL_RUN_ALL_SPECS_E2E_ONLY.html deleted file mode 100644 index c1d7c4806c..0000000000 --- a/packages/errors/__snapshot-html__/EXPERIMENTAL_RUN_ALL_SPECS_E2E_ONLY.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
The experimentalRunAllSpecs experiment is currently only supported for End to End Testing and must be configured as an e2e testing type property: e2e.experimentalRunAllSpecs.
-
-{
-  e2e: {
-    experimentalRunAllSpecs: true
-  },
-}
-
-If you have feedback about the experiment, please join the discussion here: http://on.cypress.io/run-all-specs
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/EXPERIMENTAL_SESSION_AND_ORIGIN_REMOVED.html b/packages/errors/__snapshot-html__/EXPERIMENTAL_SESSION_AND_ORIGIN_REMOVED.html deleted file mode 100644 index d05af7d3fd..0000000000 --- a/packages/errors/__snapshot-html__/EXPERIMENTAL_SESSION_AND_ORIGIN_REMOVED.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - -
The experimentalSessionAndOrigin configuration option was removed in Cypress version 12.0.0.
-
-You can safely remove this option from your config.
-
-https://on.cypress.io/session
-https://on.cypress.io/origin
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/EXPERIMENTAL_SINGLE_TAB_RUN_MODE.html b/packages/errors/__snapshot-html__/EXPERIMENTAL_SINGLE_TAB_RUN_MODE.html deleted file mode 100644 index 406c55199f..0000000000 --- a/packages/errors/__snapshot-html__/EXPERIMENTAL_SINGLE_TAB_RUN_MODE.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
The experimentalSingleTabRunMode experiment is currently only supported for Component Testing.
-
-If you have feedback about the experiment, please join the discussion here: http://on.cypress.io/single-tab-run-mode
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/EXPERIMENTAL_SKIP_DOMAIN_INJECTION_REMOVED.html b/packages/errors/__snapshot-html__/EXPERIMENTAL_SKIP_DOMAIN_INJECTION_REMOVED.html deleted file mode 100644 index 4dc9b65d2f..0000000000 --- a/packages/errors/__snapshot-html__/EXPERIMENTAL_SKIP_DOMAIN_INJECTION_REMOVED.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - -
The experimentalSkipDomainInjection experiment is over. document.domain injection is now off by default.
-
-Read the migration guide for Cypress v14.0.0: https://on.cypress.io/migration-guide
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/EXPERIMENTAL_STUDIO_E2E_ONLY.html b/packages/errors/__snapshot-html__/EXPERIMENTAL_STUDIO_E2E_ONLY.html deleted file mode 100644 index 597643b3e3..0000000000 --- a/packages/errors/__snapshot-html__/EXPERIMENTAL_STUDIO_E2E_ONLY.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
The experimentalStudio experiment is currently only supported for End to End Testing.
-
-If you have feedback about the experiment, please join the discussion here: http://on.cypress.io/studio-beta
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/EXTENSION_NOT_LOADED.html b/packages/errors/__snapshot-html__/EXTENSION_NOT_LOADED.html deleted file mode 100644 index 2ab036e3f0..0000000000 --- a/packages/errors/__snapshot-html__/EXTENSION_NOT_LOADED.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
Electron could not install the extension at path: /path/to/extension
-
-Please verify that this is the path to a valid, unpacked WebExtension.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/FIREFOX_CDP_FAILED_TO_CONNECT.html b/packages/errors/__snapshot-html__/FIREFOX_CDP_FAILED_TO_CONNECT.html deleted file mode 100644 index 319c7ee737..0000000000 --- a/packages/errors/__snapshot-html__/FIREFOX_CDP_FAILED_TO_CONNECT.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Failed to spawn CDP with Firefox. Retrying...
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/FIREFOX_COULD_NOT_CONNECT.html b/packages/errors/__snapshot-html__/FIREFOX_COULD_NOT_CONNECT.html deleted file mode 100644 index 3eea972eca..0000000000 --- a/packages/errors/__snapshot-html__/FIREFOX_COULD_NOT_CONNECT.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Cypress failed to make a connection to Firefox.
-
-This usually indicates there was a problem opening the Firefox browser.
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at FIREFOX_COULD_NOT_CONNECT (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/FIREFOX_GECKODRIVER_FAILURE.html b/packages/errors/__snapshot-html__/FIREFOX_GECKODRIVER_FAILURE.html deleted file mode 100644 index 737b241eee..0000000000 --- a/packages/errors/__snapshot-html__/FIREFOX_GECKODRIVER_FAILURE.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
Cypress could not connect to Firefox.
-
-An unexpected error was received from GeckoDriver: connection
-
-To avoid this error, ensure that there are no other instances of Firefox launched by Cypress running.
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at FIREFOX_GECKODRIVER_FAILURE (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/FIXTURE_NOT_FOUND.html b/packages/errors/__snapshot-html__/FIXTURE_NOT_FOUND.html deleted file mode 100644 index 76c7820e7d..0000000000 --- a/packages/errors/__snapshot-html__/FIXTURE_NOT_FOUND.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
A fixture file could not be found at any of the following paths:
-
-    > file
-    > file.[ext]
-
-Cypress looked for these file extensions at the provided path:
-
-    > js, ts, json
-
-Provide a path to an existing fixture file.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/FOLDER_NOT_WRITABLE.html b/packages/errors/__snapshot-html__/FOLDER_NOT_WRITABLE.html deleted file mode 100644 index b76f5c1849..0000000000 --- a/packages/errors/__snapshot-html__/FOLDER_NOT_WRITABLE.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
This folder is not writable: /path/to/folder
-
-Writing to this directory is required by Cypress in order to store screenshots and videos.
-
-Enable write permissions to this directory to ensure screenshots and videos are stored.
-
-If you don't require screenshots or videos to be stored you can safely ignore this warning.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/FREE_PLAN_EXCEEDS_MONTHLY_TESTS.html b/packages/errors/__snapshot-html__/FREE_PLAN_EXCEEDS_MONTHLY_TESTS.html deleted file mode 100644 index d2d1d79117..0000000000 --- a/packages/errors/__snapshot-html__/FREE_PLAN_EXCEEDS_MONTHLY_TESTS.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
You've exceeded the limit of test results under your free plan this month. The limit is 500 test results.
-
-To continue recording tests this month you must upgrade your account. Please visit your billing to upgrade to another billing plan.
-
-https://on.cypress.io/set-up-billing
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/FREE_PLAN_IN_GRACE_PERIOD_EXCEEDS_MONTHLY_TESTS.html b/packages/errors/__snapshot-html__/FREE_PLAN_IN_GRACE_PERIOD_EXCEEDS_MONTHLY_TESTS.html deleted file mode 100644 index 4fab940d27..0000000000 --- a/packages/errors/__snapshot-html__/FREE_PLAN_IN_GRACE_PERIOD_EXCEEDS_MONTHLY_TESTS.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
You've exceeded the limit of test results under your free plan this month. The limit is 500 test results.
-
-Your plan is now in a grace period, which means you will have the full benefits of your current plan until Feb 1, 2022.
-
-Please visit your billing to upgrade your plan.
-
-https://on.cypress.io/set-up-billing
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/FREE_PLAN_IN_GRACE_PERIOD_PARALLEL_FEATURE.html b/packages/errors/__snapshot-html__/FREE_PLAN_IN_GRACE_PERIOD_PARALLEL_FEATURE.html deleted file mode 100644 index 16acdd16cf..0000000000 --- a/packages/errors/__snapshot-html__/FREE_PLAN_IN_GRACE_PERIOD_PARALLEL_FEATURE.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Parallelization is not included under your free plan.
-
-Your plan is now in a grace period, which means your tests will still run in parallel until Feb 1, 2022. Please upgrade your plan to continue running your tests in parallel in the future.
-
-https://on.cypress.io/set-up-billing
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/INCORRECT_CI_BUILD_ID_USAGE.html b/packages/errors/__snapshot-html__/INCORRECT_CI_BUILD_ID_USAGE.html deleted file mode 100644 index 1cf399ad14..0000000000 --- a/packages/errors/__snapshot-html__/INCORRECT_CI_BUILD_ID_USAGE.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
You passed the --ci-build-id flag but did not provide either a --group or --parallel flag.
-
-The --ci-build-id flag you passed was: ciBuildId123
-
-The --ci-build-id flag is used to either group or parallelize multiple runs together.
-
-https://on.cypress.io/incorrect-ci-build-id-usage
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/INDETERMINATE_CI_BUILD_ID.html b/packages/errors/__snapshot-html__/INDETERMINATE_CI_BUILD_ID.html deleted file mode 100644 index c7ebc54515..0000000000 --- a/packages/errors/__snapshot-html__/INDETERMINATE_CI_BUILD_ID.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - -
You passed the --group or --parallel flag but we could not automatically determine or generate a ciBuildId.
-
-The --group flag you passed was: foo
-The --parallel flag you passed was: false
-
-In order to use either of these features a ciBuildId must be determined.
-
-The ciBuildId is automatically detected if you are running Cypress in any of the these CI providers:
-
- - appveyor
- - azure
- - awsCodeBuild
- - bamboo
- - bitbucket
- - buildkite
- - circle
- - codeshipBasic
- - codeshipPro
- - concourse
- - codeFresh
- - drone
- - githubActions
- - gitlab
- - goCD
- - googleCloud
- - jenkins
- - semaphore
- - shippable
- - teamfoundation
- - travis
- - netlify
- - webappio
-
-Because the ciBuildId could not be auto-detected you must pass the --ci-build-id flag manually.
-
-https://on.cypress.io/indeterminate-ci-build-id
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/INJECT_DOCUMENT_DOMAIN_DEPRECATION.html b/packages/errors/__snapshot-html__/INJECT_DOCUMENT_DOMAIN_DEPRECATION.html deleted file mode 100644 index 3c79bfcbd1..0000000000 --- a/packages/errors/__snapshot-html__/INJECT_DOCUMENT_DOMAIN_DEPRECATION.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - -
The injectDocumentDomain option is deprecated. Interactions with intra-test navigations to differing hostnames must now be wrapped in cy.origin commands, even if the hostname is a subdomain. This configuration option will be removed in a future version of Cypress.
-
-Read the documentation for the injectDocumentDomain configuration option: https://on.cypress.io/inject-document-domain-configuration
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/INJECT_DOCUMENT_DOMAIN_E2E_ONLY.html b/packages/errors/__snapshot-html__/INJECT_DOCUMENT_DOMAIN_E2E_ONLY.html deleted file mode 100644 index bd00e0b8ef..0000000000 --- a/packages/errors/__snapshot-html__/INJECT_DOCUMENT_DOMAIN_E2E_ONLY.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - -
The injectDocumentDomain option is only available for E2E testing.
-
-Read the documentation for the injectDocumentDomain configuration option: https://on.cypress.io/inject-document-domain-configuration
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/INVALID_CONFIG_OPTION - plural.html b/packages/errors/__snapshot-html__/INVALID_CONFIG_OPTION - plural.html deleted file mode 100644 index 56233ce585..0000000000 --- a/packages/errors/__snapshot-html__/INVALID_CONFIG_OPTION - plural.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
The following configuration options are invalid:
-
- - foo
- - bar
-
-https://on.cypress.io/configuration
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/INVALID_CONFIG_OPTION.html b/packages/errors/__snapshot-html__/INVALID_CONFIG_OPTION.html deleted file mode 100644 index ae37189fd5..0000000000 --- a/packages/errors/__snapshot-html__/INVALID_CONFIG_OPTION.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - -
The following configuration option is invalid:
-
- - foo
-
-https://on.cypress.io/configuration
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/INVALID_CYPRESS_INTERNAL_ENV.html b/packages/errors/__snapshot-html__/INVALID_CYPRESS_INTERNAL_ENV.html deleted file mode 100644 index 10693665d8..0000000000 --- a/packages/errors/__snapshot-html__/INVALID_CYPRESS_INTERNAL_ENV.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
We have detected an unknown or unsupported CYPRESS_INTERNAL_ENV value: foo
-
-CYPRESS_INTERNAL_ENV is reserved for internal use and cannot be modified.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/INVALID_REPORTER_NAME.html b/packages/errors/__snapshot-html__/INVALID_REPORTER_NAME.html deleted file mode 100644 index bfc4e59030..0000000000 --- a/packages/errors/__snapshot-html__/INVALID_REPORTER_NAME.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - -
Error loading the reporter: missing-reporter-name
-
-We searched for the reporter in these paths:
-
- - /path/to/reporter
- - /path/reporter
-
-Learn more at https://on.cypress.io/reporters
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at INVALID_REPORTER_NAME (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/INVOKED_BINARY_OUTSIDE_NPM_MODULE.html b/packages/errors/__snapshot-html__/INVOKED_BINARY_OUTSIDE_NPM_MODULE.html deleted file mode 100644 index 5246b25817..0000000000 --- a/packages/errors/__snapshot-html__/INVOKED_BINARY_OUTSIDE_NPM_MODULE.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
It looks like you are running the Cypress binary directly.
-
-This is not the recommended approach, and Cypress may not work correctly.
-
-Please install the cypress NPM package and follow the instructions here:
-
-https://on.cypress.io/installing-cypress
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/JIT_COMPONENT_TESTING.html b/packages/errors/__snapshot-html__/JIT_COMPONENT_TESTING.html deleted file mode 100644 index d503011487..0000000000 --- a/packages/errors/__snapshot-html__/JIT_COMPONENT_TESTING.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
The justInTimeCompile configuration is only supported for Component Testing.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/MULTIPLE_SUPPORT_FILES_FOUND.html b/packages/errors/__snapshot-html__/MULTIPLE_SUPPORT_FILES_FOUND.html deleted file mode 100644 index b7457c8587..0000000000 --- a/packages/errors/__snapshot-html__/MULTIPLE_SUPPORT_FILES_FOUND.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
There were multiple support files found matching your supportFile pattern.
-
-Your supportFile is set to: spec.{ts,js}
-
-We found the following files:
-
- - support.ts
- - support.js
-
-Please remove or combine the support files into a single file.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/NO_DEFAULT_CONFIG_FILE_FOUND.html b/packages/errors/__snapshot-html__/NO_DEFAULT_CONFIG_FILE_FOUND.html deleted file mode 100644 index 227513bc98..0000000000 --- a/packages/errors/__snapshot-html__/NO_DEFAULT_CONFIG_FILE_FOUND.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Could not find a Cypress configuration file in this folder: /path/to/project/root
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/NO_PROJECT_FOUND_AT_PROJECT_ROOT.html b/packages/errors/__snapshot-html__/NO_PROJECT_FOUND_AT_PROJECT_ROOT.html deleted file mode 100644 index 8b241e509d..0000000000 --- a/packages/errors/__snapshot-html__/NO_PROJECT_FOUND_AT_PROJECT_ROOT.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Can't find a project at the path: /path/to/project
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/NO_PROJECT_ID.html b/packages/errors/__snapshot-html__/NO_PROJECT_ID.html deleted file mode 100644 index cd58b21179..0000000000 --- a/packages/errors/__snapshot-html__/NO_PROJECT_ID.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Can't find projectId in the config file: /path/to/project/cypress.config.js
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/NO_SPECS_FOUND - arrPattern.html b/packages/errors/__snapshot-html__/NO_SPECS_FOUND - arrPattern.html deleted file mode 100644 index 60f4f7f475..0000000000 --- a/packages/errors/__snapshot-html__/NO_SPECS_FOUND - arrPattern.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - -
Can't run because no spec files were found.
-
-We searched for specs matching these glob patterns:
-
-  > /path/to/project/root/**_spec.js
-  > /path/to/project/root/**/*.cy.*
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/NO_SPECS_FOUND - noPattern.html b/packages/errors/__snapshot-html__/NO_SPECS_FOUND - noPattern.html deleted file mode 100644 index fe44677039..0000000000 --- a/packages/errors/__snapshot-html__/NO_SPECS_FOUND - noPattern.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Can't run because no spec files were found.
-
-We searched for specs inside of this folder:
-
-  > /path/to/project/root
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/NO_SPECS_FOUND - pathCommonPattern.html b/packages/errors/__snapshot-html__/NO_SPECS_FOUND - pathCommonPattern.html deleted file mode 100644 index b2d4c57aaf..0000000000 --- a/packages/errors/__snapshot-html__/NO_SPECS_FOUND - pathCommonPattern.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - -
Can't run because no spec files were found.
-
-We searched for specs matching these glob patterns:
-
-  > /path/to/project/**_spec.js
-  > /path/to/project/**/*.cy.*
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/NO_SPECS_FOUND - pathNoCommonPattern.html b/packages/errors/__snapshot-html__/NO_SPECS_FOUND - pathNoCommonPattern.html deleted file mode 100644 index c582cafae9..0000000000 --- a/packages/errors/__snapshot-html__/NO_SPECS_FOUND - pathNoCommonPattern.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Can't run because no spec files were found.
-
-We searched for specs matching this glob pattern:
-
-  > /foo/*_spec.js
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/NO_SPECS_FOUND.html b/packages/errors/__snapshot-html__/NO_SPECS_FOUND.html deleted file mode 100644 index f343852031..0000000000 --- a/packages/errors/__snapshot-html__/NO_SPECS_FOUND.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Can't run because no spec files were found.
-
-We searched for specs matching this glob pattern:
-
-  > /path/to/project/root/**_spec.js
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/PARALLEL_FEATURE_NOT_AVAILABLE_IN_PLAN.html b/packages/errors/__snapshot-html__/PARALLEL_FEATURE_NOT_AVAILABLE_IN_PLAN.html deleted file mode 100644 index 1cb817fc1d..0000000000 --- a/packages/errors/__snapshot-html__/PARALLEL_FEATURE_NOT_AVAILABLE_IN_PLAN.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Parallelization is not included under your current billing plan.
-
-To run your tests in parallel, please visit your billing and upgrade to another plan with parallelization.
-
-https://on.cypress.io/set-up-billing
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/PLAN_EXCEEDS_MONTHLY_TESTS.html b/packages/errors/__snapshot-html__/PLAN_EXCEEDS_MONTHLY_TESTS.html deleted file mode 100644 index 15297714de..0000000000 --- a/packages/errors/__snapshot-html__/PLAN_EXCEEDS_MONTHLY_TESTS.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
You've exceeded the limit of test results under your Sprout billing plan this month. The limit is 25000 test results.
-
-To continue getting the full benefits of your current plan, please visit your billing to upgrade.
-
-https://on.cypress.io/set-up-billing
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/PLAN_IN_GRACE_PERIOD_RUN_GROUPING_FEATURE_USED.html b/packages/errors/__snapshot-html__/PLAN_IN_GRACE_PERIOD_RUN_GROUPING_FEATURE_USED.html deleted file mode 100644 index 9887d81054..0000000000 --- a/packages/errors/__snapshot-html__/PLAN_IN_GRACE_PERIOD_RUN_GROUPING_FEATURE_USED.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Grouping is not included under your free plan.
-
-Your plan is now in a grace period, which means your tests will still run with groups until Feb 1, 2022. Please upgrade your plan to continue running your tests with groups in the future.
-
-https://on.cypress.io/set-up-billing
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/PLUGINS_RUN_EVENT_ERROR.html b/packages/errors/__snapshot-html__/PLUGINS_RUN_EVENT_ERROR.html deleted file mode 100644 index 6d55ed6b05..0000000000 --- a/packages/errors/__snapshot-html__/PLUGINS_RUN_EVENT_ERROR.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
An error was thrown in your plugins file while executing the handler for the before:spec event.
-
-The error we received was:
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at PLUGINS_RUN_EVENT_ERROR (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/PORT_IN_USE_LONG.html b/packages/errors/__snapshot-html__/PORT_IN_USE_LONG.html deleted file mode 100644 index 8a43571d3f..0000000000 --- a/packages/errors/__snapshot-html__/PORT_IN_USE_LONG.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
Can't run project because port is currently in use: 2020
-
-Assign a different port with the --port <port> argument or shut down the other running process.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/PORT_IN_USE_SHORT.html b/packages/errors/__snapshot-html__/PORT_IN_USE_SHORT.html deleted file mode 100644 index d5bf44ec55..0000000000 --- a/packages/errors/__snapshot-html__/PORT_IN_USE_SHORT.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Port 2020 is already in use.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.html b/packages/errors/__snapshot-html__/PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.html deleted file mode 100644 index 69e69dfd68..0000000000 --- a/packages/errors/__snapshot-html__/PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - -
This project has been configured to record runs on our Cypress Cloud.
-
-It currently has the projectId: project-id-123
-
-You also provided your Record Key, but you did not pass the --record flag.
-
-This run will not be recorded.
-
-If you meant to have this run recorded please additionally pass this flag:
-
-  $ cypress run --record
-
-https://on.cypress.io/recording-project-runs
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/PROXY_ENCOUNTERED_INVALID_HEADER_NAME.html b/packages/errors/__snapshot-html__/PROXY_ENCOUNTERED_INVALID_HEADER_NAME.html deleted file mode 100644 index ae96f6d249..0000000000 --- a/packages/errors/__snapshot-html__/PROXY_ENCOUNTERED_INVALID_HEADER_NAME.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
Warning: While proxying a GET request to http://localhost:8080, an HTTP header did not pass validation, and was removed. This header will not be present in the response received by the application under test.
-
-Invalid header name: 
-
-{
-  "invalidHeaderName": "Value"
-}
-
-Error: fail whale
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/PROXY_ENCOUNTERED_INVALID_HEADER_VALUE.html b/packages/errors/__snapshot-html__/PROXY_ENCOUNTERED_INVALID_HEADER_VALUE.html deleted file mode 100644 index 5ff625dd5b..0000000000 --- a/packages/errors/__snapshot-html__/PROXY_ENCOUNTERED_INVALID_HEADER_VALUE.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - -
Warning: While proxying a GET request to http://localhost:8080, an HTTP header value did not pass validation, and was removed. This header will not be present in the response received by the application under test.
-
-Invalid header value: 
-
-{
-  "invalidHeaderValue": "Value"
-}
-
-Error: fail whale
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/RECORDING_FROM_FORK_PR.html b/packages/errors/__snapshot-html__/RECORDING_FROM_FORK_PR.html deleted file mode 100644 index 57ad8f4c20..0000000000 --- a/packages/errors/__snapshot-html__/RECORDING_FROM_FORK_PR.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: It looks like you are trying to record this run from a forked PR.
-
-The Record Key is missing. Your CI provider is likely not passing private environment variables to builds from forks.
-
-These results will not be recorded.
-
-This error will not affect or change the exit code.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/RECORD_KEY_MISSING.html b/packages/errors/__snapshot-html__/RECORD_KEY_MISSING.html deleted file mode 100644 index b72f6fb5c6..0000000000 --- a/packages/errors/__snapshot-html__/RECORD_KEY_MISSING.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
You passed the --record flag but did not provide us your Record Key.
-
-You can pass us your Record Key like this:
-
-  $ cypress run --record --key <record_key>
-
-You can also set the key as an environment variable with the name: CYPRESS_RECORD_KEY
-
-https://on.cypress.io/how-do-i-record-runs
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/RECORD_PARAMS_WITHOUT_RECORDING.html b/packages/errors/__snapshot-html__/RECORD_PARAMS_WITHOUT_RECORDING.html deleted file mode 100644 index dfa2b68f97..0000000000 --- a/packages/errors/__snapshot-html__/RECORD_PARAMS_WITHOUT_RECORDING.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
You passed the --ci-build-id, --group, --tag, --parallel, or --auto-cancel-after-failures flag without also passing the --record flag.
-
-The --parallel flag you passed was: true
-
-These flags can only be used when recording to Cypress Cloud.
-
-https://on.cypress.io/record-params-without-recording
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/RENAMED_CONFIG_OPTION.html b/packages/errors/__snapshot-html__/RENAMED_CONFIG_OPTION.html deleted file mode 100644 index 79d90cf30b..0000000000 --- a/packages/errors/__snapshot-html__/RENAMED_CONFIG_OPTION.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - -
The oldName configuration option you have supplied has been renamed.
-
-Please rename oldName to newName
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/RENDERER_CRASHED.html b/packages/errors/__snapshot-html__/RENDERER_CRASHED.html deleted file mode 100644 index ad4daa2bfd..0000000000 --- a/packages/errors/__snapshot-html__/RENDERER_CRASHED.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - -
We detected that the Electron Renderer process just crashed.
-
-We have failed the current spec but will continue running the next spec.
-
-This can happen for a number of different reasons.
-
-If you're running lots of tests on a memory intense application.
-  - Try increasing the CPU/memory on the machine you're running on.
-  - Try enabling experimentalMemoryManagement in your config file.
-  - Try lowering numTestsKeptInMemory in your config file during 'cypress open'.
-
-You can learn more here:
-
-https://on.cypress.io/renderer-process-crashed
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/RUN_GROUPING_FEATURE_NOT_AVAILABLE_IN_PLAN.html b/packages/errors/__snapshot-html__/RUN_GROUPING_FEATURE_NOT_AVAILABLE_IN_PLAN.html deleted file mode 100644 index 230f7a2cfa..0000000000 --- a/packages/errors/__snapshot-html__/RUN_GROUPING_FEATURE_NOT_AVAILABLE_IN_PLAN.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
Grouping is not included under your current billing plan.
-
-To run your tests with groups, please visit your billing and upgrade to another plan with grouping.
-
-https://on.cypress.io/set-up-billing
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_INVALID_EVENT_NAME_ERROR.html b/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_INVALID_EVENT_NAME_ERROR.html deleted file mode 100644 index 26b36df02f..0000000000 --- a/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_INVALID_EVENT_NAME_ERROR.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - -
Your configFile threw a validation error from: /path/to/cypress.config.js
-
-You must pass a valid event name when registering a plugin.
-
-You passed: invalid:event
-
-The following are valid events:
-
- - foo
- - bar
- - baz
-
-Learn more at https://on.cypress.io/writing-a-plugin#config
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at SETUP_NODE_EVENTS_INVALID_EVENT_NAME_ERROR (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - array.html b/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - array.html deleted file mode 100644 index 3238c7d913..0000000000 --- a/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - array.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - -
Your configFile is invalid: /path/to/cypress.config.js
-
-The component.setupNodeEvents() function must be defined with the following signature:
-
-{
-  component: {
-    setupNodeEvents(on, config) {
-      // configure tasks and plugins here
-    }
-  }
-}
-
-Instead we saw:
-
-[
-  "some",
-  "array"
-]
-
-https://on.cypress.io/plugins-api
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - string.html b/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - string.html deleted file mode 100644 index 3ee76bf23e..0000000000 --- a/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - string.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - -
Your configFile is invalid: /path/to/cypress.config.js
-
-The component.setupNodeEvents() function must be defined with the following signature:
-
-{
-  component: {
-    setupNodeEvents(on, config) {
-      // configure tasks and plugins here
-    }
-  }
-}
-
-Instead we saw:
-
-"some string"
-
-https://on.cypress.io/plugins-api
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION.html b/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION.html deleted file mode 100644 index 3f66cb084e..0000000000 --- a/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - -
Your configFile is invalid: /path/to/cypress.config.js
-
-The e2e.setupNodeEvents() function must be defined with the following signature:
-
-{
-  e2e: {
-    setupNodeEvents(on, config) {
-      // configure tasks and plugins here
-    }
-  }
-}
-
-Instead we saw:
-
-{
-  "some": "object"
-}
-
-https://on.cypress.io/plugins-api
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/SUPPORT_FILE_NOT_FOUND.html b/packages/errors/__snapshot-html__/SUPPORT_FILE_NOT_FOUND.html deleted file mode 100644 index 02c2275606..0000000000 --- a/packages/errors/__snapshot-html__/SUPPORT_FILE_NOT_FOUND.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -
Your supportFile is missing or invalid: /path/to/supportFile
-
-The supportFile must be a .js, .ts, .coffee file or be supported by your preprocessor plugin (if configured).
-
-Fix your support file, or set supportFile to false if a support file is not necessary for your project.
-
-If you have just renamed the extension of your supportFile, restart Cypress.
-
-https://on.cypress.io/support-file-missing-or-invalid
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/TESTING_TYPE_NOT_CONFIGURED.html b/packages/errors/__snapshot-html__/TESTING_TYPE_NOT_CONFIGURED.html deleted file mode 100644 index 0cbe6e32cc..0000000000 --- a/packages/errors/__snapshot-html__/TESTING_TYPE_NOT_CONFIGURED.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - -
The testing type selected (component) is not configured in your config file.
-
-Please run ‘cypress open’ and choose your testing type to automatically update your configuration file.
-
-https://on.cypress.io/configuration
-
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/TESTS_DID_NOT_START_FAILED.html b/packages/errors/__snapshot-html__/TESTS_DID_NOT_START_FAILED.html deleted file mode 100644 index a1e6589e55..0000000000 --- a/packages/errors/__snapshot-html__/TESTS_DID_NOT_START_FAILED.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
The browser never connected. Something is wrong. The tests cannot run. Aborting...
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/TESTS_DID_NOT_START_RETRYING - retryingAgain.html b/packages/errors/__snapshot-html__/TESTS_DID_NOT_START_RETRYING - retryingAgain.html deleted file mode 100644 index 8b0610392d..0000000000 --- a/packages/errors/__snapshot-html__/TESTS_DID_NOT_START_RETRYING - retryingAgain.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Timed out waiting for the browser to connect. Retrying again...
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/TESTS_DID_NOT_START_RETRYING.html b/packages/errors/__snapshot-html__/TESTS_DID_NOT_START_RETRYING.html deleted file mode 100644 index 87a1d43abd..0000000000 --- a/packages/errors/__snapshot-html__/TESTS_DID_NOT_START_RETRYING.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Timed out waiting for the browser to connect. Retrying...
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/UNEXPECTED_BEFORE_BROWSER_LAUNCH_PROPERTIES.html b/packages/errors/__snapshot-html__/UNEXPECTED_BEFORE_BROWSER_LAUNCH_PROPERTIES.html deleted file mode 100644 index 9d870a82c6..0000000000 --- a/packages/errors/__snapshot-html__/UNEXPECTED_BEFORE_BROWSER_LAUNCH_PROPERTIES.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - -
The launchOptions object returned by your plugin's before:browser:launch handler contained unexpected properties:
-
- - baz
-
-launchOptions may only contain the properties:
-
- - preferences
- - extensions
- - args
-
-https://on.cypress.io/browser-launch-api
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/UNEXPECTED_INTERNAL_ERROR.html b/packages/errors/__snapshot-html__/UNEXPECTED_INTERNAL_ERROR.html deleted file mode 100644 index 58a0474b02..0000000000 --- a/packages/errors/__snapshot-html__/UNEXPECTED_INTERNAL_ERROR.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
We encountered an unexpected internal error.
-
-Please check GitHub or open a new issue if you don't see one already with the details below:
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at UNEXPECTED_INTERNAL_ERROR (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/UNEXPECTED_MUTATION_ERROR.html b/packages/errors/__snapshot-html__/UNEXPECTED_MUTATION_ERROR.html deleted file mode 100644 index 12352b1eb2..0000000000 --- a/packages/errors/__snapshot-html__/UNEXPECTED_MUTATION_ERROR.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
An unexpected internal error occurred while executing the wizardUpdate operation with payload:
-
-{}
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at UNEXPECTED_MUTATION_ERROR (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/UNSUPPORTED_BROWSER_VERSION.html b/packages/errors/__snapshot-html__/UNSUPPORTED_BROWSER_VERSION.html deleted file mode 100644 index fd88bc7d47..0000000000 --- a/packages/errors/__snapshot-html__/UNSUPPORTED_BROWSER_VERSION.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - -
Cypress does not support running chrome version 64. To use chrome with Cypress, install a version of chrome newer than or equal to 64.
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/VIDEO_CAPTURE_FAILED.html b/packages/errors/__snapshot-html__/VIDEO_CAPTURE_FAILED.html deleted file mode 100644 index dc8c80bf8d..0000000000 --- a/packages/errors/__snapshot-html__/VIDEO_CAPTURE_FAILED.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: We failed capturing this video.
-
-This error will not affect or change the exit code.
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at VIDEO_CAPTURE_FAILED (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/VIDEO_COMPRESSION_FAILED.html b/packages/errors/__snapshot-html__/VIDEO_COMPRESSION_FAILED.html deleted file mode 100644 index 343b4fa4c4..0000000000 --- a/packages/errors/__snapshot-html__/VIDEO_COMPRESSION_FAILED.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: We failed compressing this video.
-
-This error will not affect or change the exit code.
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at VIDEO_COMPRESSION_FAILED (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/VIDEO_RECORDING_FAILED.html b/packages/errors/__snapshot-html__/VIDEO_RECORDING_FAILED.html deleted file mode 100644 index 08df4fedd5..0000000000 --- a/packages/errors/__snapshot-html__/VIDEO_RECORDING_FAILED.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - -
Warning: We failed to record the video.
-
-This error will not affect or change the exit code.
-
-Error: fail whale
-    at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-    at VIDEO_RECORDING_FAILED (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)
-
\ No newline at end of file diff --git a/packages/errors/__snapshot-html__/VIDEO_UPLOAD_ON_PASSES_REMOVED.html b/packages/errors/__snapshot-html__/VIDEO_UPLOAD_ON_PASSES_REMOVED.html deleted file mode 100644 index 8452a5f91d..0000000000 --- a/packages/errors/__snapshot-html__/VIDEO_UPLOAD_ON_PASSES_REMOVED.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - -
The videoUploadOnPasses configuration option was removed in Cypress version 13.0.0.
-
-You can safely remove this option from your config.
-
-https://on.cypress.io/migration-guide
-
\ No newline at end of file diff --git a/packages/errors/__snapshots__/errors_spec.ts.js b/packages/errors/__snapshots__/errors_spec.ts.js deleted file mode 100644 index c809a4d34b..0000000000 --- a/packages/errors/__snapshots__/errors_spec.ts.js +++ /dev/null @@ -1,4 +0,0 @@ -exports['tags and name only'] = ` -The --tag flag you passed was: nightly,staging -The --name flag you passed was: my tests -` diff --git a/packages/errors/eslint.config.ts b/packages/errors/eslint.config.ts index 1c22f766fc..8e2f2b2623 100644 --- a/packages/errors/eslint.config.ts +++ b/packages/errors/eslint.config.ts @@ -1,3 +1,13 @@ import { baseConfig } from '@packages/eslint-config' -export default baseConfig +export default [ + ...baseConfig, + { + files: ['**/*.spec.ts', '**/*.ts'], + languageOptions: { + parserOptions: { + tsconfigRootDir: __dirname, + }, + }, + }, +] diff --git a/packages/errors/package.json b/packages/errors/package.json index 39af2a58e5..33ba86d354 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -10,18 +10,18 @@ "check-ts": "tsc --noEmit && yarn -s tslint", "clean": "rimraf --glob './src/*.js' './src/**/*.js' './src/**/**/*.js' './test/**/*.js' || echo 'cleaned'", "clean-deps": "rimraf node_modules", - "comparison": "node -r @packages/ts/register test/support/error-comparison-tool.ts", "lint": "eslint", + "pretest": "yarn clean", "test": "yarn test-unit", - "test-electron": "HTML_IMAGE_CONVERSION=1 xvfb-maybe electron --no-sandbox ./node_modules/.bin/_mocha", - "pretest-unit": "yarn clean", - "test-unit": "mocha", + "posttest": "yarn build", + "test-unit": "vitest run", + "test-debug": "vitest --inspect-brk --no-file-parallelism --test-timeout=0", "tslint": "tslint --config ../ts/tslint.json --project ." }, "dependencies": { "ansi_up": "5.0.0", "axios": "^1.7.9", - "chalk": "^2.4.2", + "chalk": "^4.1.2", "lodash": "^4.17.21", "pluralize": "8.0.0", "strip-ansi": "6.0.1" @@ -36,16 +36,13 @@ "@types/node": "22.18.0", "@types/pngjs": "^6.0.1", "ansi-styles": "^5", - "chai": "4.2.0", "ci-info": "^4.1.0", "eslint": "^9.31.0", "globby": "^11.1.0", "jiti": "^2.4.2", - "mocha": "7.0.1", "pngjs": "^7.0.0", "rimraf": "6.0.1", - "sinon": "7.5.0", - "terminal-banner": "^1.1.0", + "vitest": "^3.2.4", "xvfb-maybe": "^0.2.1" }, "files": [ diff --git a/packages/errors/src/errors.ts b/packages/errors/src/errors.ts index 2f1094c407..524b4b99c4 100644 --- a/packages/errors/src/errors.ts +++ b/packages/errors/src/errors.ts @@ -135,9 +135,6 @@ export const AllCypressErrors = { TESTS_DID_NOT_START_RETRYING: (arg1: string) => { return errTemplate`Timed out waiting for the browser to connect. ${fmt.off(arg1)}` }, - FIREFOX_CDP_FAILED_TO_CONNECT: (arg1: string) => { - return errTemplate`Failed to spawn CDP with Firefox. ${fmt.off(arg1)}` - }, TESTS_DID_NOT_START_FAILED: () => { return errTemplate`The browser never connected. Something is wrong. The tests cannot run. Aborting...` }, @@ -1553,7 +1550,6 @@ export const AllCypressErrors = { }, } as const -// eslint-disable-next-line @typescript-eslint/no-unused-vars const _typeCheck: Record ErrTemplateResult> = AllCypressErrors export type AllCypressErrorObj = typeof AllCypressErrors diff --git a/packages/errors/test/__snapshots__/AUTOMATION_SERVER_DISCONNECTED.ansi b/packages/errors/test/__snapshots__/AUTOMATION_SERVER_DISCONNECTED.ansi new file mode 100644 index 0000000000..1ec4b9b7bc --- /dev/null +++ b/packages/errors/test/__snapshots__/AUTOMATION_SERVER_DISCONNECTED.ansi @@ -0,0 +1 @@ +The automation client disconnected. Cannot continue running tests. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/BAD_POLICY_WARNING.ansi b/packages/errors/test/__snapshots__/BAD_POLICY_WARNING.ansi new file mode 100644 index 0000000000..e89ba420e4 --- /dev/null +++ b/packages/errors/test/__snapshots__/BAD_POLICY_WARNING.ansi @@ -0,0 +1,8 @@ +Cypress detected policy settings on your computer that may cause issues. + +The following policies were detected that may prevent Cypress from automating Chrome: + + - HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ProxyServer + - HKEY_CURRENT_USER\Software\Policies\Google\Chromium\ExtensionSettings + +For more information, see https://on.cypress.io/bad-browser-policy \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/BAD_POLICY_WARNING_TOOLTIP.ansi b/packages/errors/test/__snapshots__/BAD_POLICY_WARNING_TOOLTIP.ansi new file mode 100644 index 0000000000..d82f93fd5d --- /dev/null +++ b/packages/errors/test/__snapshots__/BAD_POLICY_WARNING_TOOLTIP.ansi @@ -0,0 +1 @@ +Cypress detected policy settings on your computer that may cause issues with using this browser. For more information, see https://on.cypress.io/bad-browser-policy \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/BROWSER_CRASHED.ansi b/packages/errors/test/__snapshots__/BROWSER_CRASHED.ansi new file mode 100644 index 0000000000..4aee8b198b --- /dev/null +++ b/packages/errors/test/__snapshots__/BROWSER_CRASHED.ansi @@ -0,0 +1,11 @@ +We detected that the Chrome process just crashed with code 'code' and signal 'signal'. + +We have failed the current spec but will continue running the next spec. + +This can happen for many different reasons: + +- You wrote an endless loop and you must fix your own code +- You are running lots of tests on a memory intense application +- You are running in a memory starved VM environment +- There are problems with your GPU / GPU drivers +- There are browser bugs \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/BROWSER_NOT_FOUND_BY_NAME - canary.ansi b/packages/errors/test/__snapshots__/BROWSER_NOT_FOUND_BY_NAME - canary.ansi new file mode 100644 index 0000000000..5702dd6598 --- /dev/null +++ b/packages/errors/test/__snapshots__/BROWSER_NOT_FOUND_BY_NAME - canary.ansi @@ -0,0 +1,27 @@ +Can't run because you've entered an invalid browser name. + +Browser: canary was not found on your system or is not supported by Cypress. + +Cypress supports the following browsers: + - electron + - chrome + - chromium + - chrome-for-testing + - edge + - firefox + +You can also use a custom browser: https://on.cypress.io/customize-browsers + +Available browsers found on your system are: + - chrome + - chrome:beta + - chrome:canary + - chrome-for-testing + - chromium + - firefox + - firefox:dev + - firefox:nightly + - edge + - edge:beta + - edge:canary + - edge:dev \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/BROWSER_NOT_FOUND_BY_NAME.ansi b/packages/errors/test/__snapshots__/BROWSER_NOT_FOUND_BY_NAME.ansi new file mode 100644 index 0000000000..6f0bb7387a --- /dev/null +++ b/packages/errors/test/__snapshots__/BROWSER_NOT_FOUND_BY_NAME.ansi @@ -0,0 +1,27 @@ +Can't run because you've entered an invalid browser name. + +Browser: invalid-browser was not found on your system or is not supported by Cypress. + +Cypress supports the following browsers: + - electron + - chrome + - chromium + - chrome-for-testing + - edge + - firefox + +You can also use a custom browser: https://on.cypress.io/customize-browsers + +Available browsers found on your system are: + - chrome + - chrome:beta + - chrome:canary + - chrome-for-testing + - chromium + - firefox + - firefox:dev + - firefox:nightly + - edge + - edge:beta + - edge:canary + - edge:dev \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/BROWSER_NOT_FOUND_BY_PATH.ansi b/packages/errors/test/__snapshots__/BROWSER_NOT_FOUND_BY_PATH.ansi new file mode 100644 index 0000000000..8a2f5f84d9 --- /dev/null +++ b/packages/errors/test/__snapshots__/BROWSER_NOT_FOUND_BY_PATH.ansi @@ -0,0 +1,7 @@ +We could not identify a known browser at the path you provided: /path/does/not/exist + +Read more about how to troubleshoot launching browsers: https://on.cypress.io/troubleshooting-launching-browsers + +The output from the command we ran was: + +fail whale \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/BROWSER_PAGE_CLOSED_UNEXPECTEDLY.ansi b/packages/errors/test/__snapshots__/BROWSER_PAGE_CLOSED_UNEXPECTEDLY.ansi new file mode 100644 index 0000000000..a3028a2c2d --- /dev/null +++ b/packages/errors/test/__snapshots__/BROWSER_PAGE_CLOSED_UNEXPECTEDLY.ansi @@ -0,0 +1,3 @@ +We detected that the chrome tab running Cypress tests closed unexpectedly. + +We have failed the current spec and aborted the run. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/BROWSER_PROCESS_CLOSED_UNEXPECTEDLY.ansi b/packages/errors/test/__snapshots__/BROWSER_PROCESS_CLOSED_UNEXPECTEDLY.ansi new file mode 100644 index 0000000000..36cdf9fad7 --- /dev/null +++ b/packages/errors/test/__snapshots__/BROWSER_PROCESS_CLOSED_UNEXPECTEDLY.ansi @@ -0,0 +1,3 @@ +We detected that the chrome browser process closed unexpectedly. + +We have failed the current spec and aborted the run. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/BROWSER_UNSUPPORTED_LAUNCH_OPTION.ansi b/packages/errors/test/__snapshots__/BROWSER_UNSUPPORTED_LAUNCH_OPTION.ansi new file mode 100644 index 0000000000..4f99382730 --- /dev/null +++ b/packages/errors/test/__snapshots__/BROWSER_UNSUPPORTED_LAUNCH_OPTION.ansi @@ -0,0 +1,3 @@ +Warning: The following browser launch options were provided but are not supported by electron + + - env \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/BUNDLE_ERROR.ansi b/packages/errors/test/__snapshots__/BUNDLE_ERROR.ansi new file mode 100644 index 0000000000..adaa441b6f --- /dev/null +++ b/packages/errors/test/__snapshots__/BUNDLE_ERROR.ansi @@ -0,0 +1,14 @@ +Oops...we found an error preparing this test file: + + > /path/to/file + +The error was: + +fail whale + +This occurred while Cypress was compiling and bundling your test code. This is usually caused by: + +- A missing file or dependency +- A syntax error in the file or one of its dependencies + +Fix the error in your code and re-run your tests. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL.ansi b/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL.ansi new file mode 100644 index 0000000000..35f53acf66 --- /dev/null +++ b/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL.ansi @@ -0,0 +1,3 @@ +Cypress failed to verify that your server is running. + +Please start this server and then run Cypress again. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL_RETRYING - retrying.ansi b/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL_RETRYING - retrying.ansi new file mode 100644 index 0000000000..7de2756e94 --- /dev/null +++ b/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL_RETRYING - retrying.ansi @@ -0,0 +1 @@ +We will try connecting to it 60 more times... \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL_RETRYING.ansi b/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL_RETRYING.ansi new file mode 100644 index 0000000000..2663722d83 --- /dev/null +++ b/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL_RETRYING.ansi @@ -0,0 +1,9 @@ +Cypress could not verify that this server is running: + + > http://localhost:3000 + +We are verifying this server because it has been configured as your baseUrl. + +Cypress automatically waits until your server is accessible before running tests. + +We will try connecting to it 60 more times... \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL_WARNING.ansi b/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL_WARNING.ansi new file mode 100644 index 0000000000..591a1c5a5a --- /dev/null +++ b/packages/errors/test/__snapshots__/CANNOT_CONNECT_BASE_URL_WARNING.ansi @@ -0,0 +1,5 @@ +Cypress could not verify that this server is running: + + > http://localhost:3000 + +This server has been configured as your baseUrl, and tests will likely fail if it is not running. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CANNOT_CREATE_PROJECT_TOKEN.ansi b/packages/errors/test/__snapshots__/CANNOT_CREATE_PROJECT_TOKEN.ansi new file mode 100644 index 0000000000..2e79b4e50b --- /dev/null +++ b/packages/errors/test/__snapshots__/CANNOT_CREATE_PROJECT_TOKEN.ansi @@ -0,0 +1 @@ +Can't create project's secret key. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CANNOT_FETCH_PROJECT_TOKEN.ansi b/packages/errors/test/__snapshots__/CANNOT_FETCH_PROJECT_TOKEN.ansi new file mode 100644 index 0000000000..dcad4acba2 --- /dev/null +++ b/packages/errors/test/__snapshots__/CANNOT_FETCH_PROJECT_TOKEN.ansi @@ -0,0 +1 @@ +Can't find project's secret key. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CANNOT_RECORD_NO_PROJECT_ID.ansi b/packages/errors/test/__snapshots__/CANNOT_RECORD_NO_PROJECT_ID.ansi new file mode 100644 index 0000000000..9470a74462 --- /dev/null +++ b/packages/errors/test/__snapshots__/CANNOT_RECORD_NO_PROJECT_ID.ansi @@ -0,0 +1,11 @@ +You passed the --record flag but this project has not been setup to record. + +This project is missing the projectId inside of: /path/to/cypress.config.js + +We cannot uniquely identify this project without this id. + +You need to setup this project to record. This will generate a unique projectId. + +Alternatively if you omit the --record flag this project will run without recording. + +https://on.cypress.io/recording-project-runs \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CANNOT_REMOVE_OLD_BROWSER_PROFILES.ansi b/packages/errors/test/__snapshots__/CANNOT_REMOVE_OLD_BROWSER_PROFILES.ansi new file mode 100644 index 0000000000..8e403f58aa --- /dev/null +++ b/packages/errors/test/__snapshots__/CANNOT_REMOVE_OLD_BROWSER_PROFILES.ansi @@ -0,0 +1,7 @@ +Warning: We failed to remove old browser profiles from previous runs. + +This error will not affect or change the exit code. + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at CANNOT_REMOVE_OLD_BROWSER_PROFILES (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CANNOT_TRASH_ASSETS.ansi b/packages/errors/test/__snapshots__/CANNOT_TRASH_ASSETS.ansi new file mode 100644 index 0000000000..02dd4113da --- /dev/null +++ b/packages/errors/test/__snapshots__/CANNOT_TRASH_ASSETS.ansi @@ -0,0 +1,7 @@ +Warning: We failed to trash the existing run results. + +This error will not affect or change the exit code. + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at CANNOT_TRASH_ASSETS (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CDP_COULD_NOT_CONNECT.ansi b/packages/errors/test/__snapshots__/CDP_COULD_NOT_CONNECT.ansi new file mode 100644 index 0000000000..fa045980c6 --- /dev/null +++ b/packages/errors/test/__snapshots__/CDP_COULD_NOT_CONNECT.ansi @@ -0,0 +1,9 @@ +Cypress failed to make a connection to the Chrome DevTools Protocol after retrying for 50 seconds. + +This usually indicates there was a problem opening the Chrome browser. + +The CDP port requested was 2345. + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at CDP_COULD_NOT_CONNECT (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CDP_COULD_NOT_RECONNECT.ansi b/packages/errors/test/__snapshots__/CDP_COULD_NOT_RECONNECT.ansi new file mode 100644 index 0000000000..923e982a20 --- /dev/null +++ b/packages/errors/test/__snapshots__/CDP_COULD_NOT_RECONNECT.ansi @@ -0,0 +1,5 @@ +There was an error reconnecting to the Chrome DevTools protocol. Please restart the browser. + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at CDP_COULD_NOT_RECONNECT (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CDP_RETRYING_CONNECTION.ansi b/packages/errors/test/__snapshots__/CDP_RETRYING_CONNECTION.ansi new file mode 100644 index 0000000000..e2e677f3c2 --- /dev/null +++ b/packages/errors/test/__snapshots__/CDP_RETRYING_CONNECTION.ansi @@ -0,0 +1 @@ +Still waiting to connect to Chrome, retrying in 1 second (attempt 1/62) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CDP_VERSION_TOO_OLD - older.ansi b/packages/errors/test/__snapshots__/CDP_VERSION_TOO_OLD - older.ansi new file mode 100644 index 0000000000..63a5475147 --- /dev/null +++ b/packages/errors/test/__snapshots__/CDP_VERSION_TOO_OLD - older.ansi @@ -0,0 +1 @@ +A minimum CDP version of 1.3 is required, but the current browser has an older version. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CDP_VERSION_TOO_OLD.ansi b/packages/errors/test/__snapshots__/CDP_VERSION_TOO_OLD.ansi new file mode 100644 index 0000000000..2f424c0f9f --- /dev/null +++ b/packages/errors/test/__snapshots__/CDP_VERSION_TOO_OLD.ansi @@ -0,0 +1 @@ +A minimum CDP version of 1.3 is required, but the current browser has 1.2. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CHROME_137_LOAD_EXTENSION_NOT_SUPPORTED.ansi b/packages/errors/test/__snapshots__/CHROME_137_LOAD_EXTENSION_NOT_SUPPORTED.ansi new file mode 100644 index 0000000000..acf52ce6de --- /dev/null +++ b/packages/errors/test/__snapshots__/CHROME_137_LOAD_EXTENSION_NOT_SUPPORTED.ansi @@ -0,0 +1 @@ +Google Chrome v137 and higher does not allow loading extensions via --load-extension. If you need to load an extension to test with Cypress, please use Chrome for Testing, Chromium, or another Chrome variant that supports loading extensions. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CHROME_WEB_SECURITY_NOT_SUPPORTED.ansi b/packages/errors/test/__snapshots__/CHROME_WEB_SECURITY_NOT_SUPPORTED.ansi new file mode 100644 index 0000000000..72af8e3a94 --- /dev/null +++ b/packages/errors/test/__snapshots__/CHROME_WEB_SECURITY_NOT_SUPPORTED.ansi @@ -0,0 +1,3 @@ +Your project has set the configuration option: `chromeWebSecurity` to `false`. + +This option will not have an effect in Firefox. Tests that rely on web security being disabled will not run as expected. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_ALREADY_COMPLETE.ansi b/packages/errors/test/__snapshots__/CLOUD_ALREADY_COMPLETE.ansi new file mode 100644 index 0000000000..77455b9875 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_ALREADY_COMPLETE.ansi @@ -0,0 +1,10 @@ +The run you are attempting to access is already complete and will not accept new groups. + +The existing run is: https://cloud.cypress.io/project/abcd/runs/1 + +When a run finishes all of its groups, it waits for a configurable set of time before finally completing. You must add more groups during that time period. + +The --group flag you passed was: foo +The --parallel flag you passed was: true + +https://on.cypress.io/already-complete \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_API_RESPONSE_FAILED_RETRYING - lastTry.ansi b/packages/errors/test/__snapshots__/CLOUD_API_RESPONSE_FAILED_RETRYING - lastTry.ansi new file mode 100644 index 0000000000..2faed463fe --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_API_RESPONSE_FAILED_RETRYING - lastTry.ansi @@ -0,0 +1,6 @@ +We encountered an unexpected error communicating with our servers. + +StatusCodeError: 500 - "Internal Server Error" + +We will retry 1 more time in 5 seconds... + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_API_RESPONSE_FAILED_RETRYING.ansi b/packages/errors/test/__snapshots__/CLOUD_API_RESPONSE_FAILED_RETRYING.ansi new file mode 100644 index 0000000000..5718e43d4b --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_API_RESPONSE_FAILED_RETRYING.ansi @@ -0,0 +1,6 @@ +We encountered an unexpected error communicating with our servers. + +StatusCodeError: 500 - "Internal Server Error" + +We will retry 3 more times in 5 seconds... + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_AUTO_CANCEL_MISMATCH.ansi b/packages/errors/test/__snapshots__/CLOUD_AUTO_CANCEL_MISMATCH.ansi new file mode 100644 index 0000000000..87e2cf2512 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_AUTO_CANCEL_MISMATCH.ansi @@ -0,0 +1,11 @@ +You passed the --auto-cancel-after-failures flag, but this run originally started with a different value for the --auto-cancel-after-failures flag. + +The existing run is: https://cloud.cypress.io/project/abcd/runs/1 + +The --group flag you passed was: foo +The --parallel flag you passed was: true +The --auto-cancel-after-failures flag you passed was: 3 + +The first setting of --auto-cancel-after-failures for any given run takes precedent. + +https://on.cypress.io/auto-cancellation-mismatch \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_AUTO_CANCEL_NOT_AVAILABLE_IN_PLAN.ansi b/packages/errors/test/__snapshots__/CLOUD_AUTO_CANCEL_NOT_AVAILABLE_IN_PLAN.ansi new file mode 100644 index 0000000000..e3d88c6cdc --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_AUTO_CANCEL_NOT_AVAILABLE_IN_PLAN.ansi @@ -0,0 +1,5 @@ +Auto Cancellation is not included under your current billing plan. + +To enable this service, please visit your billing and upgrade to another plan with Auto Cancellation. + +https://on.cypress.io/set-up-billing \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_CANCEL_SKIPPED_SPEC.ansi b/packages/errors/test/__snapshots__/CLOUD_CANCEL_SKIPPED_SPEC.ansi new file mode 100644 index 0000000000..64f75b20f8 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_CANCEL_SKIPPED_SPEC.ansi @@ -0,0 +1,2 @@ + + This spec and its tests were skipped because the run has been canceled. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_CANNOT_CONFIRM_ARTIFACTS.ansi b/packages/errors/test/__snapshots__/CLOUD_CANNOT_CONFIRM_ARTIFACTS.ansi new file mode 100644 index 0000000000..d9dba536c4 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_CANNOT_CONFIRM_ARTIFACTS.ansi @@ -0,0 +1,7 @@ +Warning: We encountered an error while confirming the upload of artifacts for this spec. + +These results will not display artifacts. + +This error will not affect or change the exit code. + +Error: fail whale \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_CANNOT_CREATE_RUN_OR_INSTANCE.ansi b/packages/errors/test/__snapshots__/CLOUD_CANNOT_CREATE_RUN_OR_INSTANCE.ansi new file mode 100644 index 0000000000..9f7fc8c6cb --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_CANNOT_CREATE_RUN_OR_INSTANCE.ansi @@ -0,0 +1,7 @@ +Warning: We encountered an error communicating with our servers. + +This run will proceed, but will not be recorded. + +This error will not affect or change the exit code. + +StatusCodeError: 500 - "Internal Server Error" \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_CANNOT_PROCEED_IN_PARALLEL.ansi b/packages/errors/test/__snapshots__/CLOUD_CANNOT_PROCEED_IN_PARALLEL.ansi new file mode 100644 index 0000000000..de5ed4a8ef --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_CANNOT_PROCEED_IN_PARALLEL.ansi @@ -0,0 +1,8 @@ +We encountered an unexpected error communicating with our servers. + +StatusCodeError: 500 - "Internal Server Error" + +Because you passed the --parallel flag, this run cannot proceed since it requires a valid response from our servers. + +The --group flag you passed was: foo +The --ciBuildId flag you passed was: invalid \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_CANNOT_PROCEED_IN_SERIAL.ansi b/packages/errors/test/__snapshots__/CLOUD_CANNOT_PROCEED_IN_SERIAL.ansi new file mode 100644 index 0000000000..aaad2ee9b3 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_CANNOT_PROCEED_IN_SERIAL.ansi @@ -0,0 +1,8 @@ +We encountered an unexpected error communicating with our servers. + +StatusCodeError: 500 - "Internal Server Error" + +Because you passed the --record flag, this run cannot proceed since it requires a valid response from our servers. + +The --group flag you passed was: foo +The --ciBuildId flag you passed was: invalid \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_CANNOT_UPLOAD_ARTIFACTS.ansi b/packages/errors/test/__snapshots__/CLOUD_CANNOT_UPLOAD_ARTIFACTS.ansi new file mode 100644 index 0000000000..4b8eaa3566 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_CANNOT_UPLOAD_ARTIFACTS.ansi @@ -0,0 +1,7 @@ +Warning: We encountered an error while uploading screenshots & videos from your run. + +These results will not be recorded. + +This error will not affect or change the exit code. + +StatusCodeError: 500 - "Internal Server Error" \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_GRAPHQL_ERROR.ansi b/packages/errors/test/__snapshots__/CLOUD_GRAPHQL_ERROR.ansi new file mode 100644 index 0000000000..8d7257586b --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_GRAPHQL_ERROR.ansi @@ -0,0 +1,4 @@ +We received an unexpected error response from the request to Cypress Cloud: + +"fail whale" + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_INVALID_RUN_REQUEST.ansi b/packages/errors/test/__snapshots__/CLOUD_INVALID_RUN_REQUEST.ansi new file mode 100644 index 0000000000..76893fefda --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_INVALID_RUN_REQUEST.ansi @@ -0,0 +1,18 @@ +Recording this run failed. The request was invalid. + +Request Validation Error + +Errors: + +[ + "data.commit has additional properties", + "data.ci.buildNumber is required" +] + +Request Sent: + +{ + "foo": "foo", + "bar": "bar", + "baz": "baz" +} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PARALLEL_DISALLOWED.ansi b/packages/errors/test/__snapshots__/CLOUD_PARALLEL_DISALLOWED.ansi new file mode 100644 index 0000000000..c9e9f5e4ef --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PARALLEL_DISALLOWED.ansi @@ -0,0 +1,10 @@ +You passed the --parallel flag, but this run group was originally created without the --parallel flag. + +The existing run is: https://cloud.cypress.io/project/abcd/runs/1 + +The --group flag you passed was: foo +The --parallel flag you passed was: true + +You can not use the --parallel flag with this group. + +https://on.cypress.io/parallel-disallowed \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH - differentParams.ansi b/packages/errors/test/__snapshots__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH - differentParams.ansi new file mode 100644 index 0000000000..04898077b9 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH - differentParams.ansi @@ -0,0 +1,30 @@ +You passed the --parallel flag, but we do not parallelize tests across different environments. + +This machine is sending different environment parameters than the first machine that started this parallel run. + +The existing run is: https://cloud.cypress.io/project/abcd/runs/1 + +In order to run in parallel mode each machine must send identical environment parameters such as: + + - specs + - osName + - osVersion + - browserName + - browserVersion (major) + +This machine sent the following parameters: + +{ + "osName": "darwin", + "osVersion": "v1", + "browserName": "Electron.... (Expected: Electron)", + "browserVersion": "59.1.2.3.... (Expected: 64)", + "differentSpecs": { + "added": [ + "cypress/integration/foo_spec.js" + ], + "missing": [] + } +} + +https://on.cypress.io/parallel-group-params-mismatch \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH.ansi b/packages/errors/test/__snapshots__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH.ansi new file mode 100644 index 0000000000..a8f349a9b6 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH.ansi @@ -0,0 +1,27 @@ +You passed the --parallel flag, but we do not parallelize tests across different environments. + +This machine is sending different environment parameters than the first machine that started this parallel run. + +The existing run is: https://cloud.cypress.io/project/abcd/runs/1 + +In order to run in parallel mode each machine must send identical environment parameters such as: + + - specs + - osName + - osVersion + - browserName + - browserVersion (major) + +This machine sent the following parameters: + +{ + "osName": "darwin", + "osVersion": "v1", + "browserName": "Electron", + "browserVersion": "59.1.2.3", + "specs": [ + "cypress/integration/app_spec.js" + ] +} + +https://on.cypress.io/parallel-group-params-mismatch \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PARALLEL_REQUIRED.ansi b/packages/errors/test/__snapshots__/CLOUD_PARALLEL_REQUIRED.ansi new file mode 100644 index 0000000000..d123227e8e --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PARALLEL_REQUIRED.ansi @@ -0,0 +1,10 @@ +You did not pass the --parallel flag, but this run's group was originally created with the --parallel flag. + +The existing run is: https://cloud.cypress.io/project/abcd/runs/1 + +The --group flag you passed was: foo +The --parallel flag you passed was: true + +You must use the --parallel flag with this group. + +https://on.cypress.io/parallel-required \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PROJECT_NOT_FOUND.ansi b/packages/errors/test/__snapshots__/CLOUD_PROJECT_NOT_FOUND.ansi new file mode 100644 index 0000000000..1d424bb7ad --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PROJECT_NOT_FOUND.ansi @@ -0,0 +1,11 @@ +We could not find a Cypress Cloud project with the projectId: project-id-123 + +This projectId came from your /path/to/cypress.config.js file or an environment variable. + +Please log into Cypress Cloud and find your project. + +We will list the correct projectId in the 'Settings' tab. + +Alternatively, you can create a new project directly from within the Cypress app. + +https://on.cypress.io/cloud \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_CANNOT_UPLOAD_ARTIFACT.ansi b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_CANNOT_UPLOAD_ARTIFACT.ansi new file mode 100644 index 0000000000..732c6efebb --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_CANNOT_UPLOAD_ARTIFACT.ansi @@ -0,0 +1,6 @@ +Warning: We are unable to upload the Test Replay recording of this spec due to a missing or invalid upload URL. + +These results will not display Test Replay recordings. + +This error will not affect or change the exit code. + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_CAPTURE_FAILURE.ansi b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_CAPTURE_FAILURE.ansi new file mode 100644 index 0000000000..df4c57c42f --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_CAPTURE_FAILURE.ansi @@ -0,0 +1,12 @@ +Warning: We encountered an error while recording Test Replay data for this spec. + +These results will not display Test Replay recordings. + +This can happen for many reasons. If this problem persists: + +- Try increasing the available disk space. +- Ensure that /os/tmpdir/cypress/protocol is both readable and writable. + +This error will not affect or change the exit code. + +Error: fail whale \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_INITIALIZATION_FAILURE.ansi b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_INITIALIZATION_FAILURE.ansi new file mode 100644 index 0000000000..04f0961993 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_INITIALIZATION_FAILURE.ansi @@ -0,0 +1,7 @@ +Warning: We encountered an error while initializing the Test Replay recording for this spec. + +These results will not display Test Replay recordings. + +This error will not affect or change the exit code. + +Error: fail whale \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR - withSystemError.ansi b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR - withSystemError.ansi new file mode 100644 index 0000000000..09eb784cd7 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR - withSystemError.ansi @@ -0,0 +1,9 @@ +Warning: We encountered multiple errors while uploading the Test Replay recording for this spec. + +We attempted to upload the Test Replay recording 3 times. + +Some or all of the errors encountered are system-level network errors. Please verify your network configuration for connecting to http://some/url + +http://some/url: ECONNRESET +fail whale +fail whale \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR.ansi b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR.ansi new file mode 100644 index 0000000000..6ead8f0e8f --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_AGGREGATE_ERROR.ansi @@ -0,0 +1,7 @@ +Warning: We encountered multiple errors while uploading the Test Replay recording for this spec. + +We attempted to upload the Test Replay recording 3 times. + +fail whale +fail whale +fail whale \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_HTTP_FAILURE.ansi b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_HTTP_FAILURE.ansi new file mode 100644 index 0000000000..a8e6db15ae --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_HTTP_FAILURE.ansi @@ -0,0 +1,9 @@ +Warning: We encountered an HTTP error while uploading the Test Replay recording for this spec. + +These results will not display Test Replay recordings. + +This error will not affect or change the exit code. + +https://some/url responded with HTTP 500: Internal Server Error + +{ status: 500, reason: 'unknown'} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_NETWORK_FAILURE.ansi b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_NETWORK_FAILURE.ansi new file mode 100644 index 0000000000..226bc04dac --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_NETWORK_FAILURE.ansi @@ -0,0 +1,9 @@ +Warning: We encountered a network error while uploading the Test Replay recording for this spec. + +Please verify your network configuration for accessing https://some/url + +These results will not display Test Replay recordings. + +This error will not affect or change the exit code. + +Error: fail whale \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_STREAM_STALL_FAILURE.ansi b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_STREAM_STALL_FAILURE.ansi new file mode 100644 index 0000000000..19dcf6e926 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_STREAM_STALL_FAILURE.ansi @@ -0,0 +1,10 @@ +Warning: We encountered slow network conditions while uploading the Test Replay recording for this spec. + +The upload transfer rate fell below 6.4kbps over a sampling period of 10 seconds. + +To prevent long CI execution durations, this Test Replay recording will not be uploaded. + +The results for this spec will not display Test Replay recordings. + +If this error occurs often, the sampling period may be configured by setting the CYPRESS_TEST_REPLAY_UPLOAD_SAMPLING_INTERVAL environment variable to a higher value than 10000. + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_UNKNOWN_ERROR.ansi b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_UNKNOWN_ERROR.ansi new file mode 100644 index 0000000000..b55d9e5999 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_PROTOCOL_UPLOAD_UNKNOWN_ERROR.ansi @@ -0,0 +1,8 @@ +Warning: We encountered an error while uploading the Test Replay recording of this spec. + +These results will not display Test Replay recordings. + +This error will not affect or change the exit code. + +Error: fail whale + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_RECORD_KEY_NOT_VALID.ansi b/packages/errors/test/__snapshots__/CLOUD_RECORD_KEY_NOT_VALID.ansi new file mode 100644 index 0000000000..9e587624ba --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_RECORD_KEY_NOT_VALID.ansi @@ -0,0 +1,7 @@ +Your Record Key record-key-123 is not valid with this projectId: project-id-123 + +It may have been recently revoked by you or another user. + +Please log into Cypress Cloud to see the valid Record Keys. + +https://on.cypress.io/dashboard/projects/project-id-123 \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_RUN_GROUP_NAME_NOT_UNIQUE.ansi b/packages/errors/test/__snapshots__/CLOUD_RUN_GROUP_NAME_NOT_UNIQUE.ansi new file mode 100644 index 0000000000..862dc82ee1 --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_RUN_GROUP_NAME_NOT_UNIQUE.ansi @@ -0,0 +1,10 @@ +You passed the --group flag, but this group name has already been used for this run. + +The existing run is: https://cloud.cypress.io/project/abcd/runs/1 + +The --group flag you passed was: foo +The --parallel flag you passed was: true + +If you are trying to parallelize this run, then also pass the --parallel flag, else pass a different group name. + +https://on.cypress.io/run-group-name-not-unique \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_STALE_RUN.ansi b/packages/errors/test/__snapshots__/CLOUD_STALE_RUN.ansi new file mode 100644 index 0000000000..47424d52eb --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_STALE_RUN.ansi @@ -0,0 +1,10 @@ +You are attempting to pass the --parallel flag to a run that was completed over 24 hours ago. + +The existing run is: https://cloud.cypress.io/project/abcd/runs/1 + +You cannot parallelize a run that has been complete for that long. + +The --group flag you passed was: foo +The --parallel flag you passed was: true + +https://on.cypress.io/stale-run \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_UNKNOWN_CREATE_RUN_WARNING.ansi b/packages/errors/test/__snapshots__/CLOUD_UNKNOWN_CREATE_RUN_WARNING.ansi new file mode 100644 index 0000000000..5d30d0e65d --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_UNKNOWN_CREATE_RUN_WARNING.ansi @@ -0,0 +1,10 @@ +Warning from Cypress Cloud: You are almost out of time + +Details: + +{ + "code": "OUT_OF_TIME", + "name": "OutOfTime", + "hadTime": 1000, + "spentTime": 999 +} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CLOUD_UNKNOWN_INVALID_REQUEST.ansi b/packages/errors/test/__snapshots__/CLOUD_UNKNOWN_INVALID_REQUEST.ansi new file mode 100644 index 0000000000..23ba63fc7b --- /dev/null +++ b/packages/errors/test/__snapshots__/CLOUD_UNKNOWN_INVALID_REQUEST.ansi @@ -0,0 +1,8 @@ +We encountered an unexpected error communicating with our servers. + +StatusCodeError: 500 - "Internal Server Error" + +There is likely something wrong with the request. + +The --group flag you passed was: foo +The --ciBuildId flag you passed was: invalid \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.ansi b/packages/errors/test/__snapshots__/COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.ansi new file mode 100644 index 0000000000..c6d7bdacec --- /dev/null +++ b/packages/errors/test/__snapshots__/COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.ansi @@ -0,0 +1,6 @@ +We detected that you have versions of dependencies that are not officially supported: + + - `vite`. Expected ^=2.0.0 || ^=3.0.0 || ^=4.0.0 || ^=5.0.0, found 1.0.0. + +If you're experiencing problems, ensure your dependencies are on a supported version and restart Cypress. + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILES_LANGUAGE_CONFLICT.ansi b/packages/errors/test/__snapshots__/CONFIG_FILES_LANGUAGE_CONFLICT.ansi new file mode 100644 index 0000000000..e73c051f5f --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILES_LANGUAGE_CONFLICT.ansi @@ -0,0 +1,9 @@ +Could not load a Cypress configuration file because there are multiple matches. + +We've found 3 Cypress configuration files named +cypress.config.js, cypress.config.ts, cypress.config.mjs at the location below: + + > /path/to/project/root + +Please delete the conflicting configuration files. + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_DEV_SERVER_INVALID_RETURN.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_DEV_SERVER_INVALID_RETURN.ansi new file mode 100644 index 0000000000..d43cf4a96a --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_DEV_SERVER_INVALID_RETURN.ansi @@ -0,0 +1,10 @@ +The returned value of the devServer function is not valid. + +The returned value must be an object with a port property of the dev-server that is running. + +Instead, we saw: + +{} + +Learn more: https://on.cypress.io/dev-server + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_DEV_SERVER_IS_NOT_VALID.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_DEV_SERVER_IS_NOT_VALID.ansi new file mode 100644 index 0000000000..62cc664734 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_DEV_SERVER_IS_NOT_VALID.ansi @@ -0,0 +1,19 @@ +Your configFile is invalid: /path/to/config.ts + +The component.devServer must be an object with a supported framework and bundler. + +{ + component: { + devServer: { + framework: 'react', // Your framework + bundler: 'webpack' // Your dev server + } + } +} + +Instead, we saw: + +{} + +Learn more: https://on.cypress.io/dev-server + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_ROOT_CONFIG.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_ROOT_CONFIG.ansi new file mode 100644 index 0000000000..716dfd4684 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_ROOT_CONFIG.ansi @@ -0,0 +1,12 @@ +The specPattern configuration option is invalid when set from the root of the config object. + +Set it within a testing type property: e2e.specPattern and component.specPattern + +{ + e2e: { + specPattern: '...', + }, + component: { + specPattern: '...', + }, +} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_ROOT_CONFIG_COMPONENT.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_ROOT_CONFIG_COMPONENT.ansi new file mode 100644 index 0000000000..cef9e696e4 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_ROOT_CONFIG_COMPONENT.ansi @@ -0,0 +1,9 @@ +The indexHtmlFile configuration option is invalid when set from the root of the config object. + +Set it within a testing type property: component.indexHtmlFile + +{ + component: { + indexHtmlFile: '...', + } +} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_ROOT_CONFIG_E2E.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_ROOT_CONFIG_E2E.ansi new file mode 100644 index 0000000000..19973e8399 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_ROOT_CONFIG_E2E.ansi @@ -0,0 +1,9 @@ +The baseUrl configuration option is invalid when set from the root of the config object. + +Set it within a testing type property: e2e.baseUrl + +{ + e2e: { + baseUrl: '...', + } +} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_COMPONENT.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_COMPONENT.ansi new file mode 100644 index 0000000000..561a70fa2f --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_COMPONENT.ansi @@ -0,0 +1,9 @@ +The component.baseUrl configuration option is not valid for component testing. + +Please remove this option or add this as an e2e testing type property: e2e.baseUrl + +{ + e2e: { + baseUrl: '...', + } +} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_E2E.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_E2E.ansi new file mode 100644 index 0000000000..15a2f5d50e --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_E2E.ansi @@ -0,0 +1,9 @@ +The e2e.indexHtmlFile configuration option is not valid for e2e testing. + +Please remove this option or add this as a component testing type property: component.indexHtmlFile + +{ + e2e: { + indexHtmlFile: '...', + } +} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_NOT_FOUND.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_NOT_FOUND.ansi new file mode 100644 index 0000000000..7cd484af31 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_NOT_FOUND.ansi @@ -0,0 +1,3 @@ +Could not find a Cypress configuration file. + +We looked but did not find a cypress.config.js file in this folder: /path/to/project/root \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_REQUIRE_ERROR.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_REQUIRE_ERROR.ansi new file mode 100644 index 0000000000..7d392a1aea --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_REQUIRE_ERROR.ansi @@ -0,0 +1,7 @@ +Your configFile is invalid: /path/to/cypress.config.js + +It threw an error when required, check the stack trace below: + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at CONFIG_FILE_REQUIRE_ERROR (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR - component.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR - component.ansi new file mode 100644 index 0000000000..17bc8b18aa --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR - component.ansi @@ -0,0 +1,7 @@ +Your configFile threw an error from: /path/to/cypress.config.js + +The error was thrown while executing your component.setupNodeEvents() function: + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at CONFIG_FILE_SETUP_NODE_EVENTS_ERROR (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR.ansi new file mode 100644 index 0000000000..2008eee96c --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_SETUP_NODE_EVENTS_ERROR.ansi @@ -0,0 +1,7 @@ +Your configFile threw an error from: /path/to/cypress.config.js + +The error was thrown while executing your e2e.setupNodeEvents() function: + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at CONFIG_FILE_SETUP_NODE_EVENTS_ERROR (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_FILE_UNEXPECTED_ERROR.ansi b/packages/errors/test/__snapshots__/CONFIG_FILE_UNEXPECTED_ERROR.ansi new file mode 100644 index 0000000000..8bc0928dd9 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_FILE_UNEXPECTED_ERROR.ansi @@ -0,0 +1,7 @@ +Your configFile threw an error from: /path/to/cypress.config.js + +We stopped running your tests because your config file crashed. + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at CONFIG_FILE_UNEXPECTED_ERROR (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - invalidArray.ansi b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - invalidArray.ansi new file mode 100644 index 0000000000..5aba92d85b --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - invalidArray.ansi @@ -0,0 +1,11 @@ +Your configFile at cypress.config.js set an invalid value: + +Expected defaultCommandTimeout to be a number. + +Instead the value was:  + +[ + 1, + 2, + 3 +] \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - invalidObject.ansi b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - invalidObject.ansi new file mode 100644 index 0000000000..fd0d24a232 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - invalidObject.ansi @@ -0,0 +1,9 @@ +Your configFile at cypress.config.js set an invalid value: + +Expected defaultCommandTimeout to be a number. + +Instead the value was:  + +{ + "foo": "bar" +} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - invalidString.ansi b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - invalidString.ansi new file mode 100644 index 0000000000..34e7f8e377 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - invalidString.ansi @@ -0,0 +1,5 @@ +Your configFile at cypress.config.js set an invalid value: + +Expected defaultCommandTimeout to be a number. + +Instead the value was: "1234" \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - list.ansi b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - list.ansi new file mode 100644 index 0000000000..a30464c1b8 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - list.ansi @@ -0,0 +1,13 @@ +Your configFile at cypress.config.js set an invalid value: + +The error occurred while validating the browsers list. + +Expected displayName to be a non-empty string. + +Instead the value was:  + +{ + "name": "chrome", + "version": "1.2.3", + "displayName": null +} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - noFileType.ansi b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - noFileType.ansi new file mode 100644 index 0000000000..cc4905f575 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR - noFileType.ansi @@ -0,0 +1,5 @@ +An invalid configuration value was set. + +Expected defaultCommandTimeout to be a number. + +Instead the value was: false \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR.ansi b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR.ansi new file mode 100644 index 0000000000..4b3139a4df --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_ERROR.ansi @@ -0,0 +1,5 @@ +Your configFile at cypress.config.js set an invalid value: + +Expected defaultCommandTimeout to be a number. + +Instead the value was: false \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_VALIDATION_MSG_ERROR - noFileType.ansi b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_MSG_ERROR - noFileType.ansi new file mode 100644 index 0000000000..a038ade3c3 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_MSG_ERROR - noFileType.ansi @@ -0,0 +1,3 @@ +An invalid configuration value was set: + +`something` was not right \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/CONFIG_VALIDATION_MSG_ERROR.ansi b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_MSG_ERROR.ansi new file mode 100644 index 0000000000..6378a8cad4 --- /dev/null +++ b/packages/errors/test/__snapshots__/CONFIG_VALIDATION_MSG_ERROR.ansi @@ -0,0 +1,3 @@ +Your configFile as cypress.config.js set an invalid value: + +`something` was not right \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/COULD_NOT_PARSE_ARGUMENTS.ansi b/packages/errors/test/__snapshots__/COULD_NOT_PARSE_ARGUMENTS.ansi new file mode 100644 index 0000000000..95785aac15 --- /dev/null +++ b/packages/errors/test/__snapshots__/COULD_NOT_PARSE_ARGUMENTS.ansi @@ -0,0 +1,5 @@ +Cypress encountered an error while parsing the argument: --spec + +You passed: 1 + +The error was: spec must be a string or comma-separated list \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/DEFAULT_SUPPORT_FILE_NOT_FOUND.ansi b/packages/errors/test/__snapshots__/DEFAULT_SUPPORT_FILE_NOT_FOUND.ansi new file mode 100644 index 0000000000..f08d9a392c --- /dev/null +++ b/packages/errors/test/__snapshots__/DEFAULT_SUPPORT_FILE_NOT_FOUND.ansi @@ -0,0 +1,5 @@ +Your project does not contain a default supportFile. We expect a file matching /path/to/supportFile/**/*.{js,jsx,ts,tsx} to exist. + +If a support file is not necessary for your project, set supportFile to false. + +https://on.cypress.io/support-file-missing-or-invalid \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/DEV_SERVER_CONFIG_FILE_NOT_FOUND.ansi b/packages/errors/test/__snapshots__/DEV_SERVER_CONFIG_FILE_NOT_FOUND.ansi new file mode 100644 index 0000000000..70d07cfee7 --- /dev/null +++ b/packages/errors/test/__snapshots__/DEV_SERVER_CONFIG_FILE_NOT_FOUND.ansi @@ -0,0 +1,12 @@ +You are using vite for your dev server, but a configuration file was not found. We traversed upwards from: + +/dev/project + +looking for a file named: + + - vite.config.js + - vite.config.ts + +Add your vite config at one of the above paths, or import your configuration file and provide it to +the devServer config as a viteConfig option. + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/DUPLICATE_TASK_KEY.ansi b/packages/errors/test/__snapshots__/DUPLICATE_TASK_KEY.ansi new file mode 100644 index 0000000000..12ca7bb035 --- /dev/null +++ b/packages/errors/test/__snapshots__/DUPLICATE_TASK_KEY.ansi @@ -0,0 +1,7 @@ +Warning: Multiple attempts to register the following task(s): + + - foo + - bar + - baz + +Only the last attempt will be registered. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/ERROR_READING_FILE.ansi b/packages/errors/test/__snapshots__/ERROR_READING_FILE.ansi new file mode 100644 index 0000000000..7dd070e6b7 --- /dev/null +++ b/packages/errors/test/__snapshots__/ERROR_READING_FILE.ansi @@ -0,0 +1,5 @@ +Error reading from: /path/to/read/file.ts + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at ERROR_READING_FILE (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/ERROR_WRITING_FILE.ansi b/packages/errors/test/__snapshots__/ERROR_WRITING_FILE.ansi new file mode 100644 index 0000000000..476f27c84a --- /dev/null +++ b/packages/errors/test/__snapshots__/ERROR_WRITING_FILE.ansi @@ -0,0 +1,5 @@ +Error writing to: /path/to/write/file.ts + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at ERROR_WRITING_FILE (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/EXPERIMENTAL_JIT_COMPILE_REMOVED.ansi b/packages/errors/test/__snapshots__/EXPERIMENTAL_JIT_COMPILE_REMOVED.ansi new file mode 100644 index 0000000000..21271cd105 --- /dev/null +++ b/packages/errors/test/__snapshots__/EXPERIMENTAL_JIT_COMPILE_REMOVED.ansi @@ -0,0 +1,3 @@ +The experimentalJustInTimeCompile configuration option was removed in Cypress version 14.0.0. +A new justInTimeCompile configuration option is available and is now true by default. +You can safely remove this option from your config. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/EXPERIMENTAL_ORIGIN_DEPENDENCIES_E2E_ONLY.ansi b/packages/errors/test/__snapshots__/EXPERIMENTAL_ORIGIN_DEPENDENCIES_E2E_ONLY.ansi new file mode 100644 index 0000000000..cf2874f527 --- /dev/null +++ b/packages/errors/test/__snapshots__/EXPERIMENTAL_ORIGIN_DEPENDENCIES_E2E_ONLY.ansi @@ -0,0 +1,7 @@ +The experimentalOriginDependencies experiment is currently only supported for End to End Testing and must be configured as an e2e testing type property: e2e.experimentalOriginDependencies. + +{ + e2e: { + experimentalOriginDependencies: true + }, +} \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/EXPERIMENTAL_RUN_ALL_SPECS_E2E_ONLY.ansi b/packages/errors/test/__snapshots__/EXPERIMENTAL_RUN_ALL_SPECS_E2E_ONLY.ansi new file mode 100644 index 0000000000..e06cb4b625 --- /dev/null +++ b/packages/errors/test/__snapshots__/EXPERIMENTAL_RUN_ALL_SPECS_E2E_ONLY.ansi @@ -0,0 +1,9 @@ +The experimentalRunAllSpecs experiment is currently only supported for End to End Testing and must be configured as an e2e testing type property: e2e.experimentalRunAllSpecs. + +{ + e2e: { + experimentalRunAllSpecs: true + }, +} + +If you have feedback about the experiment, please join the discussion here: http://on.cypress.io/run-all-specs \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/EXPERIMENTAL_SESSION_AND_ORIGIN_REMOVED.ansi b/packages/errors/test/__snapshots__/EXPERIMENTAL_SESSION_AND_ORIGIN_REMOVED.ansi new file mode 100644 index 0000000000..2ec80f3f1f --- /dev/null +++ b/packages/errors/test/__snapshots__/EXPERIMENTAL_SESSION_AND_ORIGIN_REMOVED.ansi @@ -0,0 +1,6 @@ +The experimentalSessionAndOrigin configuration option was removed in Cypress version 12.0.0. + +You can safely remove this option from your config. + +https://on.cypress.io/session +https://on.cypress.io/origin \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/EXPERIMENTAL_SINGLE_TAB_RUN_MODE.ansi b/packages/errors/test/__snapshots__/EXPERIMENTAL_SINGLE_TAB_RUN_MODE.ansi new file mode 100644 index 0000000000..28f24e716d --- /dev/null +++ b/packages/errors/test/__snapshots__/EXPERIMENTAL_SINGLE_TAB_RUN_MODE.ansi @@ -0,0 +1,3 @@ +The experimentalSingleTabRunMode experiment is currently only supported for Component Testing. + +If you have feedback about the experiment, please join the discussion here: http://on.cypress.io/single-tab-run-mode \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/EXPERIMENTAL_SKIP_DOMAIN_INJECTION_REMOVED.ansi b/packages/errors/test/__snapshots__/EXPERIMENTAL_SKIP_DOMAIN_INJECTION_REMOVED.ansi new file mode 100644 index 0000000000..c43a3ae403 --- /dev/null +++ b/packages/errors/test/__snapshots__/EXPERIMENTAL_SKIP_DOMAIN_INJECTION_REMOVED.ansi @@ -0,0 +1,4 @@ +The experimentalSkipDomainInjection experiment is over. document.domain injection is now off by default. + +Read the migration guide for Cypress v14.0.0: https://on.cypress.io/migration-guide + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/EXPERIMENTAL_STUDIO_E2E_ONLY.ansi b/packages/errors/test/__snapshots__/EXPERIMENTAL_STUDIO_E2E_ONLY.ansi new file mode 100644 index 0000000000..a691b37ce2 --- /dev/null +++ b/packages/errors/test/__snapshots__/EXPERIMENTAL_STUDIO_E2E_ONLY.ansi @@ -0,0 +1,3 @@ +The experimentalStudio experiment is currently only supported for End to End Testing. + +If you have feedback about the experiment, please join the discussion here: http://on.cypress.io/studio-beta \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/EXTENSION_NOT_LOADED.ansi b/packages/errors/test/__snapshots__/EXTENSION_NOT_LOADED.ansi new file mode 100644 index 0000000000..9b3108cbac --- /dev/null +++ b/packages/errors/test/__snapshots__/EXTENSION_NOT_LOADED.ansi @@ -0,0 +1,3 @@ +Electron could not install the extension at path: /path/to/extension + +Please verify that this is the path to a valid, unpacked WebExtension. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/FIREFOX_CDP_FAILED_TO_CONNECT.ansi b/packages/errors/test/__snapshots__/FIREFOX_CDP_FAILED_TO_CONNECT.ansi new file mode 100644 index 0000000000..3bf466b5ca --- /dev/null +++ b/packages/errors/test/__snapshots__/FIREFOX_CDP_FAILED_TO_CONNECT.ansi @@ -0,0 +1 @@ +Failed to spawn CDP with Firefox. Retrying... \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/FIREFOX_COULD_NOT_CONNECT.ansi b/packages/errors/test/__snapshots__/FIREFOX_COULD_NOT_CONNECT.ansi new file mode 100644 index 0000000000..e7e2755594 --- /dev/null +++ b/packages/errors/test/__snapshots__/FIREFOX_COULD_NOT_CONNECT.ansi @@ -0,0 +1,7 @@ +Cypress failed to make a connection to Firefox. + +This usually indicates there was a problem opening the Firefox browser. + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at FIREFOX_COULD_NOT_CONNECT (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/FIREFOX_GECKODRIVER_FAILURE.ansi b/packages/errors/test/__snapshots__/FIREFOX_GECKODRIVER_FAILURE.ansi new file mode 100644 index 0000000000..b1e91a9a4b --- /dev/null +++ b/packages/errors/test/__snapshots__/FIREFOX_GECKODRIVER_FAILURE.ansi @@ -0,0 +1,9 @@ +Cypress could not connect to Firefox. + +An unexpected error was received from GeckoDriver: connection + +To avoid this error, ensure that there are no other instances of Firefox launched by Cypress running. + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at FIREFOX_GECKODRIVER_FAILURE (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/FIXTURE_NOT_FOUND.ansi b/packages/errors/test/__snapshots__/FIXTURE_NOT_FOUND.ansi new file mode 100644 index 0000000000..5a31b7e4ec --- /dev/null +++ b/packages/errors/test/__snapshots__/FIXTURE_NOT_FOUND.ansi @@ -0,0 +1,10 @@ +A fixture file could not be found at any of the following paths: + +  > file +  > file.[ext] + +Cypress looked for these file extensions at the provided path: + +  > js, ts, json + +Provide a path to an existing fixture file. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/FOLDER_NOT_WRITABLE.ansi b/packages/errors/test/__snapshots__/FOLDER_NOT_WRITABLE.ansi new file mode 100644 index 0000000000..7b44ed2baf --- /dev/null +++ b/packages/errors/test/__snapshots__/FOLDER_NOT_WRITABLE.ansi @@ -0,0 +1,7 @@ +This folder is not writable: /path/to/folder + +Writing to this directory is required by Cypress in order to store screenshots and videos. + +Enable write permissions to this directory to ensure screenshots and videos are stored. + +If you don't require screenshots or videos to be stored you can safely ignore this warning. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/FREE_PLAN_EXCEEDS_MONTHLY_TESTS.ansi b/packages/errors/test/__snapshots__/FREE_PLAN_EXCEEDS_MONTHLY_TESTS.ansi new file mode 100644 index 0000000000..78137d9b49 --- /dev/null +++ b/packages/errors/test/__snapshots__/FREE_PLAN_EXCEEDS_MONTHLY_TESTS.ansi @@ -0,0 +1,5 @@ +You've exceeded the limit of test results under your free plan this month. The limit is 500 test results. + +To continue recording tests this month you must upgrade your account. Please visit your billing to upgrade to another billing plan. + +https://on.cypress.io/set-up-billing \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/FREE_PLAN_IN_GRACE_PERIOD_EXCEEDS_MONTHLY_TESTS.ansi b/packages/errors/test/__snapshots__/FREE_PLAN_IN_GRACE_PERIOD_EXCEEDS_MONTHLY_TESTS.ansi new file mode 100644 index 0000000000..6ed441e7b5 --- /dev/null +++ b/packages/errors/test/__snapshots__/FREE_PLAN_IN_GRACE_PERIOD_EXCEEDS_MONTHLY_TESTS.ansi @@ -0,0 +1,7 @@ +You've exceeded the limit of test results under your free plan this month. The limit is 500 test results. + +Your plan is now in a grace period, which means you will have the full benefits of your current plan until Feb 1, 2022. + +Please visit your billing to upgrade your plan. + +https://on.cypress.io/set-up-billing \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/FREE_PLAN_IN_GRACE_PERIOD_PARALLEL_FEATURE.ansi b/packages/errors/test/__snapshots__/FREE_PLAN_IN_GRACE_PERIOD_PARALLEL_FEATURE.ansi new file mode 100644 index 0000000000..4e8a8a8fe2 --- /dev/null +++ b/packages/errors/test/__snapshots__/FREE_PLAN_IN_GRACE_PERIOD_PARALLEL_FEATURE.ansi @@ -0,0 +1,5 @@ +Parallelization is not included under your free plan. + +Your plan is now in a grace period, which means your tests will still run in parallel until Feb 1, 2022. Please upgrade your plan to continue running your tests in parallel in the future. + +https://on.cypress.io/set-up-billing \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/INCORRECT_CI_BUILD_ID_USAGE.ansi b/packages/errors/test/__snapshots__/INCORRECT_CI_BUILD_ID_USAGE.ansi new file mode 100644 index 0000000000..b052767c0f --- /dev/null +++ b/packages/errors/test/__snapshots__/INCORRECT_CI_BUILD_ID_USAGE.ansi @@ -0,0 +1,7 @@ +You passed the --ci-build-id flag but did not provide either a --group or --parallel flag. + +The --ci-build-id flag you passed was: ciBuildId123 + +The --ci-build-id flag is used to either group or parallelize multiple runs together. + +https://on.cypress.io/incorrect-ci-build-id-usage \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/INDETERMINATE_CI_BUILD_ID.ansi b/packages/errors/test/__snapshots__/INDETERMINATE_CI_BUILD_ID.ansi new file mode 100644 index 0000000000..f2e86f087d --- /dev/null +++ b/packages/errors/test/__snapshots__/INDETERMINATE_CI_BUILD_ID.ansi @@ -0,0 +1,36 @@ +You passed the --group or --parallel flag but we could not automatically determine or generate a ciBuildId. + +The --group flag you passed was: foo +The --parallel flag you passed was: false + +In order to use either of these features a ciBuildId must be determined. + +The ciBuildId is automatically detected if you are running Cypress in any of the these CI providers: + + - appveyor + - azure + - awsCodeBuild + - bamboo + - bitbucket + - buildkite + - circle + - codeshipBasic + - codeshipPro + - concourse + - codeFresh + - drone + - githubActions + - gitlab + - goCD + - googleCloud + - jenkins + - semaphore + - shippable + - teamfoundation + - travis + - netlify + - webappio + +Because the ciBuildId could not be auto-detected you must pass the --ci-build-id flag manually. + +https://on.cypress.io/indeterminate-ci-build-id \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/INJECT_DOCUMENT_DOMAIN_DEPRECATION.ansi b/packages/errors/test/__snapshots__/INJECT_DOCUMENT_DOMAIN_DEPRECATION.ansi new file mode 100644 index 0000000000..4a4de62ecc --- /dev/null +++ b/packages/errors/test/__snapshots__/INJECT_DOCUMENT_DOMAIN_DEPRECATION.ansi @@ -0,0 +1,4 @@ +The injectDocumentDomain option is deprecated. Interactions with intra-test navigations to differing hostnames must now be wrapped in cy.origin commands, even if the hostname is a subdomain. This configuration option will be removed in a future version of Cypress. + +Read the documentation for the injectDocumentDomain configuration option: https://on.cypress.io/inject-document-domain-configuration + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/INJECT_DOCUMENT_DOMAIN_E2E_ONLY.ansi b/packages/errors/test/__snapshots__/INJECT_DOCUMENT_DOMAIN_E2E_ONLY.ansi new file mode 100644 index 0000000000..a579fb7b76 --- /dev/null +++ b/packages/errors/test/__snapshots__/INJECT_DOCUMENT_DOMAIN_E2E_ONLY.ansi @@ -0,0 +1,4 @@ +The injectDocumentDomain option is only available for E2E testing. + +Read the documentation for the injectDocumentDomain configuration option: https://on.cypress.io/inject-document-domain-configuration + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/INVALID_CONFIG_OPTION - plural.ansi b/packages/errors/test/__snapshots__/INVALID_CONFIG_OPTION - plural.ansi new file mode 100644 index 0000000000..3ded2189d6 --- /dev/null +++ b/packages/errors/test/__snapshots__/INVALID_CONFIG_OPTION - plural.ansi @@ -0,0 +1,7 @@ +The following configuration options are invalid: + + - foo + - bar + +https://on.cypress.io/configuration + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/INVALID_CONFIG_OPTION.ansi b/packages/errors/test/__snapshots__/INVALID_CONFIG_OPTION.ansi new file mode 100644 index 0000000000..cdc772f6fe --- /dev/null +++ b/packages/errors/test/__snapshots__/INVALID_CONFIG_OPTION.ansi @@ -0,0 +1,6 @@ +The following configuration option is invalid: + + - foo + +https://on.cypress.io/configuration + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/INVALID_CYPRESS_INTERNAL_ENV.ansi b/packages/errors/test/__snapshots__/INVALID_CYPRESS_INTERNAL_ENV.ansi new file mode 100644 index 0000000000..97e4c3e17f --- /dev/null +++ b/packages/errors/test/__snapshots__/INVALID_CYPRESS_INTERNAL_ENV.ansi @@ -0,0 +1,3 @@ +We have detected an unknown or unsupported CYPRESS_INTERNAL_ENV value: foo + +CYPRESS_INTERNAL_ENV is reserved for internal use and cannot be modified. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/INVALID_REPORTER_NAME.ansi b/packages/errors/test/__snapshots__/INVALID_REPORTER_NAME.ansi new file mode 100644 index 0000000000..27a328f251 --- /dev/null +++ b/packages/errors/test/__snapshots__/INVALID_REPORTER_NAME.ansi @@ -0,0 +1,12 @@ +Error loading the reporter: missing-reporter-name + +We searched for the reporter in these paths: + + - /path/to/reporter + - /path/reporter + +Learn more at https://on.cypress.io/reporters + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at INVALID_REPORTER_NAME (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/INVOKED_BINARY_OUTSIDE_NPM_MODULE.ansi b/packages/errors/test/__snapshots__/INVOKED_BINARY_OUTSIDE_NPM_MODULE.ansi new file mode 100644 index 0000000000..e5a17b0370 --- /dev/null +++ b/packages/errors/test/__snapshots__/INVOKED_BINARY_OUTSIDE_NPM_MODULE.ansi @@ -0,0 +1,7 @@ +It looks like you are running the Cypress binary directly. + +This is not the recommended approach, and Cypress may not work correctly. + +Please install the cypress NPM package and follow the instructions here: + +https://on.cypress.io/installing-cypress \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/JIT_COMPONENT_TESTING.ansi b/packages/errors/test/__snapshots__/JIT_COMPONENT_TESTING.ansi new file mode 100644 index 0000000000..1dafc41579 --- /dev/null +++ b/packages/errors/test/__snapshots__/JIT_COMPONENT_TESTING.ansi @@ -0,0 +1 @@ +The justInTimeCompile configuration is only supported for Component Testing. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/MULTIPLE_SUPPORT_FILES_FOUND.ansi b/packages/errors/test/__snapshots__/MULTIPLE_SUPPORT_FILES_FOUND.ansi new file mode 100644 index 0000000000..e2d0f44c45 --- /dev/null +++ b/packages/errors/test/__snapshots__/MULTIPLE_SUPPORT_FILES_FOUND.ansi @@ -0,0 +1,10 @@ +There were multiple support files found matching your supportFile pattern. + +Your supportFile is set to: spec.{ts,js} + +We found the following files: + + - support.ts + - support.js + +Please remove or combine the support files into a single file. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/NO_DEFAULT_CONFIG_FILE_FOUND.ansi b/packages/errors/test/__snapshots__/NO_DEFAULT_CONFIG_FILE_FOUND.ansi new file mode 100644 index 0000000000..c3838cf19a --- /dev/null +++ b/packages/errors/test/__snapshots__/NO_DEFAULT_CONFIG_FILE_FOUND.ansi @@ -0,0 +1 @@ +Could not find a Cypress configuration file in this folder: /path/to/project/root \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/NO_PROJECT_FOUND_AT_PROJECT_ROOT.ansi b/packages/errors/test/__snapshots__/NO_PROJECT_FOUND_AT_PROJECT_ROOT.ansi new file mode 100644 index 0000000000..8a3ae83c40 --- /dev/null +++ b/packages/errors/test/__snapshots__/NO_PROJECT_FOUND_AT_PROJECT_ROOT.ansi @@ -0,0 +1 @@ +Can't find a project at the path: /path/to/project \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/NO_PROJECT_ID.ansi b/packages/errors/test/__snapshots__/NO_PROJECT_ID.ansi new file mode 100644 index 0000000000..1e3181c187 --- /dev/null +++ b/packages/errors/test/__snapshots__/NO_PROJECT_ID.ansi @@ -0,0 +1 @@ +Can't find projectId in the config file: /path/to/project/cypress.config.js \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/NO_SPECS_FOUND - arrPattern.ansi b/packages/errors/test/__snapshots__/NO_SPECS_FOUND - arrPattern.ansi new file mode 100644 index 0000000000..508aeb6a1b --- /dev/null +++ b/packages/errors/test/__snapshots__/NO_SPECS_FOUND - arrPattern.ansi @@ -0,0 +1,6 @@ +Can't run because no spec files were found. + +We searched for specs matching these glob patterns: + + > /path/to/project/root/**_spec.js + > /path/to/project/root/**/*.cy.* \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/NO_SPECS_FOUND - noPattern.ansi b/packages/errors/test/__snapshots__/NO_SPECS_FOUND - noPattern.ansi new file mode 100644 index 0000000000..256ae843bf --- /dev/null +++ b/packages/errors/test/__snapshots__/NO_SPECS_FOUND - noPattern.ansi @@ -0,0 +1,5 @@ +Can't run because no spec files were found. + +We searched for specs inside of this folder: + + > /path/to/project/root \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/NO_SPECS_FOUND - pathCommonPattern.ansi b/packages/errors/test/__snapshots__/NO_SPECS_FOUND - pathCommonPattern.ansi new file mode 100644 index 0000000000..6cf653b890 --- /dev/null +++ b/packages/errors/test/__snapshots__/NO_SPECS_FOUND - pathCommonPattern.ansi @@ -0,0 +1,6 @@ +Can't run because no spec files were found. + +We searched for specs matching these glob patterns: + + > /path/to/project/**_spec.js + > /path/to/project/**/*.cy.* \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/NO_SPECS_FOUND - pathNoCommonPattern.ansi b/packages/errors/test/__snapshots__/NO_SPECS_FOUND - pathNoCommonPattern.ansi new file mode 100644 index 0000000000..356bfab182 --- /dev/null +++ b/packages/errors/test/__snapshots__/NO_SPECS_FOUND - pathNoCommonPattern.ansi @@ -0,0 +1,5 @@ +Can't run because no spec files were found. + +We searched for specs matching this glob pattern: + + > /foo/*_spec.js \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/NO_SPECS_FOUND.ansi b/packages/errors/test/__snapshots__/NO_SPECS_FOUND.ansi new file mode 100644 index 0000000000..f0ee45e851 --- /dev/null +++ b/packages/errors/test/__snapshots__/NO_SPECS_FOUND.ansi @@ -0,0 +1,5 @@ +Can't run because no spec files were found. + +We searched for specs matching this glob pattern: + + > /path/to/project/root/**_spec.js \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/PARALLEL_FEATURE_NOT_AVAILABLE_IN_PLAN.ansi b/packages/errors/test/__snapshots__/PARALLEL_FEATURE_NOT_AVAILABLE_IN_PLAN.ansi new file mode 100644 index 0000000000..ab8ccc1f15 --- /dev/null +++ b/packages/errors/test/__snapshots__/PARALLEL_FEATURE_NOT_AVAILABLE_IN_PLAN.ansi @@ -0,0 +1,5 @@ +Parallelization is not included under your current billing plan. + +To run your tests in parallel, please visit your billing and upgrade to another plan with parallelization. + +https://on.cypress.io/set-up-billing \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/PLAN_EXCEEDS_MONTHLY_TESTS.ansi b/packages/errors/test/__snapshots__/PLAN_EXCEEDS_MONTHLY_TESTS.ansi new file mode 100644 index 0000000000..1064f604f2 --- /dev/null +++ b/packages/errors/test/__snapshots__/PLAN_EXCEEDS_MONTHLY_TESTS.ansi @@ -0,0 +1,5 @@ +You've exceeded the limit of test results under your Sprout billing plan this month. The limit is 25000 test results. + +To continue getting the full benefits of your current plan, please visit your billing to upgrade. + +https://on.cypress.io/set-up-billing \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/PLAN_IN_GRACE_PERIOD_RUN_GROUPING_FEATURE_USED.ansi b/packages/errors/test/__snapshots__/PLAN_IN_GRACE_PERIOD_RUN_GROUPING_FEATURE_USED.ansi new file mode 100644 index 0000000000..636edd07c5 --- /dev/null +++ b/packages/errors/test/__snapshots__/PLAN_IN_GRACE_PERIOD_RUN_GROUPING_FEATURE_USED.ansi @@ -0,0 +1,5 @@ +Grouping is not included under your free plan. + +Your plan is now in a grace period, which means your tests will still run with groups until Feb 1, 2022. Please upgrade your plan to continue running your tests with groups in the future. + +https://on.cypress.io/set-up-billing \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/PLUGINS_RUN_EVENT_ERROR.ansi b/packages/errors/test/__snapshots__/PLUGINS_RUN_EVENT_ERROR.ansi new file mode 100644 index 0000000000..c8ea8aed77 --- /dev/null +++ b/packages/errors/test/__snapshots__/PLUGINS_RUN_EVENT_ERROR.ansi @@ -0,0 +1,7 @@ +An error was thrown in your plugins file while executing the handler for the before:spec event. + +The error we received was: + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at PLUGINS_RUN_EVENT_ERROR (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/PORT_IN_USE_LONG.ansi b/packages/errors/test/__snapshots__/PORT_IN_USE_LONG.ansi new file mode 100644 index 0000000000..c87653fcee --- /dev/null +++ b/packages/errors/test/__snapshots__/PORT_IN_USE_LONG.ansi @@ -0,0 +1,3 @@ +Can't run project because port is currently in use: 2020 + +Assign a different port with the --port  argument or shut down the other running process. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/PORT_IN_USE_SHORT.ansi b/packages/errors/test/__snapshots__/PORT_IN_USE_SHORT.ansi new file mode 100644 index 0000000000..afc4847fdc --- /dev/null +++ b/packages/errors/test/__snapshots__/PORT_IN_USE_SHORT.ansi @@ -0,0 +1 @@ +Port 2020 is already in use. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.ansi b/packages/errors/test/__snapshots__/PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.ansi new file mode 100644 index 0000000000..c67765ee4f --- /dev/null +++ b/packages/errors/test/__snapshots__/PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.ansi @@ -0,0 +1,13 @@ +This project has been configured to record runs on our Cypress Cloud. + +It currently has the projectId: project-id-123 + +You also provided your Record Key, but you did not pass the --record flag. + +This run will not be recorded. + +If you meant to have this run recorded please additionally pass this flag: + + $ cypress run --record + +https://on.cypress.io/recording-project-runs \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/PROXY_ENCOUNTERED_INVALID_HEADER_NAME.ansi b/packages/errors/test/__snapshots__/PROXY_ENCOUNTERED_INVALID_HEADER_NAME.ansi new file mode 100644 index 0000000000..bdb55a5dca --- /dev/null +++ b/packages/errors/test/__snapshots__/PROXY_ENCOUNTERED_INVALID_HEADER_NAME.ansi @@ -0,0 +1,10 @@ +Warning: While proxying a GET request to http://localhost:8080, an HTTP header did not pass validation, and was removed. This header will not be present in the response received by the application under test. + +Invalid header name:  + +{ + "invalidHeaderName": "Value" +} + +Error: fail whale + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/PROXY_ENCOUNTERED_INVALID_HEADER_VALUE.ansi b/packages/errors/test/__snapshots__/PROXY_ENCOUNTERED_INVALID_HEADER_VALUE.ansi new file mode 100644 index 0000000000..0f1a86149f --- /dev/null +++ b/packages/errors/test/__snapshots__/PROXY_ENCOUNTERED_INVALID_HEADER_VALUE.ansi @@ -0,0 +1,10 @@ +Warning: While proxying a GET request to http://localhost:8080, an HTTP header value did not pass validation, and was removed. This header will not be present in the response received by the application under test. + +Invalid header value:  + +{ + "invalidHeaderValue": "Value" +} + +Error: fail whale + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/RECORDING_FROM_FORK_PR.ansi b/packages/errors/test/__snapshots__/RECORDING_FROM_FORK_PR.ansi new file mode 100644 index 0000000000..62669a909d --- /dev/null +++ b/packages/errors/test/__snapshots__/RECORDING_FROM_FORK_PR.ansi @@ -0,0 +1,7 @@ +Warning: It looks like you are trying to record this run from a forked PR. + +The Record Key is missing. Your CI provider is likely not passing private environment variables to builds from forks. + +These results will not be recorded. + +This error will not affect or change the exit code. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/RECORD_KEY_MISSING.ansi b/packages/errors/test/__snapshots__/RECORD_KEY_MISSING.ansi new file mode 100644 index 0000000000..4bc4895cb0 --- /dev/null +++ b/packages/errors/test/__snapshots__/RECORD_KEY_MISSING.ansi @@ -0,0 +1,9 @@ +You passed the --record flag but did not provide us your Record Key. + +You can pass us your Record Key like this: + + $ cypress run --record --key  + +You can also set the key as an environment variable with the name: CYPRESS_RECORD_KEY + +https://on.cypress.io/how-do-i-record-runs \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/RECORD_PARAMS_WITHOUT_RECORDING.ansi b/packages/errors/test/__snapshots__/RECORD_PARAMS_WITHOUT_RECORDING.ansi new file mode 100644 index 0000000000..ee8b728f57 --- /dev/null +++ b/packages/errors/test/__snapshots__/RECORD_PARAMS_WITHOUT_RECORDING.ansi @@ -0,0 +1,7 @@ +You passed the --ci-build-id, --group, --tag, --parallel, or --auto-cancel-after-failures flag without also passing the --record flag. + +The --parallel flag you passed was: true + +These flags can only be used when recording to Cypress Cloud. + +https://on.cypress.io/record-params-without-recording \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/RENAMED_CONFIG_OPTION.ansi b/packages/errors/test/__snapshots__/RENAMED_CONFIG_OPTION.ansi new file mode 100644 index 0000000000..20ead61a54 --- /dev/null +++ b/packages/errors/test/__snapshots__/RENAMED_CONFIG_OPTION.ansi @@ -0,0 +1,3 @@ +The oldName configuration option you have supplied has been renamed. + +Please rename oldName to newName \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/RENDERER_CRASHED.ansi b/packages/errors/test/__snapshots__/RENDERER_CRASHED.ansi new file mode 100644 index 0000000000..80ccfd1755 --- /dev/null +++ b/packages/errors/test/__snapshots__/RENDERER_CRASHED.ansi @@ -0,0 +1,14 @@ +We detected that the Electron Renderer process just crashed. + +We have failed the current spec but will continue running the next spec. + +This can happen for a number of different reasons. + +If you're running lots of tests on a memory intense application. + - Try increasing the CPU/memory on the machine you're running on. + - Try enabling experimentalMemoryManagement in your config file. + - Try lowering numTestsKeptInMemory in your config file during 'cypress open'. + +You can learn more here: + +https://on.cypress.io/renderer-process-crashed \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/RUN_GROUPING_FEATURE_NOT_AVAILABLE_IN_PLAN.ansi b/packages/errors/test/__snapshots__/RUN_GROUPING_FEATURE_NOT_AVAILABLE_IN_PLAN.ansi new file mode 100644 index 0000000000..1b4de257f3 --- /dev/null +++ b/packages/errors/test/__snapshots__/RUN_GROUPING_FEATURE_NOT_AVAILABLE_IN_PLAN.ansi @@ -0,0 +1,5 @@ +Grouping is not included under your current billing plan. + +To run your tests with groups, please visit your billing and upgrade to another plan with grouping. + +https://on.cypress.io/set-up-billing \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_INVALID_EVENT_NAME_ERROR.ansi b/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_INVALID_EVENT_NAME_ERROR.ansi new file mode 100644 index 0000000000..7eacfff422 --- /dev/null +++ b/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_INVALID_EVENT_NAME_ERROR.ansi @@ -0,0 +1,17 @@ +Your configFile threw a validation error from: /path/to/cypress.config.js + +You must pass a valid event name when registering a plugin. + +You passed: invalid:event + +The following are valid events: + + - foo + - bar + - baz + +Learn more at https://on.cypress.io/writing-a-plugin#config + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at SETUP_NODE_EVENTS_INVALID_EVENT_NAME_ERROR (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - array.ansi b/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - array.ansi new file mode 100644 index 0000000000..6299572e1e --- /dev/null +++ b/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - array.ansi @@ -0,0 +1,21 @@ +Your configFile is invalid: /path/to/cypress.config.js + +The component.setupNodeEvents() function must be defined with the following signature: + +{ + component: { + setupNodeEvents(on, config) { + // configure tasks and plugins here + } + } +} + +Instead we saw: + +[ + "some", + "array" +] + +https://on.cypress.io/plugins-api + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - string.ansi b/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - string.ansi new file mode 100644 index 0000000000..cbec611165 --- /dev/null +++ b/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - string.ansi @@ -0,0 +1,18 @@ +Your configFile is invalid: /path/to/cypress.config.js + +The component.setupNodeEvents() function must be defined with the following signature: + +{ + component: { + setupNodeEvents(on, config) { + // configure tasks and plugins here + } + } +} + +Instead we saw: + +"some string" + +https://on.cypress.io/plugins-api + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION.ansi b/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION.ansi new file mode 100644 index 0000000000..e2da56fd7d --- /dev/null +++ b/packages/errors/test/__snapshots__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION.ansi @@ -0,0 +1,20 @@ +Your configFile is invalid: /path/to/cypress.config.js + +The e2e.setupNodeEvents() function must be defined with the following signature: + +{ + e2e: { + setupNodeEvents(on, config) { + // configure tasks and plugins here + } + } +} + +Instead we saw: + +{ + "some": "object" +} + +https://on.cypress.io/plugins-api + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/SUPPORT_FILE_NOT_FOUND.ansi b/packages/errors/test/__snapshots__/SUPPORT_FILE_NOT_FOUND.ansi new file mode 100644 index 0000000000..58b6c7b383 --- /dev/null +++ b/packages/errors/test/__snapshots__/SUPPORT_FILE_NOT_FOUND.ansi @@ -0,0 +1,9 @@ +Your supportFile is missing or invalid: /path/to/supportFile + +The supportFile must be a .js, .ts, .coffee file or be supported by your preprocessor plugin (if configured). + +Fix your support file, or set supportFile to false if a support file is not necessary for your project. + +If you have just renamed the extension of your supportFile, restart Cypress. + +https://on.cypress.io/support-file-missing-or-invalid \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/TESTING_TYPE_NOT_CONFIGURED.ansi b/packages/errors/test/__snapshots__/TESTING_TYPE_NOT_CONFIGURED.ansi new file mode 100644 index 0000000000..6074e8860a --- /dev/null +++ b/packages/errors/test/__snapshots__/TESTING_TYPE_NOT_CONFIGURED.ansi @@ -0,0 +1,6 @@ +The testing type selected (component) is not configured in your config file. + +Please run ‘cypress open’ and choose your testing type to automatically update your configuration file. + +https://on.cypress.io/configuration + \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/TESTS_DID_NOT_START_FAILED.ansi b/packages/errors/test/__snapshots__/TESTS_DID_NOT_START_FAILED.ansi new file mode 100644 index 0000000000..eb16504025 --- /dev/null +++ b/packages/errors/test/__snapshots__/TESTS_DID_NOT_START_FAILED.ansi @@ -0,0 +1 @@ +The browser never connected. Something is wrong. The tests cannot run. Aborting... \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/TESTS_DID_NOT_START_RETRYING - retryingAgain.ansi b/packages/errors/test/__snapshots__/TESTS_DID_NOT_START_RETRYING - retryingAgain.ansi new file mode 100644 index 0000000000..bccd423a6a --- /dev/null +++ b/packages/errors/test/__snapshots__/TESTS_DID_NOT_START_RETRYING - retryingAgain.ansi @@ -0,0 +1 @@ +Timed out waiting for the browser to connect. Retrying again... \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/TESTS_DID_NOT_START_RETRYING.ansi b/packages/errors/test/__snapshots__/TESTS_DID_NOT_START_RETRYING.ansi new file mode 100644 index 0000000000..4425bb833d --- /dev/null +++ b/packages/errors/test/__snapshots__/TESTS_DID_NOT_START_RETRYING.ansi @@ -0,0 +1 @@ +Timed out waiting for the browser to connect. Retrying... \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/UNEXPECTED_BEFORE_BROWSER_LAUNCH_PROPERTIES.ansi b/packages/errors/test/__snapshots__/UNEXPECTED_BEFORE_BROWSER_LAUNCH_PROPERTIES.ansi new file mode 100644 index 0000000000..b67f20d981 --- /dev/null +++ b/packages/errors/test/__snapshots__/UNEXPECTED_BEFORE_BROWSER_LAUNCH_PROPERTIES.ansi @@ -0,0 +1,11 @@ +The launchOptions object returned by your plugin's before:browser:launch handler contained unexpected properties: + + - baz + +launchOptions may only contain the properties: + + - preferences + - extensions + - args + +https://on.cypress.io/browser-launch-api \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/UNEXPECTED_INTERNAL_ERROR.ansi b/packages/errors/test/__snapshots__/UNEXPECTED_INTERNAL_ERROR.ansi new file mode 100644 index 0000000000..5dec388ed8 --- /dev/null +++ b/packages/errors/test/__snapshots__/UNEXPECTED_INTERNAL_ERROR.ansi @@ -0,0 +1,7 @@ +We encountered an unexpected internal error. + +Please check GitHub or open a new issue if you don't see one already with the details below: + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at UNEXPECTED_INTERNAL_ERROR (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/UNEXPECTED_MUTATION_ERROR.ansi b/packages/errors/test/__snapshots__/UNEXPECTED_MUTATION_ERROR.ansi new file mode 100644 index 0000000000..04e310b69c --- /dev/null +++ b/packages/errors/test/__snapshots__/UNEXPECTED_MUTATION_ERROR.ansi @@ -0,0 +1,7 @@ +An unexpected internal error occurred while executing the wizardUpdate operation with payload: + +{} + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at UNEXPECTED_MUTATION_ERROR (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/UNSUPPORTED_BROWSER_VERSION.ansi b/packages/errors/test/__snapshots__/UNSUPPORTED_BROWSER_VERSION.ansi new file mode 100644 index 0000000000..35105d9af9 --- /dev/null +++ b/packages/errors/test/__snapshots__/UNSUPPORTED_BROWSER_VERSION.ansi @@ -0,0 +1 @@ +Cypress does not support running chrome version 64. To use chrome with Cypress, install a version of chrome newer than or equal to 64. \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/VIDEO_CAPTURE_FAILED.ansi b/packages/errors/test/__snapshots__/VIDEO_CAPTURE_FAILED.ansi new file mode 100644 index 0000000000..ca56be922d --- /dev/null +++ b/packages/errors/test/__snapshots__/VIDEO_CAPTURE_FAILED.ansi @@ -0,0 +1,7 @@ +Warning: We failed capturing this video. + +This error will not affect or change the exit code. + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at VIDEO_CAPTURE_FAILED (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/VIDEO_COMPRESSION_FAILED.ansi b/packages/errors/test/__snapshots__/VIDEO_COMPRESSION_FAILED.ansi new file mode 100644 index 0000000000..4e4f8cceb9 --- /dev/null +++ b/packages/errors/test/__snapshots__/VIDEO_COMPRESSION_FAILED.ansi @@ -0,0 +1,7 @@ +Warning: We failed compressing this video. + +This error will not affect or change the exit code. + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at VIDEO_COMPRESSION_FAILED (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/VIDEO_RECORDING_FAILED.ansi b/packages/errors/test/__snapshots__/VIDEO_RECORDING_FAILED.ansi new file mode 100644 index 0000000000..b2e59ea3be --- /dev/null +++ b/packages/errors/test/__snapshots__/VIDEO_RECORDING_FAILED.ansi @@ -0,0 +1,7 @@ +Warning: We failed to record the video. + +This error will not affect or change the exit code. + +Error: fail whale + at makeErr (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) + at VIDEO_RECORDING_FAILED (cypress/packages/errors/test/visualSnapshotErrors.spec.ts) \ No newline at end of file diff --git a/packages/errors/test/__snapshots__/VIDEO_UPLOAD_ON_PASSES_REMOVED.ansi b/packages/errors/test/__snapshots__/VIDEO_UPLOAD_ON_PASSES_REMOVED.ansi new file mode 100644 index 0000000000..c307de8173 --- /dev/null +++ b/packages/errors/test/__snapshots__/VIDEO_UPLOAD_ON_PASSES_REMOVED.ansi @@ -0,0 +1,5 @@ +The videoUploadOnPasses configuration option was removed in Cypress version 13.0.0. + +You can safely remove this option from your config. + +https://on.cypress.io/migration-guide \ No newline at end of file diff --git a/packages/errors/test/unit/errTemplate_spec.ts b/packages/errors/test/errTemplate.spec.ts similarity index 64% rename from packages/errors/test/unit/errTemplate_spec.ts rename to packages/errors/test/errTemplate.spec.ts index df39b358e4..63813bd74c 100644 --- a/packages/errors/test/unit/errTemplate_spec.ts +++ b/packages/errors/test/errTemplate.spec.ts @@ -1,28 +1,28 @@ -import { expect } from 'chai' +import { describe, it, expect } from 'vitest' import chalk from 'chalk' -import { errTemplate, fmt, theme } from '../../src/errTemplate' -import { stripIndent } from '../../src/stripIndent' +import { errTemplate, fmt, theme } from '../src/errTemplate' +import { stripIndent } from '../src/stripIndent' describe('errTemplate', () => { it('returns an object w/ basic props & forBrowser', () => { const obj = errTemplate`Hello world` - expect(obj).to.include({ message: 'Hello world' }) - expect(obj).to.include({ messageMarkdown: 'Hello world' }) + expect(obj).toMatchObject({ message: 'Hello world' }) + expect(obj).toMatchObject({ messageMarkdown: 'Hello world' }) }) it('colors yellow by default for the console, backticks passed arguments for the browser,', () => { const obj = errTemplate`Hello world ${fmt.highlight('special')}` - expect(obj).to.include({ message: `Hello world ${chalk.yellow('special')}` }) - expect(obj).to.include({ messageMarkdown: 'Hello world `special`' }) + expect(obj).toMatchObject({ message: `Hello world ${chalk.yellow('special')}` }) + expect(obj).toMatchObject({ messageMarkdown: 'Hello world `special`' }) }) it('uses fmt.off to guard passed values', () => { const obj = errTemplate`Hello world ${fmt.off('special')}` - expect(obj).to.include({ message: `Hello world special` }) - expect(obj).to.include({ messageMarkdown: `Hello world special` }) + expect(obj).toMatchObject({ message: `Hello world special` }) + expect(obj).toMatchObject({ messageMarkdown: `Hello world special` }) }) it('will stringify non scalar values', () => { @@ -32,7 +32,7 @@ describe('errTemplate', () => { ${fmt.highlightTertiary(someObj)}` - expect(obj).to.include({ + expect(obj).toMatchObject({ messageMarkdown: stripIndent` This was returned from the app: @@ -41,7 +41,7 @@ describe('errTemplate', () => { \`\`\``, }) - expect(obj).to.include({ + expect(obj).toMatchObject({ message: stripIndent` This was returned from the app: @@ -57,8 +57,8 @@ describe('errTemplate', () => { ${fmt.stackTrace(err)}` - expect(obj).to.include({ messageMarkdown: `This was an error in \`specFile.js\`` }) - expect(obj).to.include({ + expect(obj).toMatchObject({ messageMarkdown: `This was an error in \`specFile.js\`` }) + expect(obj).toMatchObject({ message: `This was an error in ${chalk.yellow(specFile)}`, details: err.stack ?? '', }) @@ -73,6 +73,6 @@ describe('errTemplate', () => { ${fmt.stackTrace(new Error())} ` - }).to.throw(/Cannot use fmt.stackTrace\(\) multiple times in the same errTemplate/) + }).toThrow(/Cannot use fmt.stackTrace\(\) multiple times in the same errTemplate/) }) }) diff --git a/packages/errors/test/unit/errors_spec.ts b/packages/errors/test/errors.spec.ts similarity index 53% rename from packages/errors/test/unit/errors_spec.ts rename to packages/errors/test/errors.spec.ts index 2fa5fc56ef..cbc251ebea 100644 --- a/packages/errors/test/unit/errors_spec.ts +++ b/packages/errors/test/errors.spec.ts @@ -1,35 +1,43 @@ -import 'sinon-chai' +import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest' import style from 'ansi-styles' -import chai, { expect } from 'chai' -/* eslint-disable no-console */ import chalk from 'chalk' import sinon, { SinonSpy } from 'sinon' -import * as errors from '../../src' -import { parseResolvedPattern } from '../../src/errorUtils' - -chai.use(require('@cypress/sinon-chai')) +import * as errors from '../src' +import { parseResolvedPattern } from '../src/errorUtils' describe('lib/errors', () => { + let consoleErrorSpy: ReturnType + let previousChalkLevel: 0 | 1 | 2 | 3 + beforeEach(() => { - sinon.restore() - sinon.spy(console, 'log') + vi.resetAllMocks() + vi.unstubAllEnvs() + // turns chalk on + previousChalkLevel = chalk.level + chalk.level = 3 + // Mock console.log at the module boundary + consoleErrorSpy = vi.spyOn(console, 'log') }) - context('.log', () => { + afterEach(() => { + chalk.level = previousChalkLevel + }) + + describe('.log', () => { it('uses red by default', () => { const err = errors.get('TESTS_DID_NOT_START_FAILED') const ret = errors.log(err) - expect(ret).to.be.undefined + expect(ret).toBeUndefined() const { red, } = style - expect(console.log).to.be.calledWithMatch(red.open) + expect(consoleErrorSpy).toHaveBeenCalledWith(expect.stringContaining(red.open)) - expect(console.log).to.be.calledWithMatch(red.close) + expect(consoleErrorSpy).toHaveBeenCalledWith(expect.stringContaining(red.close)) }) it('can change the color', () => { @@ -37,15 +45,15 @@ describe('lib/errors', () => { const ret = errors.log(err, 'yellow') - expect(ret).to.be.undefined + expect(ret).toBeUndefined() const { yellow, } = style - expect(console.log).to.be.calledWithMatch(yellow.open) + expect(consoleErrorSpy).toHaveBeenCalledWith(expect.stringContaining(yellow.open)) - expect(console.log).to.be.calledWithMatch(yellow.close) + expect(consoleErrorSpy).toHaveBeenCalledWith(expect.stringContaining(yellow.close)) }) it('logs err.message', () => { @@ -53,9 +61,9 @@ describe('lib/errors', () => { const ret = errors.log(err) - expect(ret).to.be.undefined + expect(ret).toBeUndefined() - expect(console.log).to.be.calledWithMatch('/path/to/project/cypress.config.js') + expect(consoleErrorSpy).toHaveBeenCalledWith(expect.stringContaining('/path/to/project/cypress.config.js')) }) it('logs err.details', () => { @@ -65,11 +73,11 @@ describe('lib/errors', () => { const ret = errors.log(err) - expect(ret).to.be.undefined + expect(ret).toBeUndefined() - expect(console.log).to.be.calledWithMatch('foo/bar/baz') + expect(consoleErrorSpy).toHaveBeenCalledWith(expect.stringContaining('foo/bar/baz')) - expect(console.log).to.be.calledWithMatch(chalk.magenta(userError.stack ?? '')) + expect(consoleErrorSpy).toHaveBeenCalledWith(expect.stringContaining(chalk.magenta(userError.stack ?? ''))) }) describe('err.stack', () => { @@ -78,9 +86,9 @@ describe('lib/errors', () => { const ret = errors.log(err) - expect(ret).to.eq(err) + expect(ret).toEqual(err) - expect(console.log).to.be.calledWith(chalk.red(err.stack ?? '')) + expect(consoleErrorSpy).toHaveBeenCalledWith(chalk.red(err.stack ?? '')) }) it('is not logged if a known Cypress error', () => { @@ -90,13 +98,13 @@ describe('lib/errors', () => { const ret = errors.log(err) - expect(ret).to.be.undefined + expect(ret).toBeUndefined() - expect(console.log).not.to.be.calledWith(chalk.red(err.stack ?? '')) + expect(consoleErrorSpy).not.toHaveBeenCalledWith(chalk.red(err.stack ?? '')) }) }) - context('err.cause', () => { + describe('err.cause', () => { let err beforeEach(() => { @@ -109,44 +117,44 @@ describe('lib/errors', () => { const ret = errors.log(err) - expect(ret).to.be.undefined + expect(ret).toBeUndefined() - expect(console.log).not.to.be.calledWith(chalk.red('Caused by:')) + expect(consoleErrorSpy).not.toHaveBeenCalledWith(chalk.red('Caused by:')) }) it('is not logged if max cause depth === 0', () => { const ret = errors.log(err, 'red', 0) - expect(ret).to.eq(ret) + expect(ret).toEqual(ret) - expect(console.log).not.to.be.calledWith(chalk.red('Caused by:')) + expect(consoleErrorSpy).not.toHaveBeenCalledWith(chalk.red('Caused by:')) }) it('is logged to a specified max depth', () => { const ret = errors.log(err, 'red', 5) - expect(ret).to.eq(err) + expect(ret).toEqual(err) - const causeLogs = (console.log as SinonSpy).getCalls().filter((call) => call.args[0] === chalk.red('Caused by:')) + const consoleErrorSpyCalls = consoleErrorSpy.mock.calls.filter((call) => call[0] === chalk.red('Caused by:')) - expect(causeLogs).to.have.length(5) + expect(consoleErrorSpyCalls).toHaveLength(5) }) }) }) - context('.clone', () => { + describe('.clone', () => { it('converts err.message from ansi to html with span classes when html true', () => { const err = new Error(`foo${chalk.blue('bar')}${chalk.yellow('baz')}`) const obj = errors.cloneErr(err, { html: true }) - expect(obj.message).to.eq('foobarbaz') + expect(obj.message).toEqual('foobarbaz') }) it('does not convert err.message from ansi to html when no html option', () => { const err = new Error(`foo${chalk.blue('bar')}${chalk.yellow('baz')}`) const obj = errors.cloneErr(err) - expect(obj.message).to.eq('foo\u001b[34mbar\u001b[39m\u001b[33mbaz\u001b[39m') + expect(obj.message).toEqual('foo\u001b[34mbar\u001b[39m\u001b[33mbaz\u001b[39m') }) }) @@ -158,8 +166,8 @@ describe('lib/errors', () => { const [resolvedBasePath, resolvedPattern] = parseResolvedPattern(folderPath, pattern) - expect(resolvedBasePath).to.eq('/dev/cypress/packages/server') - expect(resolvedPattern).to.eq('cypress/integration/**notfound**') + expect(resolvedBasePath).toEqual('/dev/cypress/packages/server') + expect(resolvedPattern).toEqual('cypress/integration/**notfound**') }) it('splits common paths factoring in ../', () => { @@ -167,8 +175,8 @@ describe('lib/errors', () => { const [resolvedBasePath, resolvedPattern] = parseResolvedPattern(folderPath, pattern) - expect(resolvedBasePath).to.eq('/dev/cypress') - expect(resolvedPattern).to.eq('integration/**notfound**') + expect(resolvedBasePath).toEqual('/dev/cypress') + expect(resolvedPattern).toEqual('integration/**notfound**') }) it('splits common paths until falsy instead of doing an intersection', () => { @@ -176,8 +184,8 @@ describe('lib/errors', () => { const [resolvedBasePath, resolvedPattern] = parseResolvedPattern(folderPath, pattern) - expect(resolvedBasePath).to.eq('') - expect(resolvedPattern).to.eq('/private/var/cypress/integration/cypress/integration/**notfound**') + expect(resolvedBasePath).toEqual('') + expect(resolvedPattern).toEqual('/private/var/cypress/integration/cypress/integration/**notfound**') }) it('splits common paths up directories until root is reached', () => { @@ -185,8 +193,8 @@ describe('lib/errors', () => { const [resolvedBasePath, resolvedPattern] = parseResolvedPattern(folderPath, pattern) - expect(resolvedBasePath).to.eq('') - expect(resolvedPattern).to.eq('/cypress/integration/**notfound**') + expect(resolvedBasePath).toEqual('') + expect(resolvedPattern).toEqual('/cypress/integration/**notfound**') }) }) }) diff --git a/packages/errors/test/unit/stripIndent_spec.ts b/packages/errors/test/stripIndent.spec.ts similarity index 80% rename from packages/errors/test/unit/stripIndent_spec.ts rename to packages/errors/test/stripIndent.spec.ts index bcc720de0c..9ba85ec479 100644 --- a/packages/errors/test/unit/stripIndent_spec.ts +++ b/packages/errors/test/stripIndent.spec.ts @@ -1,5 +1,5 @@ -import { expect } from 'chai' -import { stripIndent } from '../../src/stripIndent' +import { describe, it, expect } from 'vitest' +import { stripIndent } from '../src/stripIndent' describe('src/stripIndent', () => { it('does not trip right end', () => { @@ -9,7 +9,7 @@ describe('src/stripIndent', () => { [Stack Trace] ` - expect(str).to.eq(` + expect(str).toEqual(` There was an error reconnecting to the Chrome DevTools protocol. Please restart the browser. [Stack Trace] @@ -28,7 +28,7 @@ There was an error reconnecting to the Chrome DevTools protocol. Please restart ${arg}` - expect(str).to.eq(` + expect(str).toEqual(` Something went wrong. - a diff --git a/packages/errors/test/support/error-comparison-tool.ts b/packages/errors/test/support/error-comparison-tool.ts deleted file mode 100644 index dbd2750936..0000000000 --- a/packages/errors/test/support/error-comparison-tool.ts +++ /dev/null @@ -1,223 +0,0 @@ -/* eslint-disable no-console */ -import express from 'express' -import fs from 'fs-extra' -import globby from 'globby' -import Markdown from 'markdown-it' -import path from 'path' -import { WIDTH } from './utils' - -const ERRORS_DIR = path.join(__dirname, '..', '..') -const SNAPSHOT_HTML = path.join(ERRORS_DIR, '__snapshot-html__') -const SNAPSHOT_HTML_LOCAL = path.join(ERRORS_DIR, '__snapshot-html-local__') -const SNAPSHOT_MARKDOWN = path.join(ERRORS_DIR, '__snapshot-md__') - -const app = express() - -const LINKS = `
Ansi Compare | Ansi Base List | Markdown |
` - -const SEARCH_HANDLER = ` - -` - -const getFiles = async (baseDir: string, spec?: string) => { - const pattern = spec ? `${spec}*` : '**/*' - - return (await globby(`${baseDir}/${pattern}`)) -} - -async function getRows (offset = 0, baseList: boolean = false, spec?: string) { - const baseDir = baseList ? SNAPSHOT_HTML : SNAPSHOT_HTML_LOCAL - const toCompare = await getFiles(baseDir, spec) - - const rows = toCompare.filter((f) => f.endsWith('.html')).sort().slice(offset, offset + 10).map((f) => path.basename(f).split('.')[0]).map((name) => { - const width = baseList ? WIDTH : 550 - // const height = baseList ? HEIGHT : 600 - const height = 400 - - return ` - - ${name} - - ${baseList ? '' : ` - - - `} - ` - }) - - if (toCompare.length > offset + 10) { - rows.push(``) - } - - return rows.join('\n') -} - -app.get('/', async (req, res) => { - try { - const rows = await getRows() - - res.type('html').send(` - - - ${LINKS} - - - - - - ${rows} - -
TableOriginalNew
- `) - } catch (e) { - res.json({ errStack: e.stack }) - } -}) - -app.get('/base-list', async (req, res) => { - const spec = req.query.spec as string - - try { - const rows = await getRows(0, true, spec) - - res.type('html').send(` - - - ${LINKS} - ${SEARCH_HANDLER} - - - - - - ${rows} - -
TableOriginal
- `) - } catch (e) { - res.json({ errStack: e.stack }) - } -}) - -app.get<{ offset: number }>('/load-more/:offset', async (req, res) => { - const rows = await getRows(req.params.offset) - - res.send(rows) -}) - -app.get<{ offset: number }>('/load-more-base/:offset', async (req, res) => { - const rows = await getRows(req.params.offset, true) - - res.send(rows) -}) - -app.get('/looks-good/:name', async (req, res) => { - try { - await fs.move( - path.join(SNAPSHOT_HTML_LOCAL, `${req.params.name}.html`), - path.join(SNAPSHOT_HTML, `${req.params.name}.html`), - { overwrite: true }, - ) - - res.json({ ok: true }) - } catch (e) { - res.status(400).json({ stack: e.stack }) - } -}) - -app.get<{ name: string, type: string }>('/html/:name/:type', async (req, res) => { - const pathToFile = path.join(ERRORS_DIR, req.params.type, `${req.params.name}.html`) - - try { - const contents = await fs.readFile(pathToFile, 'utf8') - - res.type('html').send(contents.replace(/\/g, '').replace('overflow: hidden;', '')) - } catch (e) { - res.json({ errStack: e }) - } -}) - -app.get('/md', async (req, res) => { - const spec = req.query.spec as string - - try { - const toRender = (await getFiles(SNAPSHOT_MARKDOWN, spec)).filter((f) => f.endsWith('.md')).sort() - const markdownContents = await Promise.all(toRender.map((f) => fs.readFile(f, 'utf8'))) - const md = new Markdown({ - html: true, - linkify: true, - }) - - res.type('html').send(` - - ${LINKS} - ${SEARCH_HANDLER} - -
- ${toRender.map((r, i) => { - return `
-
${path.basename(r).split('.')[0]}
-
-
${md.render(markdownContents[i] ?? '')}
-
${markdownContents[i] ?? ''}
-
-
` - }).join('\n')} -
- `) - } catch (e) { - res.json({ stack: e.stack }) - } -}) - -app.listen(5555, () => { - console.log(`Comparison server listening on: http://localhost:5555`) -}) diff --git a/packages/errors/test/support/utils.ts b/packages/errors/test/support/utils.ts deleted file mode 100644 index b5f3ae939c..0000000000 --- a/packages/errors/test/support/utils.ts +++ /dev/null @@ -1,95 +0,0 @@ -import Debug from 'debug' -import { app, BrowserWindow } from 'electron' -import fse from 'fs-extra' -import path from 'path' -import { PNG } from 'pngjs' - -const isCi = require('ci-info').isCI - -if (app) { - app.on('window-all-closed', () => { - }) -} - -export const HEIGHT = 600 - -export const WIDTH = 1200 - -const EXT = '.png' -const debug = Debug(isCi ? '*' : 'visualSnapshotErrors') - -export const copyImageToBase = (from: string, to: string) => { - return fse.copy(from, to, { overwrite: true }) -} - -export const convertHtmlToImage = async (htmlFile: string, snapshotImagesFolder: string) => { - const win = new BrowserWindow({ - show: false, - width: WIDTH, - height: HEIGHT, - }) - - try { - await app.isReady() - - win.webContents.debugger.attach() - - debug(`Loading %s`, htmlFile) - - await win.loadFile(htmlFile) - - await win.webContents.debugger.sendCommand('Emulation.setDeviceMetricsOverride', { - width: WIDTH, - height: HEIGHT, - deviceScaleFactor: 1, - mobile: false, - }) - - const { data } = await win.webContents.debugger.sendCommand('Page.captureScreenshot', { - format: 'png', - quality: 100, - }) - - const imagePath = htmlFile.replace('.html', EXT) - const snapshotImagePath = path.join(snapshotImagesFolder, path.basename(imagePath)) - - debug('snapshotImagePath %s', snapshotImagePath) - - const receivedImageBuffer = Buffer.from(data, 'base64') - const receivedPng = PNG.sync.read(receivedImageBuffer) - const receivedPngBuffer = PNG.sync.write(receivedPng) - - await fse.outputFile(snapshotImagePath, receivedPngBuffer) - - // - if image does not exist in __snapshot-bases__ - // then copy into __snapshot-bases__ - // - if image does exist then diff if, and if its - // greater than >.01 diff, then copy it in - // - unless we're in CI, then fail if there's a diff - // try { - // const buf = await fse.readFile(snapshotImagePath) - // const existingPng = PNG.sync.read(buf) - // const diffPng = new PNG({ width: WIDTH, height: HEIGHT }) - // const changed = pixelmatch(existingPng.data, receivedPng.data, diffPng.data, WIDTH, HEIGHT, { threshold: 0.3 }) - - // debug('num pixels different: %s', changed) - - // if (changed > 100) { - // if (isCi) { - // throw new Error(`Image difference detected. Base error image no longer matches for file: ${snapshotImagePath}, off by ${changed} pixels`) - // } - - // await copyImageToBase(imagePath, snapshotImagePath) - // } - // } catch (e: any) { - // if (e.code === 'ENOENT') { - // debug(`Adding new image: ${imagePath}`) - // await copyImageToBase(imagePath, snapshotImagePath) - // } else { - // throw e - // } - // } - } finally { - win.destroy() - } -} diff --git a/packages/errors/test/unit/visualSnapshotErrors_spec.ts b/packages/errors/test/visualSnapshotErrors.spec.ts similarity index 75% rename from packages/errors/test/unit/visualSnapshotErrors_spec.ts rename to packages/errors/test/visualSnapshotErrors.spec.ts index 1856498339..c327de0288 100644 --- a/packages/errors/test/unit/visualSnapshotErrors_spec.ts +++ b/packages/errors/test/visualSnapshotErrors.spec.ts @@ -1,43 +1,15 @@ -/* eslint-disable no-console */ -import chai, { expect } from 'chai' -import Debug from 'debug' -import fse from 'fs-extra' -import globby from 'globby' +import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest' + +import chalk from 'chalk' import _ from 'lodash' import path from 'path' -import sinon, { SinonSpy } from 'sinon' -import * as errors from '../../src' -import { convertHtmlToImage } from '../support/utils' +import * as errors from '../src' import os from 'os' -// For importing the files below -process.env.CYPRESS_INTERNAL_ENV = 'test' - -// require'd so the unsafe types from the server / missing types don't mix in here -const termToHtml = require('term-to-html') -const isCi = require('ci-info').isCI -const { terminalBanner } = require('terminal-banner') -const ciProvider = require('@packages/server/lib/util/ci_provider') -const browsers = require('@packages/server/lib/browsers') -const { knownBrowsers } = require('@packages/launcher/lib/known-browsers') - -const debug = Debug(isCi ? '*' : 'visualSnapshotErrors') - -let snapshotFailures = 0 - -after(() => { - if (snapshotFailures > 0) { - console.log(` - ================================= - - Snapshot failures see for visualSnapshotErrors. - - Run "yarn comparison" locally from the @packages/error package to resolve - - ================================= - `) - } -}) +// these packages need process.env.CYPRESS_INTERNAL_ENV to be set to 'test' to work, which is set in the global vitest config +import ciProvider from '@packages/server/lib/util/ci_provider' +import browsers from '@packages/server/lib/browsers' +import { knownBrowsers } from '@packages/launcher/lib/known-browsers' interface ErrorGenerator { default: Parameters @@ -46,24 +18,9 @@ interface ErrorGenerator { type CypressErrorType = keyof typeof errors.AllCypressErrors -chai.config.truncateThreshold = 0 -chai.use(require('@cypress/sinon-chai')) - -termToHtml.themes.dark.bg = '#111' - +const cypressRootPath = path.join(__dirname, '..', '..', '..') const lineAndColNumsRe = /:\d+:\d+/ -const snapshotHtmlFolder = path.join(__dirname, '..', '..', '__snapshot-html__') -const snapshotHtmlLocalFolder = path.join(__dirname, '..', '..', '__snapshot-html-local__') -const snapshotMarkdownFolder = path.join(__dirname, '..', '..', '__snapshot-md__') -const snapshotImagesFolder = path.join(__dirname, '..', '..', '__snapshot-images__') - -const saveHtml = async (filename: string, html: string) => { - await fse.outputFile(filename, html, 'utf8') -} - -const cypressRootPath = path.join(__dirname, '..', '..', '..', '..') - const sanitize = (str: string) => { return str .split(lineAndColNumsRe).join('') @@ -71,213 +28,6 @@ const sanitize = (str: string) => { .split(os.tmpdir()).join('/os/tmpdir') } -const snapshotAndTestErrorConsole = async function (errorFileName: string) { - const logs = _ - .chain(consoleLog.args) - .map((args) => args.map(sanitize).join(' ')) - .join('\n') - .value() - - // if the sanitized snapshot matches, let's save the ANSI colors converted into HTML - const html = termToHtml - .strings(logs, termToHtml.themes.dark.name) - .split('color:#55F').join('color:#4ec4ff') // replace blueBright colors - .split('color:#A00').join('color:#e05561') // replace red colors - .split('color:#A50').join('color:#e5e510') // replace yellow colors - .split('color:#555').join('color:#4f5666') // replace gray colors - .split('color:#eee').join('color:#e6e6e6') // replace white colors - .split('color:#A0A').join('color:#c062de') // replace magenta colors - .split('color:#F5F').join('color:#de73ff') // replace magentaBright colors - .split('"Courier New", ').join('"Courier Prime", ') // replace font - .split('').join(` - body { - margin: 5px; - padding: 0; - overflow: hidden; - } - pre { - white-space: pre-wrap; - word-break: break-word; - -webkit-font-smoothing: antialiased; - } - - `) // remove margin/padding and force text overflow like a terminal - - if (isCi) { - expect(logs).not.to.contain('[object Object]') - } - - try { - fse.accessSync(errorFileName) - } catch (e) { - await saveHtml(errorFileName, html) - } - - const contents = await fse.readFile(errorFileName, 'utf8') - - try { - expect(contents).to.eq(html) - } catch (e) { - snapshotFailures++ - await saveHtml(errorFileName.replace('__snapshot-html__', '__snapshot-html-local__'), html) - throw e - } -} - -let consoleLog: SinonSpy - -beforeEach(() => { - sinon.restore() - consoleLog = sinon.spy(console, 'log') -}) - -afterEach(() => { - sinon.restore() -}) - -const testVisualError = (errorGeneratorFn: () => ErrorGenerator, errorType: K) => { - const variants = errorGeneratorFn() - - expect(variants).to.be.an('object') - - for (const [key, arr] of Object.entries(variants)) { - const filename = key === 'default' ? errorType : `${errorType} - ${key}` - - it(`${errorType} - ${key}`, async () => { - debug(`Converting ${filename}`) - - terminalBanner(filename) - - consoleLog.resetHistory() - - const err = errors.get(errorType, ...arr) - - if (!errors.isCypressErr(err)) { - throw new Error(`Expected Cypress Error`) - } - - errors.log(err) - - const htmlFilename = path.join(snapshotHtmlFolder, `${filename}.html`) - const mdFilename = path.join(snapshotMarkdownFolder, `${filename}.md`) - - await snapshotAndTestErrorConsole(htmlFilename) - - await fse.outputFile(mdFilename, err.messageMarkdown, 'utf8') - - debug(`Snapshotted ${htmlFilename}`) - - // dont run html -> image conversion if we're in CI / if not enabled - if (!isCi && process.env.HTML_IMAGE_CONVERSION) { - debug(`Converting ${errorType} to image`) - - await convertHtmlToImage(htmlFilename, snapshotImagesFolder) - - debug(`Conversion complete for ${errorType}`) - } - }).timeout(5000) - } -} - -const testVisualErrors = (whichError: CypressErrorType | '*', errorsToTest: { [K in CypressErrorType]: () => ErrorGenerator }) => { - // if we aren't testing all the errors - if (whichError !== '*') { - // then just test this individual error - return testVisualError(errorsToTest[whichError], whichError) - } - - // otherwise test all the errors - before(() => { - // prune out all existing local staging folders - return Promise.all([ - fse.remove(snapshotMarkdownFolder), - fse.remove(snapshotHtmlLocalFolder), - fse.remove(snapshotImagesFolder), - ]) - }) - - after(async () => { - // if we're in CI, make sure there's all the files - // we expect there to be in __snapshot-html__ - const files = await globby(`${snapshotHtmlFolder}/*`) - const errorKeys = _.keys(errors.AllCypressErrors) - - if (isCi) { - const errorNames = files.map((file) => { - return path.basename(file, '.html').split(' ')[0] - }) - const uniqErrors = _.uniq(errorNames) - // const excessErrors = _.difference(uniqErrors, _.keys(errors.AllCypressErrors)) - - // await Promise.all(excessErrors.map((file) => { - // const pathToHtml = path.join(baseImageFolder, file + EXT) - // return fse.remove(pathToHtml) - // })) - - const sortedUniqErrors = uniqErrors.sort() - const sortedErrorKeys = errorKeys.sort() - - _.each(sortedUniqErrors, (val, index) => { - expect(val).to.eq(sortedErrorKeys[index]) - }) - } else { - const errorFiles = files.map((file) => { - return { - errorType: path.basename(file, '.html').split(' ')[0], - filePath: file, - } - }) - const excessErrors = _ - .chain(errorFiles) - .map('errorType') - .uniq() - .difference(errorKeys) - .value() - - return Promise.all( - errorFiles - .filter((obj) => { - return _.includes(excessErrors, obj.errorType) - }) - .map((obj) => { - return fse.remove(obj.filePath) - }), - ) - } - }) - - // test each error visually - // @ts-expect-error - _.forEach(errorsToTest, testVisualError) - - // if we are testing all the errors then make sure we - // have a test to validate that we've written a test - // for each error type - it('ensures there are matching tests for each cypress error', () => { - const { missingErrorTypes, excessErrorTypes } = _ - .chain(errors.AllCypressErrors) - .keys() - .thru((errorTypes) => { - const errorsToTestTypes = _.keys(errorsToTest) - - return { - missingErrorTypes: _.difference(errorTypes, errorsToTestTypes), - excessErrorTypes: _.difference(errorsToTestTypes, errorTypes), - } - }) - .value() - - expect(missingErrorTypes, 'you are missing tests around the following error types').to.be.empty - expect(excessErrorTypes, 'you have added excessive tests for errors which do not exist').to.be.empty - }) -} - const makeApiErr = () => { const err = new Error('500 - "Internal Server Error"') @@ -294,15 +44,98 @@ const makeErr = () => { return err as Error & { stack: string } } -process.on('uncaughtException', (err) => { - console.error(err) - process.exit(1) -}) - describe('visual error templates', () => { const errorType = (process.env.ERROR_TYPE || '*') as CypressErrorType - // testVisualErrors('CANNOT_RECORD_NO_PROJECT_ID', { + let previousChalkLevel: 0 | 1 | 2 | 3 + let getConsoleLogOutput: () => string + + beforeEach(async () => { + vi.resetAllMocks() + vi.unstubAllEnvs() + + // turns chalk on + previousChalkLevel = chalk.level + chalk.level = 3 + + const logs: string[] = [] + + // spy on console.log and mock the output so we can snapshot the logs with chalk turned on + vi.spyOn(console, 'log').mockImplementation((args) => { + logs.push(args) + }) + + getConsoleLogOutput = () => { + const sanitizedLogs = _ + .chain(logs) + .map(sanitize) + .join('\n') + .value() + + return sanitizedLogs + } + }) + + afterEach(() => { + chalk.level = previousChalkLevel + }) + + const testVisualError = (errorGeneratorFn: () => ErrorGenerator, errorType: K) => { + const variants = errorGeneratorFn() + + expect(variants).to.be.instanceOf(Object) + + for (const [key, arr] of Object.entries(variants)) { + const filename = key === 'default' ? errorType : `${errorType} - ${key}` + + it(`${errorType} - ${key}`, async () => { + const err = errors.get(errorType, ...arr) + + if (!errors.isCypressErr(err)) { + throw new Error(`Expected Cypress Error`) + } + + errors.log(err) + + const consoleLogOutput = getConsoleLogOutput() + + expect(consoleLogOutput).toMatchFileSnapshot(`./__snapshots__/${filename}.ansi`) + }) + } + } + + const testVisualErrors = (whichError: CypressErrorType | '*', errorsToTest: { [K in CypressErrorType]: () => ErrorGenerator }) => { + // if we aren't testing all the errors + if (whichError !== '*') { + // then just test this individual error + return testVisualError(errorsToTest[whichError], whichError) + } + + // test each error visually + _.forEach(errorsToTest, testVisualError) + + // if we are testing all the errors then make sure we + // have a test to validate that we've written a test + // for each error type + it('ensures there are matching tests for each cypress error', () => { + const { missingErrorTypes, excessErrorTypes } = _ + .chain(errors.AllCypressErrors) + .keys() + .thru((errorTypes) => { + const errorsToTestTypes = _.keys(errorsToTest) + + return { + missingErrorTypes: _.difference(errorTypes, errorsToTestTypes), + excessErrorTypes: _.difference(errorsToTestTypes, errorTypes), + } + }) + .value() + + expect(missingErrorTypes, 'you are missing tests around the following error types').toHaveLength(0) + expect(excessErrorTypes, 'you have added excessive tests for errors which do not exist').toHaveLength(0) + }) + } + testVisualErrors(errorType, { CANNOT_TRASH_ASSETS: () => { const err = makeErr() @@ -368,11 +201,6 @@ describe('visual error templates', () => { retryingAgain: ['Retrying again...'], } }, - FIREFOX_CDP_FAILED_TO_CONNECT: () => { - return { - default: ['Retrying...'], - } - }, TESTS_DID_NOT_START_FAILED: () => { return { default: [], diff --git a/packages/errors/vitest.config.ts b/packages/errors/vitest.config.ts new file mode 100644 index 0000000000..0dbf099caf --- /dev/null +++ b/packages/errors/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + env: { + CYPRESS_INTERNAL_ENV: 'test', + }, + include: ['test/**/*.spec.ts'], + globals: true, + environment: 'node', + }, +}) diff --git a/packages/server/lib/browsers/chrome.ts b/packages/server/lib/browsers/chrome.ts index 5d2c2e2abf..373861f838 100644 --- a/packages/server/lib/browsers/chrome.ts +++ b/packages/server/lib/browsers/chrome.ts @@ -1,5 +1,4 @@ import Bluebird from 'bluebird' -import check from 'check-more-types' import debugModule from 'debug' import la from 'lazy-ass' import _ from 'lodash' @@ -216,8 +215,7 @@ async function _recordVideo (cdpAutomation: CdpAutomation, videoOptions: RunMode // a utility function that navigates to the given URL // once Chrome remote interface client is passed to it. const _navigateUsingCRI = async function (client, url) { - // @ts-ignore - la(check.url(url), 'missing url to navigate to', url) + la(_.isString(url) && url.match(/^https?:\/\/.*$/), 'missing url to navigate to', url) la(client, 'could not get CRI client') debug('received CRI client') debug('navigating to page %s', url) diff --git a/packages/server/lib/browsers/index.ts b/packages/server/lib/browsers/index.ts index 8ccfda4a4b..2d34ece958 100644 --- a/packages/server/lib/browsers/index.ts +++ b/packages/server/lib/browsers/index.ts @@ -3,7 +3,6 @@ import Bluebird from 'bluebird' import Debug from 'debug' import utils from './utils' import * as errors from '../errors' -import check from 'check-more-types' import { exec } from 'child_process' import util from 'util' import os from 'os' @@ -14,7 +13,7 @@ import type { DataContext } from '@packages/data-context' import type { CDPSocketServer } from '@packages/socket/lib/cdp-socket' const debug = Debug('cypress:server:browsers') -const isBrowserFamily = check.oneOf(BROWSER_FAMILY) +const isBrowserFamily = (browser: string) => BROWSER_FAMILY.includes(browser) let instance: BrowserInstance | null = null let launchAttempt = 0 diff --git a/packages/server/lib/project-base.ts b/packages/server/lib/project-base.ts index 9bf6739257..8a1ab2c235 100644 --- a/packages/server/lib/project-base.ts +++ b/packages/server/lib/project-base.ts @@ -1,4 +1,3 @@ -import check from 'check-more-types' import Debug from 'debug' import EE from 'events' import _ from 'lodash' @@ -95,7 +94,7 @@ export class ProjectBase extends EE { throw new Error('Instantiating lib/project requires a projectRoot!') } - if (!check.unemptyString(projectRoot)) { + if (!_.isString(projectRoot) || _.isEmpty(projectRoot)) { throw new Error(`Expected project root path, not ${projectRoot}`) } diff --git a/system-tests/lib/normalizeStdout.ts b/system-tests/lib/normalizeStdout.ts index e47f7c9eda..1b60b12b03 100644 --- a/system-tests/lib/normalizeStdout.ts +++ b/system-tests/lib/normalizeStdout.ts @@ -164,8 +164,6 @@ export const normalizeStdout = function (str: string, options: any = {}) { .replace(crossOriginErrorRe, '[Cross origin error message]') // Replaces connection warning since Chrome or Firefox sometimes take longer to connect .replace(/Still waiting to connect to .+, retrying in 1 second \(attempt .+\/.+\)\n/g, '') - // Replaces CDP connection error message in Firefox since Cypress will retry - .replace(/\nFailed to spawn CDP with Firefox. Retrying.*\.\.\.\n/g, '') // Replaces "new dependencies optimized" message from vite as it does not respect the logLevel='silent' option .replace(/^.*Re-optimizing dependencies.*?\n$/gm, '') .replace(/\).*new dependencies optimized.*?\n/gm, ')\n') diff --git a/yarn.lock b/yarn.lock index 7f890c3f86..1f71baf2b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -30323,7 +30323,7 @@ term-to-html@1.2.0: arg "4.1.3" escape-html "1.0.3" -terminal-banner@1.1.0, terminal-banner@^1.1.0: +terminal-banner@1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/terminal-banner/-/terminal-banner-1.1.0.tgz#ef81ce7d9d7e541a81d09eb2c0257c3d5463c3ea" integrity sha512-A70B8Io5gGOTKQuoqU6LUPLouNd9DvFLgw3cPh6bfrQjdy7HWW1t04VJfQwjTnygTVDX0xremaj1cg3SQaCGyg==