Commit Graph

17783 Commits

Author SHA1 Message Date
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
Lachlan Miller 99b7fb120b feat: gracefully fail an error when mismatching Cypress version used in migration (#21255)
* error when cypress is not found, or version is mismatching for migration

* add tests

* add defensive try/catch

* Update packages/errors/src/errors.ts

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

* fix error snapshots

* remove usage of resolve-from

* make error more clear around open vs migration

Co-authored-by: Zach Bloomquist <git@chary.us>
2022-05-09 12:54:49 +10:00
Tyler Biethman cc598438c3 chore: Following up on mochaEvent test performance on Windows (#21343)
* Getting clean circle build before changes

* Running retries tests without timeout to see current results

* Moving timeout for retries.mochaEvents. Removing runner.mochaEvents timeout to see what fails.

* Still seeing failures, bumping the resource class to see how that may impact slowness

* D'oh, no medium+ for windows

* Adding back timeouts. Bumping down build resource to medium. Updating mochaEvent tests to navigate directly to spec.

* Updating runSpec

* Updating comments
2022-05-09 12:37:32 +10:00
Tim Griesser 1ed93ffebd chore: cleanup dead code (#21340)
* chore: cleanup dead code

* fix

* fix

* fix tests
2022-05-06 13:24:24 -04:00
Tim Griesser de2e99df28 chore: remove unused organizationControl graphql field (#21368) 2022-05-06 10:24:33 -04:00
Zach Bloomquist c336d7da5c chore: remove unused parts of design-system, move SCSS to runner-ct (#21345) 2022-05-05 23:02:43 +00:00
Alejandro Estrada fa214e29f8 feat: restart browser/server on config change (#21327)
* feat: restart browser/server on config change

* Add tests

* Refresh server if devServer is changed

* Do not launch browser on start, fix open browser

* Update devServer config pairing w/ Zach

* Update with feedback
2022-05-05 16:48:17 -05:00
Zachary Williams c79c50a262 fix: align 10.x selector playground tooltips with 9.x (#21334) 2022-05-05 12:44:00 -05:00
Zachary Williams 5e72f48be7 test: add coverage for launchpad header breadcrumbs (#21297) 2022-05-05 11:54:44 -05:00
Alejandro Estrada 1a4aa47ade fix: add min-width and min-height to _x16 icons (#21341)
* fix: add min-width and min-height to _x16 icons

* Apply style for different sizes

* Update icon size
2022-05-05 11:03:08 -05:00
Alejandro Estrada 9aa798b774 feat: hide matches from spec creation (#21293)
* feat: hide matches from spec creation

* Update with designs

* Fix TS

* Update prop name
2022-05-05 10:20:09 -05:00
Zach Bloomquist a27b77d7ac fix(app): make projectId pull from resolved config (#21324) 2022-05-05 14:27:20 +00:00
Tim Griesser 5d8e047c5e fix: clear remote data by marking all query data as stale on logout (#21337)
* Add failing test for UNIFY-1652

* Fix for UNIFY-1652

* circle test
2022-05-04 20:09:49 -04:00
Zach Bloomquist c639fc9744 fix: minor tweaks to shared header bar (#21325)
Co-authored-by: Jess <jess@jessicasachs.io>
2022-05-04 23:47:04 +00: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
Rachel b9af1054a8 feat: implement the new design updates for the error pages (#21205) 2022-05-04 10:59:17 -03: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
Mark Noonan 4de6cddebe feat: reflect the GQL baseError state in App, not just launchpad (#21157)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-05-03 17:20:41 -04:00
Tim Griesser 637f333c64 chore: upgrade urql dependencies (#21302)
* chore: upgrade urql dependencies

* fix
2022-05-03 14:02:59 -04:00
Mark Noonan 5931ed7aee fix: reporter resizing in small viewports and AUT scaling when specs list is open (#21254) 2022-05-03 13:34:40 -04:00
Zach Bloomquist b856a74b43 fix(launchpad): avoid crash when authenticating before selecting project (#21234) 2022-05-03 17:11:40 +00:00
Emily Rohrbough 6cb7eb1911 fix: fix nested command log styles (#21276) 2022-05-03 09:23:36 -05:00
Lachlan Miller d13db9073c fix: various minor migration bugs (#21195)
* correct indentation

* update formatting

* add comments

* update tsconfig.json

* Update packages/data-context/src/sources/migration/codegen.ts

Co-authored-by: Blue F <blue@cypress.io>

* Update packages/data-context/src/sources/migration/codegen.ts

Co-authored-by: Blue F <blue@cypress.io>

Co-authored-by: Blue F <blue@cypress.io>
2022-05-03 20:21:47 +10:00
Ryan Manuel 6179f7d067 chore: fix build due to mis merge (#21301)
* Update cypress-in-cypress-component.cy.ts

* Empty commit to get a new percy nonce
2022-05-02 21:05:17 -05:00
Ryan Manuel c0e009bd85 fix: moving away from runner and disconnecting websockets stops listening for changes to webpack build (#21281) 2022-05-02 16:29:16 -05:00
Alejandro Estrada d9847651ce fix: Open file in IDE on windows (#21278)
* fix: Open file in IDE on windows

* Use Cypress.config
2022-05-02 14:19:24 -05:00
Tim Griesser 12b846e897 refactor: cleanup types for SpecList component (#21272)
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-05-02 13:17:29 -04:00
Alejandro Estrada cbc68d1bfa fix: prevent showing project cache if user is not member (#21154)
* Add failing test

* Get latest data on project

* Logout on 401

* remove unused async

* Update error handling

* Fix TS

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-05-02 11:37:42 -05:00
Alejandro Estrada c8c2c7de44 fix: use correct configFile while creating config (#21273) 2022-05-02 09:08:30 -05:00
Ryan Manuel f3df754a51 fix: update icon for record key in dashboard settings (#21282) 2022-05-02 09:06:21 -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
Zachary Williams 1289b01947 chore: add alpha nuxt tag (#21229)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-05-01 18:28:45 -05:00
David Munechika 0c7460fad8 fix: Open generated spec file preview by default (#21225)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-04-29 10:23:55 -04:00
David Munechika d2e337f731 fix(unify): Sort all resolved config values alphabetically (#21190)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-04-29 10:11:02 -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
Tyler Biethman f28c859df1 feat: Presenting success banner after dependency installation (#21235)
* Adding banner on dep installation success. Updating copy to match figma.

* Adding component/e2e test coverage

* Flipping polarity on this one

* Update packages/launchpad/cypress/e2e/scaffold-project.cy.ts

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

* Updates for PR comments

Co-authored-by: Rachel <rachel@cypress.io>
2022-04-28 18:02:38 -05:00
Emily Rohrbough c3147df277 feat: update .within to use internal log group api (#20980) 2022-04-28 14:40:40 -05: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
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
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
Emily Rohrbough 1232b07d4f feat(Unification): Update Command Group UI (#20465) 2022-04-27 10:23:39 -05:00
Ryan Manuel 6752d3a383 chore: percy flake around version upgrade modal (#21210) 2022-04-27 09:01:39 -05: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
Blue F 6282870dee Merge pull request #21191 from cypress-io/UNIFY-1557-remove-storybook-remnants
chore: Remove storybook related data-context and tests
2022-04-26 11:42:33 -07: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