Commit Graph

26 Commits

Author SHA1 Message Date
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
Tim Griesser bfc032a2d4 fix: open browser at correct time during lifecycle (#19572) 2022-01-12 13:41:25 -05: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
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
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
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
Tim Griesser 806a31a989 refactor: Improved support for e2e testing (#19306) 2021-12-09 21:23:58 -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
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
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
Tim Griesser 92aa22a9ac chore: post-merge cleanup 2021-11-20 21:39:16 -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
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
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
Chris Breiding a9902b2fe6 feat: Support --browser cli option in Launchpad (#18473) 2021-11-08 11:06:23 -05:00
Chris Breiding 0422ede8a5 chore: Add e2e tests for global mode (#18719) 2021-11-04 09:31:58 -04: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
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
Cesar ee4df22cb5 feat: save preferences to cache (#18535)
* save preferences to cache

* connect browserWindow to context

* fix types

* type nitpick

* hide dock icon when window is hidden

* clean up merge conflict

* pr feedback

* refactor preference cache code, fix and add cache tests
2021-10-20 08:41:34 +10:00
Lachlan Miller 463cc03ca1 fix(launchpad): fix bugs and update global mode component (#18465) 2021-10-15 12:27:23 -04:00
Mark Noonan e5c3c8ecd7 feat: (launchpad) UNIFY-429 login happy path (#18439)
* setup initial login modal

* add some i18n to login modal

* show name in header after login

* wip login modal state

* get basic login flow working

* schema update

* add icon and handle hocus for login button

* add close icon to modal, improve styles

* add loading icon to auth button

* use env var to target profile link

* add browserOpened state to gql for auth

* fix type errors & add one style

* add intial tests for login flow

* round out happy path tests

* extrac avatar component from header bar

* lint fix

* remove console log

* formatting

* add gravatar

* test for "waiting" status

* cleanup

* remove unintended change

* improve keyboard behavior on auth modal

* update header test to match new focus behavior

* assign ctx before returning it

* formatting

* pairing with cesar

* add a query just for refetching browser status

* tweaks based on review

* Update packages/data-context/src/actions/AuthActions.ts

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

* fix issue from merging

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-13 01:39:27 +10:00
Tim Griesser d841e1331f refactor: Data context cleanup & IPC bindings for data push (#18357) 2021-10-11 12:13:41 -04:00