Commit Graph

297 Commits

Author SHA1 Message Date
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
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
Zachary Williams dd180c89b2 fix: supportFile path and supportFile false for vite on windows (#21156)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-25 15:58:06 -05: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
Lachlan Miller 925ef3d526 remove old test 2022-04-25 15:27:29 +10:00
mjhenkes b8ae51edbc Remove reference to migration guide 2022-04-22 19:11:02 -05:00
Chris Breiding 3e6d6bfe15 chore: Updates based on PR feedback (#21137)
* add generic to cy.origin type

* fix log type, update/add comments

* fix comment indentation

* specific generic

* move RemoteState to internal types

* add on links to experimental flag descriptions

* chore: reduce nesting by flipping condition

* fix test title

* simplify failing log

* rename variable

* delete error property

* fix types

* fix type

* remove unnecessary todo

* update wait test

* jquery -> this

* update comment

* remove vestigial autoRun

* use finally

* re-throw non-security errors

* move back getting index

* add new state types

* remove unnecessary export

* startsWith -> includes

* it -> them

* update system test

* remove use of promise constructor

* Revert "remove use of promise constructor"

This reverts commit 35ccc28b6f.

* log errors from Page.getFrameTree

* test if anything breaks when removing optional chaining operator

* remove vestigial file

* handle queue ending in cross-origin driver

* fix coordinates spec

* improve chrome/firefox check in extension

* improve secure cookie regex

* use production mode for cross-origin driver bundle

* adding remoteStates.getPrimary

* catch and ignore queue errors

* remove optional chaining in postMessage handler

* removed unnecessary async

* update frame tree on cri client reconnect

* fix formatting

* renaming remoteStates variable

* prevent requests from being paused if experimentalSessionAndOrigin flag is off

Co-authored-by: Matt Schile <mschile@cypress.io>
2022-04-22 14:58: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
Matt Schile d7ce86541d chore: (cross-origin) add support for redirecting back to primary (#21144) 2022-04-20 23:03:08 -06: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
Blue F 10dfccc674 chore: Move component-index generation to scaffold-config package (#21090)
* chore: Move component-index generation to scaffold-config package

* Review fixes

* Fix review comments for realzies this time
2022-04-20 11:45:40 +10:00
Zachary Williams ccfee1ed13 feat: add next preset to webpack-dev-server-fresh (#21069)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-19 17:52:19 -05:00
Zachary Williams 17fe5d9599 fix: remove MountReturn from scaffolded ct support file (#21119)
* fix: remove MountReturn from scaffolded ct support file

* fix test
2022-04-19 13:11:41 +10:00
Matt Henkes f02d7509b0 chore: [Multi-origin] Correctly find the spec bridge if chromeWebSecurity set to false. (#21117)
* chore: [Multi-origin] Correctly find the spec bridge if chromeWebSecurity set to false.

* Update packages/runner/injection/multi-domain.js

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* Attempting a system test

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-04-18 16:24:45 -05:00
Alejandro Estrada a2b5151e4d fix: do not scaffold fixtures if folder exist (#21078)
* fix: do not scaffold fixtures if folder exist

* Fix tests

* Run windows

* Rever windows run
2022-04-18 14:01:56 -05: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
Alejandro Estrada e7d79eea32 fix: move non spec files on migration (#21054)
* Add failing test

* Copy content after migration
2022-04-14 14:36:19 -05:00
Lachlan Miller f8621da49d feat(launchpad): update CT setup and config scaffolding (#20893)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-14 12:34:01 -05:00
Jess 5615f79096 chore: making the npm deps for vue, react, and vue2 use 0.0.0-dev (#21081)
* chore: making the npm deps for vue, react, and vue2 use *

* use 0.0.0-development for mount-utils

* Make bundler system tests a little quicker / more resilient

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-14 12:57:13 -04:00
Lachlan Miller aa98f2e3e2 Merge pull request #21045 from cypress-io/merge-develop-4-12
chore: merge develop into 10.0-release
2022-04-13 19:30:22 -07:00
Alejandro Estrada de17f4400b fix: stop running spec when switching specs (#21038)
* Add failing test

* Update mocha patch

* Update tests

* Update error message/fix tests
2022-04-14 12:28:41 +10:00
Zachary Williams 6dae45e8db fix: remove asset size warnings and enable nuxt e2e tests (#21074)
* fix: remove asset size warnings and enable nuxt e2e tests

* bump timeout
2022-04-14 11:30:18 +10:00
Jess 0e7b555f93 feat: swap the #__cy_root id selector to become data-cy-root for component mounting (#20951)
* Change #__cy_root selector for CT mounting point to be a data-cy-root selector

* moving all of the gets for the container element into the mount-utils

* Force HTMLElement instead of Element

* unskip vue2 tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-13 16:08:35 -04:00
Matt Schile 27e1afbdd7 chore: (multi-domain) renaming flag to experimentalSessionAndOrigin (#21053) 2022-04-13 10:50:17 -06:00
Blue F 3aa69e2538 feat: Add vue2 package from npm/vue/v2 branch (#21026)
* Add vue2 package from npm/vue/v2 branch

* Add vue2 as automatic export

* remove npm/vue2/examples

* remove cypress directory from vue2

* fix: ordering of build scripts

* remove unneeded files from output, name module cypress-vue2 / CypressVue2

* fix types package resolution

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-13 12:17:22 -04:00
Emily Rohrbough 38d860ca97 Merge branch '10.0-release' into merge-develop-4-12 2022-04-13 10:53:35 -05:00
David Munechika 7f369ae7f6 skip failing test 2022-04-13 08:43:09 -04:00
Tim Griesser 001a7244f8 fix: add possible frameworks to object API config (#21056) 2022-04-13 08:41:19 -04:00
David Munechika a4881d3d36 fix snapshot spacing 2022-04-12 12:47:26 -04:00
Matt Schile d98d0e1e79 chore: (multi-domain) add experimentalLoginFlows to the settings page (#21030) 2022-04-12 09:23:58 -06:00
David Munechika 31f4b49709 fix system test 2022-04-12 11:07:04 -04:00
David Munechika ced827147c rename files 2022-04-12 10:08:17 -04:00
David Munechika 4fe485a854 update snapshots 2022-04-12 09:38:26 -04:00
David Munechika ccae965edc fix merge conflicts 2022-04-12 08:52:19 -04:00
Zachary Williams cdb4a82fa3 feat: add create-react-app handler (#20954)
* feat: create-react-app implementation for Object API

* use default ejected cra config, remove unnecessary files and revert script error changes
2022-04-12 17:06:25 +10:00
Matt Henkes 65d75ddf1d Merge branch 'develop' into feature-multidomain 2022-04-11 14:07:08 -05:00
David Munechika 6934c0398f fix(regression): cy.pause() should not be ignored with cypress run --headed --no-exit (#20877)
Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
2022-04-11 13:25:33 -04: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 a928781e78 chore: (multi-domain) update cross-origin error (#20999) 2022-04-08 13:53:30 -06:00
Chris Breiding f6975f8caa chore: audit cross-origin related TODOs/FIXMEs (#20975)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-04-08 15:11:10 -04:00
Lachlan Miller 57659c4246 feat: vue-cli and nuxt preset for CT object API architecture (#20956) 2022-04-08 09:37:18 -05:00
Tim Griesser 4a9d6831ba chore: system test tooling improvements (#20966)
* chore: fixture tooling improvements

* simplifying the imports of the @tooling/system-tests

* A bit of cleanup

* browser export path for fixture dirs
2022-04-07 15:32:51 -04:00