Commit Graph

69 Commits

Author SHA1 Message Date
Lachlan Miller
cbb5e35762 feat: warn when detecting unsupported dependencies for component testing (#22964)
* wip: basic implementation

* update dependencies to have maxVersion

* handle promises correctly

* fix test

* update test project and styling

* only check for CT deps in CT

* install required deps

* revert

* rework detection and extend tests

* remove unused code

* remove more code

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-08-01 11:40:52 +10:00
Alejandro Estrada
e5c1f91652 feat: show better error message if testing type is not configured (#22000)
* feat: show better error message if testing type is not configured

* Add tests

* Update tests

* Fix some tests

* Fix some tests

* Fix test

* Fix tests

* Update packages/errors/src/errors.ts

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update with code review

* Fix test

* Add on link

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2022-06-07 15:47:24 -05:00
Jennifer Shehane
387202c083 fix: Update experimental studio error messaging to not indicate it will come back. (#22007)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2022-06-01 15:21:15 -05:00
Tim Griesser
566a7b1feb fix: UNIFY-1774 error if component config is not sourced for webpack/vite (#21563)
* fix: UNIFY-1774, throw error if we do not detect a webpackConfig for the user

* remove dead code, rely on auto-sourcing webpack config

* fix error styles, exit the devServer process when config is missing, guard against empty remoteState

* Add missing webpack for todos project

* Update npm/webpack-dev-server/src/makeWebpackConfig.ts

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-05-31 14:34:05 -04:00
Tim Griesser
b0e32f8f8e fix: UNIFY-1408, warnings should be nested appropriately & clearable (#21630)
* fix: UNIFY-1408, warnings should be nested appropriately & clearable

* Add fix / test for UNIFY-1604, UNIFY-1732

* better tests around baseUrl handling, remove unneeded logic

* Fix stub usage, test failure, pingBaseUrl behavior

* fix duplicate test title
2022-05-27 11:31:07 -04:00
Alejandro Estrada
3274da7842 fix: terminal error message for non migrated config (#21467)
* fix: terminal error message for non migrated config

* fix: terminal error message for non migrated config
2022-05-13 16:56:01 -05:00
Alejandro Estrada
fbe645224e fix: handle errors on plugins migration child process (#21442)
* fix: handle errors on plugins migration child process

* Update error handler

* Remove console.log
2022-05-13 16:04:35 -05:00
Bill Glesias
56ee2a52fa Merge branch '10.0-release' of github.com:cypress-io/cypress into md-10.0-merge 2022-05-09 09:55:22 -04:00
Lachlan Miller
e218cd8ed5 fix: better language detection in migration/setup workflow (#21220)
* add function to detect lang

* update test files

* update pkg.json

* remove concept of lang from wizard

* update tests

* fix tests and add debugging

* update test

* fix test

* add ts to ts project deps

* update assertion

* empty commit to trigger CI

* fix ts

* add debug log
2022-05-09 12:56:11 +10:00
Lachlan Miller
99b7fb120b feat: gracefully fail an error when mismatching Cypress version used in migration (#21255)
* error when cypress is not found, or version is mismatching for migration

* add tests

* add defensive try/catch

* Update packages/errors/src/errors.ts

Co-authored-by: Zach Bloomquist <git@chary.us>

* fix error snapshots

* remove usage of resolve-from

* make error more clear around open vs migration

Co-authored-by: Zach Bloomquist <git@chary.us>
2022-05-09 12:54:49 +10:00
Bill Glesias
252566ce64 Merge branch '10.0-release' of github.com:cypress-io/cypress into md-10.0-merge 2022-05-02 13:34:59 -04:00
Zachary Williams
00a0f5a0e9 fix: restart dev-server on config change (#21212)
* fix: restart dev-server on config change

* close dev server before cp is spawned

* fix test that is failing... not sure why

* cleanup unsued close events

* remove wait

* add back in close for unit tests

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-05-02 12:05:01 +10:00
Bill Glesias
7e79860466 Merge branch '10.0-release' of github.com:cypress-io/cypress into md-10.0-merge 2022-04-29 10:41:47 -04:00
Bill Glesias
bbd9e7f1b2 Merge branch 'develop' into md-10.0-merge 2022-04-29 10:39:54 -04:00
Lachlan Miller
22e7d36673 fix: update dev server error message (#21181)
* fix: update dev server error message

* revert change

* remove obsolete test

* revert change

* update errors

* rename error
2022-04-26 12:37:18 +10:00
Matt Schile
f473d29b2c removing migration guide reference 2022-04-22 18:35:44 -06:00
Matt Schile
f819be315a Merge branch 'develop' into feature-multidomain 2022-04-21 09:53:49 -06:00
Zach Bloomquist
afca88e7a9 chore: remove unused dependencies (#21092) 2022-04-19 14:51:21 +00:00
Barthélémy Ledoux
026c300708 fix: make error on integration folder point to e2e (#20853)
* fix: make error on integration folder point to e2e

* fix: add context for testing type to the errors

* fix: pass testnigtype to errors

* add testingType where needed

* show setupNodeEvent when error

* fix some unit tests

* update snapshot

* update snapshot

* test: add test for stupNodeEvents

* fix: add name for config error

* fix: use distinct errors for root and e2e failures

* test: update 2 snapshots

* snapshot update again

* update snapshots again normally this time
2022-04-15 15:05:35 -05:00
Matt Schile
27e1afbdd7 chore: (multi-domain) renaming flag to experimentalSessionAndOrigin (#21053) 2022-04-13 10:50:17 -06:00
Alejandro Estrada
0af82eaf64 fix: display correct error location (#21003)
* fix: display correct error location

* Update ts_node

* Add test

* Fix test

* Update with feedback
2022-04-11 13:05:13 -04:00
Matt Schile
dcbc68b8e7 chore: (multi-domain) updating experimental flag to experimentalLoginFlows (#20942) 2022-04-06 15:08:18 -06:00
Alejandro Estrada
e6cbc5ae1e fix: windows build (#20854)
* fix: update icons build to work on windows

* Add rimraf

* Update scripts

* Update script

* Update scripts

* Fix windows migration

* Update postinstall script

* Remove script
2022-04-04 11:12:08 -05:00
Zachary Williams
2c8e97df24 refactor: lift indexHtmlFile up to component, add validation (#20870) 2022-04-01 09:45:21 -05:00
Lachlan Miller
332e69b57c fix(launchpad): show more specific error when default supportFile is missing (#20792)
* fix: show correct error message for missing default supportFile

* add regression test for custom support file

* update error

* update tests

* fix test

* remove unused arg

* remove console.log
2022-03-29 13:21:33 +10:00
Barthélémy Ledoux
1de1aa5ccc feat: error when updating a 9.X value in 10.X in the pluginsFile (#20521) 2022-03-24 11:52:51 -05:00
Zachary Williams
110f8ae02d fix: remove --config-file false references and update types (#20643)
* fix: remove --config-file false references and update types

* cleanup tests and types, catch errors when calling open

* fix test

* remove string check

* code quality feedback
2022-03-21 22:49:14 +10:00
BlueWinds
0dea68790c Review feedback 2022-03-17 08:56:47 -07:00
BlueWinds
62b105fcb0 Add error when componentFolder found in 10.0 configs 2022-03-16 12:31:23 -07:00
David Munechika
2f5f0de759 fix(unify): Use of experimentalStudio should throw a warning that it is removed (#20515)
* add terminal warning for experimental studio

* add to errors old

* add warnings to main

* debug onWarning callback

* show error in open mode

* update snapshot

* update tests

* validate config earlier

* remove from types and schema

* use on link

* refactor getError

* update types

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>

* add unit test for validateNoBreakingConfigLaunchpad

* fix types

* merge test files

* update types

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
2022-03-15 11:30:15 +10:00
Emily Rohrbough
efede20d9e chore(unification): remove pluginsFile references (#20560)
* remove pluginsFile references

* fix all tests relying on this system test

* fix broken tests

* fix more broken tests

* one more

* relative path

* pr feedbkac

* fix vite-dev-server broken configuration

* PR feedback on error message

* update errors snaphsot

* bring back error in gql

* fix snapshot

* fix snapshot.

* fix merge issues

Co-authored-by: ElevateBart <ledouxb@gmail.com>
2022-03-15 11:27:04 +10:00
Barthélémy Ledoux
c4dec1efb9 refactor: make config package type-safe (#20590) 2022-03-14 15:32:11 -05:00
Jess
c2cc967227 feat: adding module support for invoking cypress.config.mjs, .cjs, .ts (#20554)
* feat: adding module support for invoking cypress.config.mjs, .cjs, .ts

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-03-14 10:46:29 -04:00
Lachlan Miller
742f261a1b fix(launchpad): correctly migrate projects settings config in plugins (#20509)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-11 13:04:06 -06:00
Alejandro Estrada
5670344590 feat: remove testFiles reference (#20565)
* feat: remove testFiles reference

* feat: remove testFiles reference

* Fix test/TS
2022-03-11 12:02:37 +10:00
Alejandro Estrada
7636287eee fix: config migration when --config-file flag is set (#20470)
* fix: config migration when --config-file flag is set

* Fix/add tests

* Update migration for config migrations that already ocurred

* Fix TS, fix test

* Update comment

* Refactor code

* Update error, prevent clicking the project on topNav

* Fix TS

* Fix error - update error message

* Update test

* Refactor code / add test for legacy config

* Refactor code

* Update with feedback

* Update with code review
2022-03-09 17:11:39 -05:00
Tim Griesser
92eac2f67e feat: Error standardization (#20323)
* refactor: reworking client-side error shape

* feat: add the CodeFrame to baseerror

* consolidate baseError handling, type fixes

* Fix UNIFY-1164 w/ test cleanup to avoid intercepting

* fix types, cleanup based on review / Brian

* fix: imports / types / tests

* cleanup tests, fix TSError location, add reinitializeCypress mutation

* fix: show correct stack trace file name (#20410)

* Improve comments for regexes / TSError capture

* feat: Add codeframe to error, address PR comments

* update snapshot

* change codeframe impl, per Brian's request

* Attempt to fix test flake

Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@hotmail.com>
2022-03-02 18:03:52 -05:00
Kukhyeon Heo
995798c3f9 chore: remove pkg/driver //@ts-nocheck final (#20169) 2022-02-25 22:42:31 +00:00
Tim Griesser
e2f385d85f fix: remove unused AUTH_BROWSER_LAUNCHED / AUTH_COULD_NOT_LAUNCH_BROWSER 2022-02-22 11:21:20 -05:00
Brian Mann
6d818ce989 update paths to be more realistic 2022-02-22 10:06:21 -05:00
Brian Mann
61a5a84764 rename a bunch of errors for consistency 2022-02-22 10:06:05 -05:00
Brian Mann
a4ee43b62c revise multiple errors 2022-02-22 10:05:01 -05:00
Brian Mann
da3c582ced revise SETUP_NODE_EVENTS_DO_NOT_SUPPORT_DEV_SERVER error 2022-02-22 10:03:01 -05:00
Brian Mann
1717518ef9 revise MULTIPLE_SUPPORT_FILES_FOUND again 2022-02-22 10:02:00 -05:00
Brian Mann
6214af2f1e revise CONFIG_FILES_LANGUAGE_CONFLICT error 2022-02-22 10:00:26 -05:00
Brian Mann
511bbf41aa revise PLUGINS_INVALID_EVENT_NAME_ERROR error 2022-02-22 09:59:37 -05:00
Brian Mann
a679a7c7e1 revise CONFIG_FILE_UNEXPECTED_ERROR error 2022-02-22 09:59:15 -05:00
Brian Mann
7314e5a0aa revise CONFIG_FILE_SETUP_NODE_EVENTS_ERROR error 2022-02-22 09:58:20 -05:00
Brian Mann
9ef922583a revise SETUP_NODE_EVENTS_IS_NOT_FUNCTION error 2022-02-22 09:57:23 -05:00
Brian Mann
ebfaa7600e revise MULTIPLE_SUPPORT_FILES_FOUND error, accept array of strings for formatting 2022-02-22 09:56:17 -05:00