Commit Graph

1214 Commits

Author SHA1 Message Date
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
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
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
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
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
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
David Munechika
ccae965edc fix merge conflicts 2022-04-12 08:52:19 -04: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
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
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
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
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
Ryan Manuel
c7709e8f9e Merge remote-tracking branch 'origin/develop' into 10.0-release
# Conflicts:
#	circle.yml
#	packages/server/lib/browsers/cdp_automation.ts
#	packages/server/lib/browsers/cri-client.ts
#	packages/server/test/unit/browsers/cri-client_spec.ts
2022-03-31 09:42:40 -05:00
Ryan Manuel
6bace98a24 PR comments 2022-03-30 21:13:47 -05:00
Ryan Manuel
4913f54e4f Merge branch '10.0-release' into ryanm/feat/refactor-config-loading 2022-03-29 18:37:46 -05:00
Chris Breiding
5950a45a9d chore: Refactor cri-client to use async/await (#20825) 2022-03-29 16:02:33 -04:00
Tyler Biethman
db2945c9be Merge branch '10.0-release' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10.0 2022-03-29 13:24:59 -05:00
Ryan Manuel
f9436ab130 Additional code cleanup 2022-03-29 13:17:25 -05:00
Tim Griesser
fe60920d36 fix: guard against infinite loop in unhandled exception handling (#20828) 2022-03-29 13:56:25 -04:00
Tyler Biethman
21fd2ebe9c Merge branch 'develop' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10.0
# Conflicts:
#	packages/launcher/package.json
2022-03-29 09:46:08 -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
Ryan Manuel
f6cc702aaa Fix system test 2022-03-24 23:22:45 -05:00
Lachlan Miller
f49ad641e6 chore: delete unsed code in runner, runner-shared, runner-ct (#20663)
* chore: delete a lot of old code

* remove unused code

* update test

* remove dep on cypress_runner for non proxied page

* change binary

* revert scss changes

* delete a lot of code

* update sass

* update jsx

* styles

* revert change

* dont destructure from window.mobx anymore

* update readmes

* revert change to mobx store

* Update packages/runner-shared/README.md

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

* remove old code

* remove html webpack and copy webpack plugins from runner

* Apply suggestions from code review

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

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-25 10:24:05 +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
Alejandro Estrada
61f7cfc592 fix: scope config to current testing type (#20677)
* fix: scope config to current testing type

* Revert options changes

* Fix some tests

* Fix more tests

* Fix more tests

* Fix more tests

* Update options

* Fix tests

* Fix tests

* Add comments

* Remove un-needed quote

* Fix test

* Fix tests
2022-03-23 19:06:36 -05:00
Ryan Manuel
111949a869 feat: add subscription for specs changing (#20657)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Jess <jess@jessicasachs.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: David Munechika <david.munechika@gatech.edu>
Co-authored-by: BlueWinds <blue@everblue.info>
2022-03-22 11:53:00 -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
a40c1d3ebd Remove some additional references 2022-03-16 11:52:24 -07:00
Lachlan Miller
1b152fca1b fix(webpack-dev-server): do not encodeUri in loader (#20575)
* fix: do not encodeUri in webpack loader

* add tests

* fix test

* fix: use decodeURI in loader and add tests (#20593)

* add tests for non-unicode and specs with ...

* add more system tests

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-03-15 12:49:45 +10:00