Commit Graph

248 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
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
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
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 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
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
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 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 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
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
Bill Glesias bc01e44338 chore: rename multi-domain to origin paradigm (#21231) 2022-04-28 15:19:40 -04:00
Alejandro Estrada d94c586f10 fix: update not supported plugins errors (#21169)
* fix: update not supported plugins errors

* Add tests

* Add tests

* Fix test

* Update with feedback
2022-04-28 22:59:21 +10:00
Alejandro Estrada c8d86b2cda fix: use prettier to format migrated config (#21227)
* fix: use prettier to format migrated config

* Update with feedback

* fix tests
2022-04-27 12:52:12 -04:00
BlueWinds e5863366f2 Removing leftover .storbook directories 2022-04-26 11:23:03 -07:00
Blue F 058bdc3351 Merge branch '10.0-release' into UNIFY-1557-remove-storybook-remnants 2022-04-26 10:26:41 -07: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
Tim Griesser 598d94c62a feat: Auto-merge config when adding new testing type (#21152)
* wip on AST merging Cypress Config

* Adding test coverage & better implementation for config merging

* fix types, use new addToCypressConfig for projectId

* refactor: separate export for browser

* printing w/ recast

* don't remove prettier in this PR

* Update packages/config/src/ast-utils/addToCypressConfig.ts

* make comment more robust

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-04-25 18:58:44 -04:00
BlueWinds ea39cec295 Fix tests from last commit 2022-04-25 15:36:49 -07:00
BlueWinds 8ff3c8b8e8 chore: Remove storybook related data-context and tests 2022-04-25 11:59:54 -07:00
Tyler Biethman cb5b547835 fix: Long Cypress verification times (#21174)
* Fixing some electron

* More electron refs

* Updating system test snapshots. Updating mocha timeout for module-api tests.

* Updating magic require with comment

* Updating system test snapshot again

* Removing dead code
2022-04-25 13:05:42 -04:00
mjhenkes b8ae51edbc Remove reference to migration guide 2022-04-22 19:11:02 -05:00
Matt Henkes e3161a0b37 chore: [Multi-domain] Break out separate CI tasks to test the driver with experimentalSessionAndOrigin on (#21148)
* Attempt to run tests without the feature flag and the multi-domain folder

* do it for real this time dummy

* trying circleci changes

* valid file???

* moar changes!

* i am a master of bash scripting

* try another exclude pattern

* one more time with feeling

* lets do it again

* maybe this?

* different parallel group

* lets try this

* updating tests phase 1

* updating tests phase 2

* Apply suggestions from code review

Co-authored-by: Matt Schile <mschile@gmail.com>

* Update tests

* Run more tests

* Re-locate system test

* Flex message for firefox

Co-authored-by: Matt Schile <mschile@gmail.com>
2022-04-21 09:32:47 -05:00
Jess b326693879 chore: cutting over system-tests and Cypress to use the new CT Object API (#21079)
* removing vite-dev-server local dependency from react-vite-ts-configured system test

* moving some CRA examples over to use the object api for setup

* fixing issue where function API was broken by object API for cy config + devservers

* adding deeply nested react import to project-fixtures for cra

* finishes cutting over cypress/react for sys tests

* chore: adding circle for this feature branch

* chore: moving over many vue + vite system tests to use object API instead of function API (#21080)

* doing webpack-dev-server cutovers

* removing more webpack-dev-server refrences

* fixing snapshots

* bumping yarn.lock

* wip

* fix test

* fix assertion

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* feat: removing all references for "fresh" dev servers (webpack-dev-server-fresh and vite-dev-server-fresh) (#21094)

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* chore: add dev-servers as deps to server to be included in the binary (#21091)

* fix bad merge

* fix next types and webpack-dev-server- resolve

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-04-20 15:57:19 +10:00