Commit Graph

258 Commits

Author SHA1 Message Date
Chris Breiding 1da95a7db1 fix: Determine global mode based on whether there is a current project (#22838)
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-07-19 10:28:46 -04:00
Adam Stone 1b688694fe fix: Ensure that file watchers are closed before Electron exits (#22606)
* Adding prototype before-quit handler to handle async teardown.

* Getting binary builds

* Let's try this then

* Working the async changes backwards, hope I got them all. Unit tests will be a disaster currently.

* Actually getting build artifacts for testing

* Moving logic to server interactive/run

* fix: Fix some tests

* fix: Revert changes to circle config

* fix: Fix some tests

* fix: Fix more tests

* fix: Remove dead code comment

* fix: Fix ProjectDataSource tests

* fix: Add comment prefix

* fix: Remove comment and unnecessary async

* fix: Build Mac binary

* Reverting run changes

* Addressing PR comments. Cleaning up a few naming quibbles I had.

* Addressing TODO regarding onLoadError watcher cleanup.

* Correcting catch

* Fighting some unref errors on these catches

* Reverting making this private en lieu of binding

* Should have left these as instances, whoops

* Removing unnecessary test that was previously skipped

* Adding a couple cheap unit tests for the new interactive mode behavior

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-07-17 15:57:10 -05:00
Rachel 871e54fa6b fix: remove projects from breadcrumbs entirely for non-global mode projects (#22073)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-07-11 11:02:54 -07:00
Adam Stone a80c863685 fix: Correctly catch and clear errors during resetErrorAndLoadConfig mutation (#22514) 2022-07-01 10:14:02 -04:00
Muaz Othman 4726ea90a9 feat: Display Cypress Dashboard metrics in the Specs Explorer (#21250)
Co-authored-by: Muaz Othman <muazweb@gmail.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Mike Plummer <mikep@cypress.io>
Co-authored-by: Peter Stakoun <peter@stakoun.com>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-27 17:37:36 -05:00
Zach Bloomquist d01932bf75 fix: retry on EMFILE always, lint sync FS calls (#22175)
* fix: use graceful-fs always, warn in development on sync calls

* skip prop linting in some dirs

* eslint rules

* use AST-based lint rule instead

* comment

* ignore existsSync

* run without nextTick

* remove dev warning code

* fix order

* register TS first

* fix tests

* fix test

* cover new call site

* fix new test
2022-06-16 14:35:31 +10:00
Alejandro Estrada e5c1f91652 feat: show better error message if testing type is not configured (#22000)
* feat: show better error message if testing type is not configured

* Add tests

* Update tests

* Fix some tests

* Fix some tests

* Fix test

* Fix tests

* Update packages/errors/src/errors.ts

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update with code review

* Fix test

* Add on link

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2022-06-07 15:47:24 -05: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
Muaz Othman 0a6391f7f4 fix: Spec List: Added tooltips to git icons created/modified (#21536) 2022-05-27 11:15:17 -05:00
Tim Griesser b0e32f8f8e fix: UNIFY-1408, warnings should be nested appropriately & clearable (#21630)
* fix: UNIFY-1408, warnings should be nested appropriately & clearable

* Add fix / test for UNIFY-1604, UNIFY-1732

* better tests around baseUrl handling, remove unneeded logic

* Fix stub usage, test failure, pingBaseUrl behavior

* fix duplicate test title
2022-05-27 11:31:07 -04:00
Zachary Williams 08b72dc383 fix: switching from ct to e2e (non-configured) does not go through setup (#21607) 2022-05-25 18:45:45 -05:00
Alejandro Estrada 853b98b9d8 fix: prevent crash on runs visit when offline (#21618) 2022-05-25 14:59:01 -04:00
Zachary Williams 0e32352cbe fix: disable ct testing when run via binary (#21540) 2022-05-20 10:42:02 -05:00
Tim Griesser d335f5cd8a refactor: reduce flake in launchpad tests, return null for videoEmbedHtml if not needed (#21565)
* refactor: reduce flake in migration.cy.ts, return null for videoEmbedHtml if migration is not needed

* Fix UNIFY-1740: guard against double submit of mutation

* don't hit the videoHtmlEmbed link more than once

* move withCtx after scaffold

* Stub the on link response, add test for caching behavior
2022-05-19 17:58:05 -04:00
Mark Noonan b18f5110f0 feat: migration landing page (#21349) 2022-05-19 08:51:08 -04:00
Zach Bloomquist 9391c3c363 feat(app): use longest common prefix for default spec filename (#21527)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-05-18 16:58:27 +00: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
Zachary Williams 8d79472b7d feat: add runs duration, relative created at and style tweaks (#21410)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-05-17 12:58:38 -05:00
Tyler Biethman 33a60f8521 Merge branch '10.0-release' into tbiethman/develop-into-10-with-electron 2022-05-16 09:20:27 -05:00
Alejandro Estrada 3274da7842 fix: terminal error message for non migrated config (#21467)
* fix: terminal error message for non migrated config

* fix: terminal error message for non migrated config
2022-05-13 16:56:01 -05:00
Tyler Biethman 07159e8664 Merge branch '10.0-release' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10-with-electron
# Conflicts:
#	circle.yml
2022-05-13 11:20:51 -05:00
Zachary Williams df3ca1524d chore: remove unused codeGenGlobs (#21438) 2022-05-12 17:45:25 -05:00
Tyler Biethman 2b926e46af More types 2022-05-12 15:09:42 -05:00
Mark Noonan a218f96223 feat: distinguish app vs launchpad utm_source when using utm params (#21424) 2022-05-12 13:11:00 -04:00
Zachary Williams 841d28802c chore: update stubbed cloud types (#21451) 2022-05-12 11:49:24 -05:00
Tim Griesser 383bdb1d3d fix: UNIFY-1625 Runs tab not updating in real time (#21370)
* feat: improved CloudDataSource caching & tests

* feat: pushFragment subscription, for updating the client with remote data (#21408)

* refactor: add pushFragment utility for pushing remote data into the client

* fix: UNIFY-1625 Runs tab not updating in real time (#21412)

* allow returning a Response object in the remoteGraphQLIntercept, handle 401
2022-05-12 09:06:12 -04:00
Muaz Othman 490fb74e29 Merge branch '10.0-release' into muaz/CLOUD-576-spec-list-move-git-status 2022-05-10 17:44:11 -05:00
Ryan Manuel 35ab63307c chore: fix flaky windows tests (#21354) 2022-05-10 10:10:09 -05: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
Muaz Othman 64fc70f270 Merge branch 'muaz/UNIFY-1668-bug-real-time-git-updates' into muaz/CLOUD-576-spec-list-move-git-status 2022-05-09 15:13:17 -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
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
Muaz Othman 98f4784cd1 Updates to reflect new tooltip design for git info 2022-05-06 12:48:06 -05:00
Bill Glesias 04dc2e3130 Merge branch '10.0-release' of github.com:cypress-io/cypress into md-10.0-merge 2022-05-06 10:07:06 -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
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
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
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
Bill Glesias c8331fc54f set remote to primary domain when app is reserved in e2e testing mode 2022-05-04 10:38:48 -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
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
Zach Bloomquist b856a74b43 fix(launchpad): avoid crash when authenticating before selecting project (#21234) 2022-05-03 17:11:40 +00: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
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
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
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
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