Commit Graph

106 Commits

Author SHA1 Message Date
Mike Plummer 36278fca01 feat: Add login state to manifest request for analytics (#22791) 2022-07-19 17:16:59 -05: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
Mike Plummer 59c926ba77 fix: Resolve Git Info when using alternative shells or Windows (#22741) 2022-07-15 18:55:21 -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 6fefe7d48b fix: Require react-dom as a dependency for React projects (#22572)
* fix: Require react-dom as a dependency for React projects

* fix: Update tests

* fix: Add react-dom as required dependency for Nextjs projects

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-30 08:05:36 +10: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
Tyler Biethman defde91f2a fix: process_profiler follow up work for v10 (#22363)
* fix: process_profiler follow up work for v10

* Converting index file to ts
2022-06-22 11:44:58 -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 2a276978de fix: handle cloud error/no internet error (#21526)
* feat: handle cloud error/no internet error

* Update error handling

* Add tests

* Fix TS

* Revert change

* fix: update gql error handler (#21542)

* fix: update gql error handler

* Add failing test

* Fix test

* Update with code review

* Update with code review

* Update packages/data-context/src/sources/CloudDataSource.ts

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>

* Add tests

* Prevent showing toaster

* Upodate with feedback

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-06-14 13:28:57 -05:00
Mike Plummer 474f026980 fix: Time out loading embed html for migration video, stub in e2e tests (#22165) 2022-06-13 12:00:23 -05:00
Lachlan Miller abd986aa41 fix: support ESM projects using TypeScript with ts-node/esm (#22118)
* fix: support ESM projects using TypeScript with ts-node/esm

* better error handling

* fix test

* indentation

* register ts-node via --require hook

* be less aggressive with erroring

* update fix system tests

* remove obsolete test

* handle case of not using typescript

* replicate 9.x behavior for legacy plugins w/ ts-node

* make test project valid and adjust tests accordingly

* use ts-node/esm transpile only

* dummy

* extract util function

* merge in refactor using projectFixtureDirectory

* fix test
2022-06-09 21:20:26 +10:00
Alejandro Estrada 91ba9c70d5 fix: watch only specs matching specPattern (#22067)
* fix: watch only specs matching specPattern

* Fix test for _makeSpecWatcher

* Fixes to accommodate chokidar weirdness, better tests

* Add extra safe to ignore node_modules

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-06 13:31:07 -04:00
Tim Griesser 333e25d576 fix: #22081 Cypress crashing behind proxy (#22099) 2022-06-06 12:35:57 -04:00
Swaana f987981d46 fix: prevent Cypress from crashing when getting machine-id fails (#22119) 2022-06-06 12:35:16 -04:00
Rachel 64ea96b1e0 fix: For E2E scaffolded blank specs, scaffold a spec that passes instead of fails (#22070) 2022-06-06 12:16:47 -04:00
Alejandro Estrada e170d5d014 fix: do not watch specs on run mode (#22060) 2022-06-02 15:14:19 -05:00
Alejandro Estrada 9caf623531 fix: do not show incorrectly support file migration step (#22015)
* fix: do not show incorrectly support file migration step

* Add supportFile

* Delete supportFile

* Update regexp

* Update comment

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-01 18:15:07 -05:00
Tim Griesser f33eca81bd fix: #22002 choikdar ignore EPERM issues (#22011)
* fix: #22002 choikdar ignore EPERM issues

* fix unit test

Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-06-01 16:49:15 -04:00
Alejandro Estrada e0e5a60ef6 fix: prevent adding default supportFile on migration (#21985)
* fix: prevent adding default supportFile on migration

* Update unit tests

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-06-01 09:26:18 -04:00
Tim Griesser ae8d4b2b05 fix: cleanup test flake (#21989)
* fix: test flake in e2e tests

* fix flake in GitDataSource.spec.ts
2022-06-01 09:24:41 -04:00
Tim Griesser 81e543a591 refactor: remove GitInfo from run mode (#21659)
* refactor: remove GitInfo from run mode
2022-05-31 13:54:00 -04:00
Alejandro Estrada 55230a408b fix: handle custom (default) integration folder for migration (#21617)
* fix: handle custom (default) integration folder for migration

* Handle testFiles

* Fix tests

* Update test

* Update typo

* Trigger percy
2022-05-27 14:57:15 -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 2c58432a23 fix: order projects by most recently opened (#21589) 2022-05-25 15:10:54 -05:00
Alejandro Estrada 87f1ed8d5e fix: handle git watch error (#21600)
* fix: handle git watch error

* Add test

* Cleanup sinon
2022-05-23 22:26:37 -05:00
Tyler Biethman 69f3b7a0af fix: Successfully create new specs files that do not have a known extension (#21593)
* fix: Successfully create new specs files that do not have known a known extension

* Adding e2e tests.

* Updating verbiage

* PR feedback
2022-05-23 16:04:35 -05:00
Bill Glesias a7ecbec2a3 fix: do not allow experimentalSessionAndOrigin to be available in CT … (#21588)
* fix: do not allow experimentalSessionAndOrigin to be available in CT per https://github.com/cypress-io/cypress/issues/21573

* remove experimentalSessionAndOrigin config as it is read only

* move runner session tests under own system test project to turn on experimentalSessionAndOrigin flag

* refactor session ui runner tests to point to runner-session-e2e-specs folder

* fix cypress_spec.js to account for experimentalSessionAndOrigin options

* remove experimentalSessionAndOrigin from env args
2022-05-23 13:55:15 -04:00
Zach Bloomquist 40a5d7f306 feat: launch project if cypress open --e2e/--ct --browser is used (#21538)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-05-18 18:08:40 +00: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
Lachlan Miller abea165832 fix: do not include non specs when globbing using --spec in run mode (#21462)
* fix: do not include non specs when globbing using --spec in run mode

* update pattern

* fix test

* update cdp spec

* wip - updates

* update snapshots

* update non-proxied spec

* update snaps

* update snaps

* rename specs

* update spec

* wip - snapshots

* snaps

* snaps

* update spec names

* update

* update test

* snaps

* update snap and spec

* snaps

* correct spec pattern

* snaps

* revert

* update spec and snapshots

* fix test

* update tests

* fix test

* update test

* update snapshot

* update snaps

* include coffee in specPattern

* update snapshots

* update snaps

* rename specs

* snaps

* update test

* update snapshot

* update

* snaps

* update snap

* update snaps

* fix test

* unskip test

* snaps

* add test
2022-05-17 18:11:42 +10:00
Zachary Williams df3ca1524d chore: remove unused codeGenGlobs (#21438) 2022-05-12 17:45:25 -05:00
Alejandro Estrada 07478cb7a6 fix: use correct path for scaffolding spec on CT (#21411)
* fix: use correct path for scaffolding spec on CT

* Refactor code

* Update with feedback
2022-05-12 15:55:46 -05:00
Alejandro Estrada 123a930831 fix: remove breaking options from testing type on migration (#21437)
* Add failing test

* fix test

* Refactor code

* Update test
2022-05-12 14:30:03 -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 cbca8f2b95 Merge branch '10.0-release' into muaz/UNIFY-1668-bug-real-time-git-updates 2022-05-09 12:26:55 -05:00
Alejandro Estrada ba4b4f295a fix: add custom specPattern if user opt out renaming spec ext (#21344)
* fix: add custom specPattern if user opt out renaming spec ext

* Update test, remove comment

* Fix tests

* Update returned config after migrating folder

* Update with feedback
2022-05-09 11:40:46 -05: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 19a9710876 Updated test to cover git info for another cwd 2022-05-06 13:53:49 -05: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
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
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
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
BlueWinds 8ff3c8b8e8 chore: Remove storybook related data-context and tests 2022-04-25 11:59:54 -07: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
Tim Griesser b0c8db3434 fix: Guard against slow requests in GraphQL Resolution (part 2) (#21020)
* add nexusDeferIfNotLoadedPlugin, remove GraphQLDataSource & ssr of graphql data

* add cachedUser for better rendering when cloudViewer is invalidated, fix types, tests

* guard for login to be visible before making next assertion

* revert onCacheUpdate changes

* fix for percy snapshots

* address @flotwig's simpler feedback

* Address types for versionData

* allow for nullish email in UserAvatar

* Ignore remote schema parent type in onCreateFieldResolver
2022-04-14 12:01:29 -04: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
Barthélémy Ledoux a6f19d0474 feat: make empty button available in ct (#20888)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-04-11 14:22:41 -05:00