Commit Graph

104 Commits

Author SHA1 Message Date
Ryan Manuel ed51bcbdda feat: Set up cypress in cypress (#19602)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2022-01-14 17:07:07 -06:00
Alejandro Estrada 2755f139d9 feat: use electron folder select (#19692)
* Use electron folder select

* Fix TS

* Do not block mutation response

* Fix TS

* Update with feedback
2022-01-14 12:15:26 -05:00
Zachary Williams 8b53acb3b2 fix: design review roundup (#19679)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-01-13 09:59:14 -06:00
Tim Griesser a9d0bc952b fix: various lifecycle issues, followup to #19572 (#19683)
* fix: various lifecycle issues, followup to #19572
2022-01-12 17:45:46 -05: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
Tim Griesser bfc032a2d4 fix: open browser at correct time during lifecycle (#19572) 2022-01-12 13:41:25 -05:00
Zachary Williams f43be8ae40 fix: fileparts processing and cleanup (#19660) 2022-01-12 21:21:21 +10:00
Lachlan Miller 1f28650d68 chore: change integration->e2e throughout code base (#19345)
* 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

* update default

* rename integration->e2e

* rename integration->e2e in packages

* spec.ts -> cy.ts

* spec.ts -> cy.ts

* _spec.js -> .cy.js

* .spec.js -> .cy.js

* .spec.js -> .cy.js

* update config

* update config

* update

* update spec ext

* update config

* update config

* 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

* spec.tsx -> cy.tsx

* update stop-only config

* exclude CT from E2E

* removed old test

* update spec pattern in angular

* update spec pattern in design system

* update all specs npm npm/react

* update spec name

* update spec patterns

* remove old script

* update tests path

* update config

* fix test

* update snapshots

* update examples

* update ignore patterns

* update snapshots

* unit tests

* update tests

* patch code coverage

* revert spec name

* rename a lot of speces

* update

* update spec ext

* update spec

* update spec

* update spec ext

* update lint

* update rules

* update lint

* snaps

* update spec dir

* update paths

* remove unused pluginsfile config opt

* update smoke test

* update create cypress tests

* update gitignore

* update types

* update paths

* update spe

* update test

* update all snaps

* update tests

* update http request spec

* update spec file names

* snaps

* update snaps

* updated snaps

* update snaps

* spacing

* spacing

* spacing

* spacing

* fix perf spec

* update

* update

* revert

* update

* snaps

* snaps

* rename spec

* update snaps

* snapshots

* update tests

* update tests

* update

* fix

* update test projects

* update

* updating

* update run-ct test

* update spec pattern and add defensive check around platform

* fix system test script

* update snap

* snaps

* update test

* update spe

* update for FF

* ff

* remove unused feature flag

* added tests

* fix react example

* update test

* update config

* update test projects

* update snapshots

* correctly remove private prefix on darwin

* fix types

* rename integration -> e2e

* update config

* updatec onfig

* fixing app scaffold integration tests

* remove code

* exclude e2e specs from CT

* update snapshot

* integration->e2e

* update path for test file in ts project

* update schematic

* use updated branch for CI

* update config

* update config

* revert some changes

* remove built code

* revert changes

* update gitignore

* include test spec

* update scaffold script

* wip: renames

* script

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* mass rename

* rename

* rename

* fix angular

* update spec in create cypress tests

* remove old file

* fix tests

* access specPattern in a more idiomatic fashion

* do not duplicate variable

* pass correct params to findSpec in files controller

* add comment explaining spec finding

* remove reference to old file that no longer exist

* resolve conflicts

* fix types

* transpile cypress dir

* update circle ymlg

* update spec pattern for example project

* supportFile: false

* fix circle yml

* update test glob

* rename some specs to use correct .cy ext

* more ext renames

* rename spec

* update extensions

* update extensions

* update specs

Co-authored-by: estrada9166 <estrada9166@hotmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-01-11 16:29:55 +10:00
Mark Noonan ff6b2cc346 feat(unify): allow prompts to auto-open after set time (#19571) 2022-01-10 15:26:55 -06:00
Zachary Williams f953c59e9a feat: add spec watcher to data-context (#19583)
* feat: add spec watcher to data-context

* fix typo

* attempt to fix flake

* fix path.join

* if this fixes it I'm going to be upset

* remove unused code

* address comments
2022-01-10 12:30:38 +10:00
Barthélémy Ledoux 1773001c54 fix: dev-server types (#19576) 2022-01-07 14:41:36 -06:00
Lachlan Miller a1906e6996 chore: fix temporarily skipped specs on 10.0-release (#19611)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-01-07 10:47:36 -07:00
Lachlan Miller 2be8e16d4c freeze ipc 2022-01-07 13:41:35 +10:00
Emily Rohrbough 9c6da31123 test(launchpad): add e2e tests for Project View - Global mode (#19267)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-01-06 15:20:11 -06:00
Barthélémy Ledoux 9b79503ac8 fix: union type to work in graphql tests (#19447)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-01-06 09:21:02 -06:00
Alejandro Estrada 0366d4fa89 feat: use supportFile by testingType (#19364)
* feat: use supportFile by testingType

* Fix defaults

* Start renaming files, and updating system-tests

* Fix some tests

* Fix some tests

* Fix more tests

* Try to fix CI

* Fix more tests

* Fix some tests

* Revert changes

* Revert supportFile defaultValue

* Fix some tests

* Fix some tests

* Fix some tests

* Fix some tests

* Update supportFile example

* Update snapshots

* Remove scaffold support

* Handle config errors

* Remove scaffold

* Fix tests

* Fix test

* Update test

* Fix test

* Update supportFile template

* Fix template
2022-01-05 13:37:44 -05:00
Zachary Williams 0d51a9252b fix: make switching testing types work (#19554) 2022-01-04 16:26:52 -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 a744999c24 refactor: remove concept of liveMutation (#19528)
* refactor: remove the concept of liveMutation

* fix types

* Fix types

* add missing cache key

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-01-04 11:19:31 +10:00
Barthélémy Ledoux 76466691dd feat: implement the ui for migration to 10.0 (#19371) 2022-01-03 14:42:08 -06: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
Tyler Biethman b441950fcf test: Adding Choose a Browser E2E Tests (#19268)
* Adding e2e tests for Choose a Browser page

* Adding test for browser launch

* Additional validation for browser launch

* Add own todo

* Prevent browser from opening during launch test

* Cleaning up tests a bit, fixing bug in warning dismissals temporarily

* Updating tests to follow new setup APIs

* Adding test case and aligning with spreadsheet.

* Updating tests with data-cy usage

* Fighting types a bit

* Cleaning up some TS warnings. Applying some PR feedback.

* Fixing test that was using wrong test id attr

* Fixing tests

* accessibility fix

* Updating tests with PR recommendations and accessibility tweaks

* update getter

* Adding test simulating Electron injection workflow

* Updating no browsers test case

* Fixing tests after merge

Co-authored-by: Mark Noonan <mark@cypress.io>
2021-12-21 17:06:47 -06:00
Tyler Biethman 7b41115260 test: Adding tests for Page Top Nav workflows (#19375)
* WIP

* Adding browser tests

* Adding versions tests

* Adding docs tests

* Don't need to launch with firefox here

* Updated existing tests to use data-cy

* Adding test command for browser setup. Updating tests with PR feedback

* Adding basic login tests

* Fixing tests in merge

* More PR feedback

* Updating tests with data-testid usage

* Fixing test selector
2021-12-21 09:26:23 -06:00
Zachary Williams b302739dd5 fix: spec from story generation, add deps for install (#19352) 2021-12-14 10:36:02 -06:00
Tim Griesser 806a31a989 refactor: Improved support for e2e testing (#19306) 2021-12-09 21:23:58 -05:00
Tim Griesser a499c99f18 fix: CI Fixes related to #19308 (#19314)
* Fixing proxy_performance_spec
2021-12-09 09:48:27 -05:00
Tim Griesser 9d975ec81e refactor: makeLegacyContext -> getCtx (#19308)
* refactor: makeLegacyContext -> getCtx

* Fix tests & types

* fix: failing tests

* CI fixes
2021-12-09 10:56:31 +10:00
Alejandro Estrada cc2d734818 feat: update on-links (#19235) 2021-12-03 13:23:44 -05:00
Alejandro Estrada 195da20ff5 fix: prevent error if project do not have git (#19200) 2021-12-02 13:32:34 -06:00
Alejandro Estrada 831d9d316c feat: Fix gitInfo dataLoader error handler (#19185) 2021-12-03 00:43:18 +10:00
Barthélémy Ledoux e5490cfa8f fix: show real current branch in project (#19163)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-12-01 19:47:46 -05:00
Lachlan Miller cc3be10f73 feat(graphql): ability to update/query for appData (#19082)
* move to ts

* refactor

* test

* type

* fix tests

* types

* simplify update preferences via graphql

* types

* simplify

* show config in editor

* fix test

* add description for mutation and update default prefernces

* update schema

* update docs

* update description of localSettings field

Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Mark Noonan <oddlyaromatic@gmail.com>
2021-11-29 23:04:57 +10:00
Zachary Williams a4bec4a8a3 feat: switch browser runner (#19048)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-11-24 11:57:25 -06: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
Chris Breiding 0665e13251 feat: Improve launchpad browser warning (#18939)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-22 13:59:15 -05:00
Tim Griesser 92aa22a9ac chore: post-merge cleanup 2021-11-20 21:39:16 -05:00
Alejandro Estrada 2573375b5b feat: add devServer to config file (#18962) 2021-11-19 13:42:58 -05:00
Tim Griesser 866264b3af fix: CYPRESS_INTERNAL_VITE_DEV for development 2021-11-18 11:10:48 -05:00
Alejandro Estrada 5fe1f5bd3b feat: Create default config file (#18943) 2021-11-18 09:36:56 -05:00
Lachlan Miller e983f90735 feat(app): support editor preference (#18932)
* editors

* update openerId to binary

* types

* work- around

* refactor

* wip

* rejig actions

* update gql fragments on front-end

* update test

* remove old code

* lint

* remove old test

* wip

* use i18n

* use live mutation

* save editor in same format as other preferences

* update editor opening api

* wip: types

* types

* lint

* types

* simplify types

* implement prox ysettings

* types

* old code

* old import

* update test code

* remove old code

* allow using custom editor

* add tests
2021-11-18 13:40:14 +10:00
Tim Griesser 2eb0ff551a feat: improve vite DX (#18937) 2021-11-17 11:24:04 -05:00
Alejandro Estrada bb8251b752 feat: Use plugins on config files (#18798)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-16 14:45:26 -05:00
Jessica Sachs 8a2acdcdfa BREAKING CHANGE: trigger major bump 2021-11-16 14:26:47 -05:00
Jessica Sachs ef8a3dca20 BREAKING CHANGE: trigger major bump 2021-11-16 14:20:21 -05:00
Jessica Sachs 664948c271 fix: fix cypress/package.json crasher 2021-11-16 13:49:19 -05:00
Lachlan Miller ded63adeb2 feat(app): remove __vite__ route and default to unified runner (#18909)
Co-authored-by: Mark Noonan <mark@cypress.io>
2021-11-15 12:32:10 -05:00
Lachlan Miller c670ae672c feat(app): show previous versions (#18838)
* add gql endpoint and format

* types

* update schema and endpoint

* unused code

* lint

* types

* improve tests

* move static strings to i18n

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-11-15 10:03:14 +10:00
Zachary Williams c66a890229 feat: scaffold integration files in app (#18763) 2021-11-15 09:44:49 +10:00
Tim Griesser d65a6df9bf refactor: move currentProject to root data (#18834) 2021-11-11 21:19:31 -05:00
Tim Griesser 88280153e9 chore: additional app shape cleanup (#18826) 2021-11-11 20:44:13 -05:00