Commit Graph

1274 Commits

Author SHA1 Message Date
Bill Glesias 373ed05298 Merge branch 'develop' into md-10.0-merge 2022-05-02 12:26:58 -04: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
Zachary Williams 663ca5a94a fix: automation disconnected error appearing when switching browsers (#21247) 2022-04-29 15:35:08 +10:00
Lachlan Miller b65371a6a1 fix: subscribe to changes in cypress.config.js in app (#21160)
* chore: work on build

* subscribe to config changes

* add test

* extract required values from legacy config

* add testingType and isComponentTesting to config

* update cypress config

* update runner config on window and re-execute after config changes

* revert change

* revert code

* revert

* revert file

* update stub types
2022-04-29 10:24:01 +10:00
Bill Glesias bc01e44338 chore: rename multi-domain to origin paradigm (#21231) 2022-04-28 15:19:40 -04:00
Tyler Biethman 7eca8c202c feat: Additional preparations for Chrome's immutable domain updates (#21208)
* feat: Updating client route response headers to continue support for mutable domains

* Updating route integration test
2022-04-28 10:53:21 +10:00
Tim Griesser a5af073184 fix: dedicated socket.io namespace for graphql-refetch messages (#21207)
* add failing test

* fix: add data-context dedicated socket.io namespace

* better comments & test name to explain what this is testing
2022-04-26 18:13:18 -04:00
Bryan Lee 363c1a8a3a chore: replace git.io link with the original URL (#21206) 2022-04-26 21:07:26 +00:00
Ryan Manuel 4e3ac0335c fix: retrying config loading errors that lead to new errors freezes initialization (#21176)
* fix: trying again on errors that results in new errors

* fix: trying again on errors that results in new errors

* Refactoring and code clean up for private lifecycle functions

* Refactoring and code clean up for private lifecycle functions

* Fix test flakiness

* More code cleanup and refactoring

* Fix unit tests

* Add unit tests and more refactoring

* Remove comments and unneccessary asyncs

* PR comments

* PR comments

* Update packages/data-context/src/data/ProjectLifecycleManager.ts
2022-04-27 04:58:13 +10: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
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
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 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
Lachlan Miller 0a320d31a7 chore: fix tests that fail on windows (#21055)
* check if failing

* update timeouts

* move cy code inside it

* revert code

* fixing test

* update timeout

* update tests

* fix: handle race condition with windows and the cri client

* fix: handle race condition with windows and the cri client

* fix: handle race condition with windows and the cri client

* Refactor and unit tests fixes

* Further refactoring and error handling cleanup

* update test timeout

* Update timeout for spec subscription e2e test

* Fix issue with ssh keys in circle

* Apply suggestions from code review

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

* update circle.yml

* Apply suggestions from code review

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

* add comment and fix lint

* add guide for platform differences

* timeout

* Update circle.yml

* Update guides/remaining-platform-agnostic.md

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

* update docs and comments

* rename file

* Apply suggestions from code review

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-04-19 20:05:54 +10: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
Blue F 8c52250be7 Merge pull request #21088 from cypress-io/develop-10.0-release
chore: Merge develop into 10.0-release
2022-04-14 11:44:03 -07:00
Alejandro Estrada 7f69f94076 fix: resolves correctly specPattern (#21057)
* fix: resolves correctly specPattern

* Update test

* Update with feedback
2022-04-14 13:39:13 -05:00
Blue F 13caf93b3e Merge branch '10.0-release' into develop-10.0-release 2022-04-14 10:32:05 -07:00
Matt Henkes e4dcb12c50 Merge branch 'develop' into feature-multidomain 2022-04-13 15:51:10 -05:00
Tom Udding 57dbc170e6 fix: Plugin error when sending on disconnected IPC channel (#21011)
* fix: Plugin error when sending on disconnected IPC channel

* Add unit test for new no send behaviour

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-04-13 11:51:27 -05:00
Matt Schile 27e1afbdd7 chore: (multi-domain) renaming flag to experimentalSessionAndOrigin (#21053) 2022-04-13 10:50:17 -06:00
Matt Schile d98d0e1e79 chore: (multi-domain) add experimentalLoginFlows to the settings page (#21030) 2022-04-12 09:23:58 -06:00
David Munechika ccae965edc fix merge conflicts 2022-04-12 08:52:19 -04: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
Tim Griesser cdf91b8a3e refactor: change git info handling to happen eagerly / asynchronously (#20997) 2022-04-11 13:06:54 -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 Henkes c68692212a chore: [Multi-domain] Rename the last of the domain/multi-domain to origin type names. (#20965)
* chore: [Multi-domain] Rename the last of the domain/multi-domain to origin type names.

* oops

* typo

* Update packages/driver/cypress/integration/e2e/multi-domain/multi_domain_validation_specs.ts

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

* Update packages/driver/cypress/integration/e2e/multi-domain/multi_domain_validation_specs.ts

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

Co-authored-by: Matt Schile <mschile@gmail.com>
2022-04-07 12:30:06 -05:00
Matt Henkes 25af92134a chore: [Multi-domain] Rename isMultiDomain for the driver and the server (#20947)
* chore: [Multi-domain] Rename isMultiDomain for the driver and the server

* A couple more changes

* Update packages/driver/src/cy/commands/navigation.ts

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

Co-authored-by: Matt Schile <mschile@gmail.com>
2022-04-07 09:22:49 -05:00
Matt Schile dcbc68b8e7 chore: (multi-domain) updating experimental flag to experimentalLoginFlows (#20942) 2022-04-06 15:08:18 -06:00
Zach Bloomquist 4fd151014d fix: cache last-used browser by project, name, and channel (#20760)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-04-06 19:55:30 +00:00
Matt Henkes b65db7b81f chore: [Multi-domain] Rename domain events (#20945)
* chore: [Multi-domain] Rename domain events

* finish index.ts

* missed one!

* rename error message

* Update packages/driver/src/cy/commands/navigation.ts

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

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
2022-04-06 14:26:10 -05:00
Matt Henkes 17e6bf431e chore: [Multi-domain] Rename switchToDomain to origin (#20927)
* chore: [Multi-domain] Rename switchToDomain to origin

* Regenerate system tests snapshots

* Update cli/schema/cypress.schema.json

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

* Update cli/types/cypress.d.ts

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-04-06 11:26:03 -05:00
Barthélémy Ledoux 93ad676fea Merge branch '10.0-release' into marktnoonan/merge-develop-2022-4-5 2022-04-06 10:54:53 -05:00
Tim Griesser d19cba873a fix: remove extra bundled electron in 10.0 binary (#20932)
* fix: remove duplicate electron in binary dependencies

* move openProject

* fix test failure

* Decrease the MAX_ALLOWED_SIZE_MB
2022-04-06 11:18:19 -04:00
Mark Noonan 9afba0000f remove minor optimization that blocked check-ts 2022-04-06 08:44:19 -04:00
Mark Noonan 8039be1157 Merge branch 'develop' into marktnoonan/merge-develop-2022-4-5 2022-04-05 17:32:47 -04:00
Matt Henkes 81e9283c7a Merge branch 'develop' into feature-multidomain 2022-04-05 11:40:02 -05:00
Chris Breiding edf9c11a30 fix: Resend *.enable commands on CDP reconnect (#20916)
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-04-05 12:07:56 -04:00
Tim Griesser e1da852473 feat: add new webpack-dev-server package based on object API & bundling (#20861)
Adds the new webpack-dev-server-fresh package, exposing the new object api. This package will eventually be merged with/replace the existing webpack-dev-server

closes: UNIFY-1267
2022-04-05 12:05:33 -04:00
Barthélémy Ledoux 8381efe262 fix: build mjs in the cli (#20889)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-04 17:58:56 -05:00
David Munechika 2e48f85be2 fix: --spec with glob incorrectly splits filename (#20848)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-04-04 11:47:02 -04:00
Matt Schile 8bba681118 fix: (multi-domain) electron crash (#20867) 2022-04-01 14:15:13 -06:00
Barthélémy Ledoux 1e7efc22c3 Merge branch '10.0-release' into ryanm/feat/refactor-config-loading 2022-03-31 23:42:13 -05:00
Alejandro Estrada 1033e04bd8 fix: viewport from CLI on CT (#20849)
* fix: viewport from CLI on CT

* Add tests
2022-04-01 11:39:33 +10:00
Ryan Manuel d5e48a3b47 Remove config.get 2022-03-31 17:27:14 -05:00
Ryan Manuel a52784a171 Merge remote-tracking branch 'origin/10.0-release' into ryanm/feat/refactor-config-loading
# Conflicts:
#	packages/launchpad/cypress/e2e/choose-a-browser.cy.ts
2022-03-31 15:18:30 -05:00
Ryan Manuel 305fabec13 Fix missed await on merge conflict resolution 2022-03-31 09:54:32 -05:00