Commit Graph

349 Commits

Author SHA1 Message Date
Alejandro Estrada e0e5a60ef6 fix: prevent adding default supportFile on migration (#21985)
* fix: prevent adding default supportFile on migration

* Update unit tests

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-06-01 09:26:18 -04:00
Tim Griesser ae8d4b2b05 fix: cleanup test flake (#21989)
* fix: test flake in e2e tests

* fix flake in GitDataSource.spec.ts
2022-06-01 09:24:41 -04: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
Jess 996823cd94 fix: support loading config files for projects with type module, without esbuild (#21574)
* fix: support loading config files for projects with type module, without esbuild

* fix: adding process.cwd() to require.resolve paths so that system-tests do not use local dev version of esbuild

* fix: add missing esbuild in test projects

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-05-31 14:25:08 -04:00
Alejandro Estrada 55230a408b fix: handle custom (default) integration folder for migration (#21617)
* fix: handle custom (default) integration folder for migration

* Handle testFiles

* Fix tests

* Update test

* Update typo

* Trigger percy
2022-05-27 14:57:15 -05:00
Bill Glesias 5866f45a57 fix: clean up the primaryOriginCommunicator when the iframe is torndown to… (#21634)
* clean up the primaryOriginCommunicator when the iframe is torndown to prevent dangling memory leaks

* fix: clean up the primaryOriginCommunicator when the iframe is torndown to prevent dangling memory leaks

* attempt to clean up onMessage handlers when event manager is setup/torn down. NEEDS cy-in-cy TEST

* move session tests into session directory and rename file to prep for origin tests being added

* add cy.origin regression tests

* fix cy origin event bindings in the event manager"
2022-05-27 12:06:27 -04:00
Ryan Manuel f2bce02f5d fix: issue with compilation failures in component testing (#21599)
* fix: issue with compilation failures in component testing

* add tests

* fix tests

* Refactor tests

* Fix tests

* Refactor tests

* Fix tests

* Fix paths for dependencies in system tests

* Fix tests

* Fix tests

* Fix tests

* Fix tests

* test fix for initial esbuild failures

* Fix tests

* Add back ESLintPlugin

* Add comments around our special esbuild handling logic in vite

* Code cleanup and additional test scenario

* Add config syntax error tests

* Improve tests

* Update comment and remove unused variable

* Remove unneeded hook in webpack dev server

* Disable dev server overlay

* Revert "Remove unneeded hook in webpack dev server"

This reverts commit 98b2f269ae.

* PR comments

* Accidental removal

* Fix dedent

* PR comments
2022-05-25 18:02:05 -05:00
Bill Glesias a7ecbec2a3 fix: do not allow experimentalSessionAndOrigin to be available in CT … (#21588)
* fix: do not allow experimentalSessionAndOrigin to be available in CT per https://github.com/cypress-io/cypress/issues/21573

* remove experimentalSessionAndOrigin config as it is read only

* move runner session tests under own system test project to turn on experimentalSessionAndOrigin flag

* refactor session ui runner tests to point to runner-session-e2e-specs folder

* fix cypress_spec.js to account for experimentalSessionAndOrigin options

* remove experimentalSessionAndOrigin from env args
2022-05-23 13:55:15 -04:00
Tim Griesser d1d337a075 fix: revert "feat: automatically find/merge config for component testing (#21432)" (#21560)
This reverts commit a355ad6159.
2022-05-19 10:50:56 -04:00
Tyler Biethman c2b270f128 chore: Removing workaround for long Cypress verification times (#21541)
* chore: Removing workaround for long Cypress verification times

* Blank commit for Percy build

* Getting a build

* Need the mac build

* Missed a few!

* We apparently still need this one.
2022-05-19 12:29:56 +10:00
Zachary Williams ada7179acb fix: next 12.1.6 support and add tests (#21515) 2022-05-18 10:17:33 +10:00
Lachlan Miller aa4c0b5e09 chore: document next.js specific component template (#21507)
* chore: document next.js specific component template

* update test

* remove obsolete test

* update test

* correct path for glob

* fix test
2022-05-18 09:37:02 +10:00
David Munechika 934613379b fix(unify): Have better default filename than filename for create spec file windows (#21396)
* fix: change default filename for create spec

* add test

* fix typo

* fix unit tests

* fix unit tests

* fix types

* fix runner test

* refactor defaultSpecFileName

* add e2e tests

* refactor replaceWildCard

Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>

* update spec pattern

* Removing extra codeGenBlobs missed in merge

* Updating tests to reflect default component name change

* Let's get a windows build too

* Windows test fixes

* Addressing Zach's feedback. Fixing type.

* Update packages/app/cypress/e2e/specs_list_component.cy.ts

Co-authored-by: Rachel <rachel@cypress.io>

* Using mountFragment for new component test

Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
Co-authored-by: Rachel <rachel@cypress.io>
2022-05-17 16:47:54 -05:00
Zachary Williams 630e4220ca fix: use resolved port for vite (#21490) 2022-05-17 15:25:39 -05:00
Tyler Biethman 27cbfbab26 Merge branch '10.0-release' into tbiethman/develop-into-10-with-electron 2022-05-17 07:57:19 -05:00
Lachlan Miller abea165832 fix: do not include non specs when globbing using --spec in run mode (#21462)
* fix: do not include non specs when globbing using --spec in run mode

* update pattern

* fix test

* update cdp spec

* wip - updates

* update snapshots

* update non-proxied spec

* update snaps

* update snaps

* rename specs

* update spec

* wip - snapshots

* snaps

* snaps

* update spec names

* update

* update test

* snaps

* update snap and spec

* snaps

* correct spec pattern

* snaps

* revert

* update spec and snapshots

* fix test

* update tests

* fix test

* update test

* update snapshot

* update snaps

* include coffee in specPattern

* update snapshots

* update snaps

* rename specs

* snaps

* update test

* update snapshot

* update

* snaps

* update snap

* update snaps

* fix test

* unskip test

* snaps

* add test
2022-05-17 18:11:42 +10:00
Tyler Biethman 33a60f8521 Merge branch '10.0-release' into tbiethman/develop-into-10-with-electron 2022-05-16 09:20:27 -05:00
Lachlan Miller a355ad6159 feat: automatically find/merge config for component testing (#21432)
* wip: add comment regarding webpack config

* wip: various

* wip

* fix tests

* lint

* fix tests

* add tests

* add tests

* fix tests

* update imports

* make test more reliable

* parse correct flag

* minor refactor

* replace fs-extra with fs

Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-05-16 15:03:35 +10: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
Tyler Biethman 07159e8664 Merge branch '10.0-release' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10-with-electron
# Conflicts:
#	circle.yml
2022-05-13 11:20:51 -05:00
Zachary Williams 0f786ab893 fix: ct testing support for node 17+ (#21430) 2022-05-13 11:01:30 -05:00
Tyler Biethman 323117b49f Merge branch '10.0-release' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10-with-electron 2022-05-12 15:49:38 -05:00
Tyler Biethman 65a9741d2e Updating system test image 2022-05-12 15:46:27 -05:00
Alejandro Estrada 123a930831 fix: remove breaking options from testing type on migration (#21437)
* Add failing test

* fix test

* Refactor code

* Update test
2022-05-12 14:30:03 -05:00
Tyler Biethman 74fa12ab11 Merge branch 'develop' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10-with-electron
# Conflicts:
#	circle.yml
#	packages/driver/cypress/integration/commands/actions/trigger_spec.js
#	packages/driver/cypress/integration/commands/actions/type_spec.js
#	packages/driver/cypress/integration/commands/files_spec.js
#	packages/electron/package.json
#	packages/launcher/lib/darwin/util.ts
#	packages/launcher/package.json
#	packages/server/__snapshots__/args_spec.js
#	packages/server/__snapshots__/cypress_spec.js
#	system-tests/projects/non-proxied/cypress/fixtures/cy-non-proxied.png
#	yarn.lock
2022-05-12 12:51:59 -05:00
Tyler Biethman 8311cf15ff chore(deps): Updating electron to v18 + node v16.13.2 (#21418)
* chore: Updating electron to v18 + node v16.13.2

* Updating origin test, it needs to be fixed a different way

* Removing origin workaround for config_env specs, it should not be necessary.

* Removing now-unused semver dependency
2022-05-12 12:06:30 -05:00
Bill Glesias d113c15dca Merge branch '10.0-release' into merge-develop-into-10.0 2022-05-10 13:16:53 -04:00
Bill Glesias 346bf458b0 Merge branch 'develop' into merge-develop-into-10.0 2022-05-10 12:46:29 -04:00
David Munechika 3fd9440520 test(unify): App - Specs List - Filter Typing Tests (#21315)
* add tests

* stash

* fix escape test

* implement focus on clear search

* update tests

* fix types

* use forwardRef pattern to focus input

* null check for optional ref

* fix tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-05-10 15:22:16 +10:00
Alejandro Estrada 04e5d70d48 fix: do not launch browser if testing type is not configured while switching testing type (#21371)
* fix: do not launch browser if testing type is not configured while switching testing type

* Update test

* Fix test
2022-05-10 11:07:18 +10:00
Bill Glesias 2595c444b5 Merge branch '10.0-release' into md-10.0-merge 2022-05-09 12:44:06 -04:00
Alejandro Estrada ba4b4f295a fix: add custom specPattern if user opt out renaming spec ext (#21344)
* fix: add custom specPattern if user opt out renaming spec ext

* Update test, remove comment

* Fix tests

* Update returned config after migrating folder

* Update with feedback
2022-05-09 11:40:46 -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
Emily Rohrbough dbbad318aa chore(sessions): add additional tests (#21338) 2022-05-05 18:21:15 -05:00
Bill Glesias bd7e43ed25 Merge branch '10.0-release' of github.com:cypress-io/cypress into md-10.0-merge 2022-05-05 13:41:50 -04:00
Bill Glesias de1a3bdbdc update spec bridge system test now that chrome/web socket issues are fixed 2022-05-05 12:18:36 -04:00
Ryan Manuel 9612686241 fix: issue with generating cypress.config.js in projects with type of module (#21323)
Co-authored-by: Zach Bloomquist <git@chary.us>
2022-05-04 16:41:11 -05:00
Bill Glesias 2830c9e63d Merge branch '10.0-release' of github.com:cypress-io/cypress into md-10.0-merge 2022-05-04 14:44:14 -04:00
Alejandro Estrada 88ef75c39d feat: Update migration for projects with projectId (#21193)
* feat: Update migration for projects with projectId

* Add tests

* Update prettier require, add test for custom specPattern

* Revert prettier changes

* Update test

* Add defaultMigrationTransformOptions

* Update with code review

* Support nested projectId

* Fix test
2022-05-03 17:48:42 -05:00
Bill Glesias 53653bd382 try to make the web security snapshot happy 2022-05-03 10:41:10 -04:00
Bill Glesias 37830ad926 update system test flags for cy-in-cy tests to use experimentalSessionAndOrigin over experimentalSessionSupport 2022-05-02 22:54:16 -04:00
Bill Glesias 1950b93091 fix session e2e snapshot 2022-05-02 22:26:49 -04:00
Bill Glesias 038c2251a2 update web_security e2e spec test with test skipped with a TODO to fix 2022-05-02 22:22:06 -04: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
Bill Glesias 373ed05298 Merge branch 'develop' into md-10.0-merge 2022-05-02 12:26:58 -04:00
Alejandro Estrada c8c2c7de44 fix: use correct configFile while creating config (#21273) 2022-05-02 09:08:30 -05: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