Commit Graph

81 Commits

Author SHA1 Message Date
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
Mark Noonan 1f0221a5a4 feat(unify): Open external links in user's default browser (#18780)
* initial setup for external links in launchpad

* move external link click into its own file

* basic type

* remove target from links to avoid confusion

* add e2e tests for opening external links in App and Launchpad

* remove checks for target blank from tests

* add base link and external link components

* initial pass to update all links

* allow for variants without hocus

* convert links, remove target attr

* remove old external link util

* cleanup

* readme updates

* add test

* move test to Base Link

* add some tests around button links

* move openExternal import

* fix imports

* whitespace issues

* update link

* allow for tailwind override

* fix type error

* some changes from PR feedback

* remove unused import

* fix test

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-11-09 23:57:18 +10:00
Tim Griesser 4929c85c77 fix: share urql cache keys between client & server (#18836) 2021-11-08 23:35:27 -05:00
Tim Griesser 2cf78aab92 refactor: consolidate data-context (#18776) 2021-11-08 23:13:18 -05:00
Tim Griesser f57a6ee410 chore: remove dead code (#18833) 2021-11-08 22:55:45 -05:00
Tim Griesser e4f9993d29 chore: Rename activeProject -> currentProject (#18709)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: estrada9166 <estrada9166@hotmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com>
2021-11-08 16:00:28 -05:00
Chris Breiding a9902b2fe6 feat: Support --browser cli option in Launchpad (#18473) 2021-11-08 11:06:23 -05:00
Tim Griesser e018a14c21 feat: Add typings for new devServer config (#18797) 2021-11-08 11:02:01 -05:00
Jessica Sachs b457751a9b feat: create specs ui (#18483)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-05 13:32:43 -04:00
Chris Breiding 0422ede8a5 chore: Add e2e tests for global mode (#18719) 2021-11-04 09:31:58 -04:00
Barthélémy Ledoux 5f77c151d1 refactor: move settings in app (#18729)
* refactor: move settings in app

* add needed icons

* icons fixes

* make copy-button opt in in shiki

* almost done with projectId

* Remove settingPage

* make a step forward

* fix: add first record key to runs empty

* fix: remove double header

* fix listHeader again

* remove a change on shiki

* fix a few issues

* fix: typescript should pass

* make better use of SettingsCode

* it is as ready as it will be

* dependencies optims

* finish adding the last parts

* add end to end tests

* avoid using the DOM structure to end 2 end test

* more concise ternary

* two fixes in ListRowHeader.vue

* remove unwanted vite dependencies

* strengthen typings

* remove explicit class prop from RowHeader

* fix some accesibility issues

* restore focused status

* rename runspage to runscontainer

* minor css tweaks

* match some border values to figma

* resolve conflicts

Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-11-04 12:52:55 +10:00
Cesar 1158bcdc6d feat: setup launchpad lifecycle (#18734)
* connect gql to frontend

* launch server side

* add reconfigure button

* complete flow

* fix reconfigure bug

* fix types

* rename launchpad to electron

* remove beforeunload event listener

* use _config

* chore(data-context): inject electron, add test (#18770)

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-11-04 10:14:37 +10:00
Alejandro Estrada 081dd19cc6 feat: Use .config files (#18578)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-02 10:24:39 -04: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
Lachlan Miller a064d1c7d8 fix(app): do not cache graphql (#18716)
* do not cache graphql

* reduce need to access this.ctx.graphql

* Apply suggestions from code review

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

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-11-01 23:22:56 +10:00
Lachlan Miller 789724a1a1 fix(data-context): make git info more defensive, handle white space (#18717)
* make git info more defensive

* add component to runner-ct

* handle white space
2021-11-01 19:37:31 +10: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
Barthélémy Ledoux 6b14c621ee refactor(app): move runs page in the app (#18606)
* move runs to the app

* remove unused import

* fix routing to runs page

* fix some spacing

* make sure all the solid icons are available

* use the new icons in the runs

* Add and test some useful states

* make and use skeleton for runs

* fix spacing and containers

* fix filerow after refactoring

* fixes on config files

* best skeletton ever

* fix review design with ryan

* add a composables

* add the e2e tests of runs WIP

* remove progress circle

* merge runs page and runspage

* remove anti blinker

* yagni the props

* use main instead of div for runs page

* simplify icons architecture

* use a lookup map to get icons

* remove tabs from file

* fix: add a few more states

* Add runerror

* fixes for rendering mock cloud data in e2e (#18654)

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

* Fix could not find browser

* add data-cy flags and fix tests

* e2e tests added and passing

* fix tests

* remove RunError since we don't have the model yet

* all test shells are ready

* add necessary runs icons

* Make RunConnect component

* better render

* fix typecheck

* fix icon for runs page

* center the connect page vertically

* create the Empty page

* fix alignments

* fix the purple

* adjust copy button size

* final touches

* detail fixing

* better transition patterns

* fix scroll

* fix gql generation

* fix some unneeded changes

* fix some typescript

* fix last ts

* better tooling for copy button in shiki

* refactor: fix path to terminal prompt

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* refactor: invert conditions in RunsConnect

* fix: make connect before checking if there is data

* fix-shrinking page

* fix: code tripping over export default

* fix one laste test

* fix: resolve the title of the project

* refactor: remove the "top" query

* fix: add the top 10 back... @tgriesser

* all component tests work and pass

* typo in comment

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* fix correclty

* change maybe projects back

* use transition from design system

* fix compoennt test

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2021-11-01 10:43:52 +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
Blue F 196e8f62cc feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead (#18422)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-10-26 10:36:44 -04:00
Zachary Williams 0e823142d3 feat: codegen component and spec (#18600) 2021-10-22 12:40:57 -05: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
Barthélémy Ledoux 2e9ed8d07f feat: scaffold multiple file in setup (#18482)
* feat: create filerow component

* move badge to frontend-shared

* update badge

* refacto: remove import defineEmits

* update vite

* fix: windi config snafu

* fix badges colors

* move listrow to frontend-shared

* refactor: move icons in the shared area

* refactor: extract config-file and template

* refactor: use the ListRow for runcard

* fix some css mixups

* refactor: use ryans icons in runs

* test all the options of the run

* use ryans icons for cloud test status

* add sampleConfigFiles to Wizard data context

* use the configfiles in the wizard

* restore the balance to the force

* only get the config files when mounting

* add comment

* final cleanup

* refactor: update message and ignore test WIP

* there is still a warning about an id missing

* add test for ConfigFiles and adjust focus

* fix: encode description

* Update copy of page

* rename key of step

* fix barrel issue

* only one cypress:open necessary

* make sure the errored status start open

* simpler filerow

* fix warning alignment

* fix ts

* fix the merge issues

* allow undefined in shiki language

* final fixes

* fix single quotes

* correct curly

* fix tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-20 17:58:09 +10:00