Commit Graph

51 Commits

Author SHA1 Message Date
renovate[bot] a77371c47a fix(deps): update dependency simple-git to v3.15.0 [security] (#25073)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-12-27 12:28:26 -06:00
Adam Stone-Lord 166b69414c feat: create from React component (#25168)
* feat: server logic for create from React component (#24881)

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* fix: add default export detection (#24954)

Co-authored-by: astone123 <adams@cypress.io>

* update cache

* update yarn.lock to fix builds

* fix: compilation with webpack preprocessor

* feat: create from React component UI (#24982)

* feat: WIP server logic for create from React component

* feat: add more tests; error handling

* feat: WIP create from React UI

* feat: PR feedback [run CI]

* feat: try committing snapshot cache changes [run ci]

* feat: try re-generating snapshot [run ci]

* fix build

* regenerate cache on darwin

* update caches

* Revert "feat: try re-generating snapshot [run ci]"

This reverts commit d763e1f7a4.

* fix typing error

* types

* fix test

* chore: try using react-docgen@6.0.0-alpha.3

* update test

* regen linux snapshot

* update snapshots for darwin

* re-gen linux snapshot

* yarn install

* update snapshots

* update snapshot metadata

* update snapshots due to babel deps changing slightly

* make react docgen a dep

* update tests

* revert

* snapshots again??

* revert

* update

* update

* try change snapshot

* change snap

* update snap

* feat: remove unnecessary ts-ignore

* feat: add more test cases

* feat: create CodegenActions; other minor refactors

* feat: continue UI work

* feat: ignore config and Cypress-related files

* feat: PR feedback

* update Vue component link

* merge in default export work

* consolidate graphql queries

* other misc feedback

* use network-only policy to fetch files; include cypress/ dir for code gen candidates; fix type error

* add basic e2e test

* fix app integration tests

* refactor and fix app component and webpack dev server tests

* add error state; fix unit tests [skip ci]

* simplify generator show logic [skip ci]

* more testing

* fix types

* style updates [skip ci]

* fix error state [skip ci]

* fix list padding [skip ci]

* use slots (#25079)

* add more tests; fix unit tests

* fix types

* fix test describe

* add percy snapshots for new list

* update trouble rendering banner link [skip ci]

* use collapsible component

* use button for component list items

* fix tests

* build binaries

* revert changes to circle config

* remove eslintignore and extra loading div [skip ci] because we know it will fail

* revert changes to framework glob patterns [skip ci]

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* feat: pass parser options to allow parsing of tsx files (#25145)

* fix create from component e2e test

* build binaries [run ci]

* fix component tests [run ci]

* regen windows snapshot

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-12-19 12:42:14 +10:00
Jordan ed90b14d4f refactor: move linting to each lib to enable caching (#24424) 2022-11-17 17:31:19 +10:00
Ryan Manuel b0c0eaa508 feat: introduce v8 snapshots to improve startup performance (#24295)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Ben M <benm@cypress.io>
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Adam Stone <adams@cypress.io>
Co-authored-by: Blue F <blue@cypress.io>
Co-authored-by: GitStart <1501599+gitstart@users.noreply.github.com>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: Sam Goodger <turbo@tailz.dev>
Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: Vilhelm Melkstam <vilhelm.melkstam@gmail.com>
Co-authored-by: amehta265 <65267668+amehta265@users.noreply.github.com>
2022-10-31 20:20:27 -05:00
Zachary Williams df3ca1524d chore: remove unused codeGenGlobs (#21438) 2022-05-12 17:45:25 -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
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
Zach Bloomquist c336d7da5c chore: remove unused parts of design-system, move SCSS to runner-ct (#21345) 2022-05-05 23:02:43 +00:00
Tim Griesser 637f333c64 chore: upgrade urql dependencies (#21302)
* chore: upgrade urql dependencies

* fix
2022-05-03 14:02:59 -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
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
Barthélémy Ledoux ae9a0718f1 fix: remove create spec from story (#20876) 2022-04-05 14:35:26 -05:00
Alejandro Estrada e6cbc5ae1e fix: windows build (#20854)
* fix: update icons build to work on windows

* Add rimraf

* Update scripts

* Update script

* Update scripts

* Fix windows migration

* Update postinstall script

* Remove script
2022-04-04 11:12:08 -05:00
Lachlan Miller 7bb5571146 fix(app): show correct git status for newly created/modified files (#20744)
* use user shell for git command

* fix: support git status for staged and modified files

* use simple git to get username

* remove test file

* types

* add default statusType

* fix test

* add test

* add e2e test

* remove old code

* fix tests

* set email during tests

* make test less flake

* add logging

* try move test to another file

* use debug instead of console.log

* add wait

* rename spec

* wip: live updates via subscription

* fix bug in spec list stale cache

* types

* fix test

* new git instance per test

* do not show author for locally modified files

* no status for folders

* fix test

* remove old file and fix snapshot

* fix types

* update test stubs

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-29 06:06:45 +10:00
Alejandro Estrada 30c9c3dc80 feat: create default spec file name based on specPattern (#20654)
* feat: create default spec file name based on specPattern

* Fix TS, add test

* Add tests

* Add more tests / refactor

* Update test

* Update tests
2022-03-23 11:53:38 -05:00
Tim Griesser b89a7ea618 chore: fix data-context clean script, scaffoldProjectNodeModule in open mode (#20730) 2022-03-22 13:08:14 -04:00
Tim Griesser 92eac2f67e feat: Error standardization (#20323)
* refactor: reworking client-side error shape

* feat: add the CodeFrame to baseerror

* consolidate baseError handling, type fixes

* Fix UNIFY-1164 w/ test cleanup to avoid intercepting

* fix types, cleanup based on review / Brian

* fix: imports / types / tests

* cleanup tests, fix TSError location, add reinitializeCypress mutation

* fix: show correct stack trace file name (#20410)

* Improve comments for regexes / TSError capture

* feat: Add codeframe to error, address PR comments

* update snapshot

* change codeframe impl, per Brian's request

* Attempt to fix test flake

Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@hotmail.com>
2022-03-02 18:03:52 -05:00
Lachlan Miller 7a029256e8 fix(launchpad): support default export (#20383)
Co-authored-by: David Munechika <david.munechika@gatech.edu>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-01 17:33:44 -06:00
Barthélémy Ledoux 9f624b4f7a feat: update icons with new design (#20338)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-02-28 12:28:14 -06:00
ElevateBart 72ca01431d fix: make the glob groups work on windows 2022-02-26 21:27:27 -06:00
ElevateBart 9de5be4e4e fix: stop deleting files on install 2022-02-26 15:05:12 -06:00
Barthélémy Ledoux f0d02c154e fix: allow to migrate files that already have a .cy. (#20249) 2022-02-24 13:56:00 -06:00
Brian Mann da48210216 Merge branch '10.0-release' into 10.0-release-merge-4b50f9ee 2022-02-18 15:11:59 -05:00
Zach Bloomquist 73e936e289 test: clean up scaffoldMigrationProject (#20203) 2022-02-15 18:07:27 +00:00
Cesar 3103442b92 fix: migration ui differences (#20134)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-02-14 14:00:48 -07:00
Tim Griesser 6279a7dd10 wip: type fixes & changes after merge 2022-02-14 08:20:11 -05:00
Ryan Manuel c52e07d576 feat: Update version checking logic to query the manifest and ensure ctx.util.fetch can handle a proxy (#20107)
Co-authored-by: Zach Bloomquist <git@chary.us>
2022-02-11 17:00:16 -06:00
Barthélémy Ledoux ee08f4ae95 feat: waiting for dependencies to be installed in wizard (#19955) 2022-02-02 14:19:33 -06:00
Cesar b16eb65eb2 fix: migrate config fields to correct the location (#19940)
* testFiles

* ignoreTestFiles

* supportFile

* use utility functions

* remove setupNodeEvents and supportfile from component

* don't throw for supportFiles query

* custom integrationFolder default testFiles

* add default e2e directory to e2e specPattern

* add missing type import

* work on migration project docs

* update docs

* use prettier to run assertion

* add detailed breakdown of expected config and update code to correspond

* remove unused code

* update comment

* update component testing migration expected configurations

* wip: tests for edge cases

* make plugins require relative

* do not add defineConfig if they do not have cypress 10

* edge case of define config

* system test

* do not show supportfile for CT only project

* fix: set correct config file on migration (#19990)

* fix: set correct config file on migration

* add e2e test

* Fix test

Co-authored-by: Cesar Avitia <cesar@cypress.io>

* fix: allow default support file to be TS

* test: with a ts support file

* refactor: duplicate hasTypeScript in migration

* move migration utils files

* rename functions that returns globs with globs

* fix(launchpad): Support migrating projects w/o pluginsFile  (#19993)

* handle case of no plugins file

* fix readme

* style: add comments

* build: fix types

Co-authored-by: ElevateBart <ledouxb@gmail.com>

* fix types

* fix migration unit-tests

* fix: build for unit types

* fix shouldShowSteps unit tests

* fix: typo

* do not import from data-context in frontend test

* remove non-type import

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2022-02-02 10:42:30 +10:00
Cesar 7b8e12eb06 feat: migration rename files (#19807)
* getSpecs

* move files

* move specs

* hook up gql and f/e components

* work on migration code

* update gql

* fix logic and update graphql

* wip: types

* connect removing files and write e2e test for it

* support renaming support file

* types

* feat: display migration errors

* fix types

* recursively move files

* fix types

* refactor: use "nextstep" instead of "setStep"

* add function to facilitate live component testing migration

* refactor: make steps filterable

* refactor: make migrationlistitem instead of slots

* test: make sure tests pass

* work on backend for component testing updates

* hook up emitter

* fix types

* types

* remove test

* move isomorphic migration code to separate file

* update imports

* fix test

* more idiomatic usage of gql codegen

* styling

* fix unit tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2022-01-25 23:17:41 +10:00
Zach Bloomquist 3ea5171a82 test: run data-context unit tests in CI (#19844) 2022-01-24 17:43:27 +00:00
Barthélémy Ledoux b5cafecef0 fix: wire up the step field and other migration fixes (#19806) 2022-01-21 15:26:38 -07:00
Tim Griesser f750aea088 refactor: namespace & consolidate launchpad / graphql routing (#19746)
* refactor: namespace & consolidate launchpad / graphql routing
* fix: ensure vite dev flow works
* fix: proper tslint, fix race condition
2022-01-19 17:43:42 -05:00
Zachary Williams c5c0b00d45 feat: use real spec pattern and wire up no specs page (#19703) 2022-01-19 10:19:42 -06:00
Barthélémy Ledoux e4147e56c3 feat: error screens in app when cloud runs are failing (#18980)
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: estrada9166 <estrada9166@hotmail.com>
Co-authored-by: David Munechika <david@cypress.io>
2022-01-12 14:50:19 -06:00
Lachlan Miller 792980ac12 feat: support specPattern, deprecate integrationFolder and componentFolder (#19319)
* use new specPattern API

* remove projectApi.findSpecs

* do not require integration folder

* support --spec

* support --spec

* remove old code

* remove old code

* nuke old code

* no appvetor

* update

* correct url for ct

* work on migrating launchpad

* update ct spec url

* types

* types

* dead code

* remove old endpiont

* revert back circle.yml

* update missing config

* delete spec util

* update config

* update config

* config again

* update spec pattern

* updated vue config

* update spec pattern for ui components

* update config for vite dev server

* update snapshots

* update config

* update design system config

* fix spec pattern in reporter

* update default

* update deprecated spec snapshots

* update system tests

* update run mode output

* revert changes

* lint

* remove scaffold tests

* update angular

* fix CT

* update circle yml

* fix system tests for ct

* fix tests

* work on server unit tests

* patch package

* patch package again

* update test

* try not to rely on config async loading too much

* normalize specPattern to array

* update snapshot

* use base name

* deal with react-scripts later

* update snapshot

* hacky way to update snapshots

* new hack to update snapshots

* trying again

* hacky fix

* ci: snapshots

* ci: snapshots

* snapshots

* mas updates

* update spec API

* fix test

* fix test

* update

* update test

* fix test

* update plugin

* update spec

* webpack optinos

* Update launchpad tests

* fix screenshot paths

* updated snapshot

* change pattern

* guard

* fix smoke test

* patch code coverage

* update percy config

* fix specs

* try updating example project

* update snapshots

* remove old test

* remove snapshot hack

* add back appveyor

* remove old code

* update snapshot

* Fix tests

* wip

* revert snapshot

* reverted all snaps

* remove only

* remove commnet

* remove old code

* reverted file

* lint

* revert video compression spec

* update snapshot

* update spec path logic

* update snap

* updated snap

* snaps

* snaps

* fix spec

* rename ignoreTestFiles to ignoreSpecPattern

* update screenshot dir for runner-ct

* update deprecations

* update

* upate

* fix test

* update snaps

* update snap

* updating snap

* added missing snaps

* updated cypress run mode integration spec

* electron snapshot

* ensure newly scaffold specs are cached

* fix launchpad spec

* types

* update test

* transpile based on spec pattern

* add back example

* remove unnecessary async and nodeVersion

* removed old test

* update spec pattern and add defensive check around platform

* remove unused feature flag

* added tests

* fix react example

* update test

* update config

* fix spec finding in run mode

* fix tests

* fixing specs

* fix switching between specs

* remove invalid test

* increase timeout

Co-authored-by: estrada9166 <estrada9166@hotmail.com>
2022-01-04 14:24:24 +10:00
Tim Griesser 4626f7481c feat: ProjectLifecycleManager & general launchpad cleanup (#19347)
See #19347 for full summary

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: estrada9166 <estrada9166@hotmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com>
Co-authored-by: Jess <jess@jessicasachs.io>
2021-12-21 21:28:44 -05:00
Lachlan Miller 168600b285 feat(launchpad): open in IDE modal and feature (#18975)
* better tests

* basic support for open in ide

* extract modal component

* mutation to open file

* remove old code

* add a ton of tests

* update

* lint

* types

* ignore typeless import

* update links

* backwards compat so we do not break all system tests

* add back missing code

* missing code

* fix bug

* add regression test

* ts

* types
2021-11-24 11:00:16 +10:00
Jessica Sachs 8a2acdcdfa BREAKING CHANGE: trigger major bump 2021-11-16 14:26:47 -05:00
Zachary Williams c66a890229 feat: scaffold integration files in app (#18763) 2021-11-15 09:44:49 +10:00
Zachary Williams a5a232dd88 feat: add codegen utility (#18708) 2021-11-01 14:42:02 -04:00
Lachlan Miller 0501452fb9 fix: support using create-cypress-tests as part of build process (#18714)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-01 12:19:22 -04:00
Tim Griesser 4e25061e8e feat: prerendering data for app load (#18704)
* feat: prerendering data for app load

* Fix deps

* Fix create-cypress-tests in build
2021-11-01 11:21:26 +10:00
Tim Griesser 05887aa3dd feat: Adding a cache layer for remote queries, e2e test helpers (#18652) 2021-10-26 19:37:02 -04:00
Zachary Williams e93a074abc feat: detect framework, guess component glob and query files (#18548)
* feat: detect framework, guess component glob and query files

* add test for Storybook detection and spec generation

* fix test flake

* chore(app): simplify glob finding logic (#18562)

* rebase, use globby, create new test project

* fix ts and test scaffold

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-21 09:44:28 +10:00
Tim Griesser d841e1331f refactor: Data context cleanup & IPC bindings for data push (#18357) 2021-10-11 12:13:41 -04:00
Zachary Williams 745b3ac451 feat: index.html configurability and storybook support (#18242) 2021-10-08 13:16:30 -05:00
Tim Griesser 1d5b185c5b refactor: remove nexus-decorators, add data context (#18211)
- Add `@packages/data-context`
- Add `yarn gulp makePackage` for scaffolding a new server package
- Removes `nexus-decorators` in favor of regular Nexus, creating better separation between data & schema
- Possible to launch project in different browser types

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Cesar <cesaravitia@outlook.com>
2021-09-27 11:49:39 -04:00
userquin 8614e97802 fix(unified-desktop-gui branch): initial installation on windows (#18247) 2021-09-25 14:18:17 -04:00