Commit Graph

527 Commits

Author SHA1 Message Date
Lachlan Miller
9ca177c4be feat(app): run e2e tests (#18448)
* update server

* add launchMode param

* update logic

* update types

* update gql

* basic WIP for e2e

* hot reload

* dead code

* try to conditionally launch existing runner

* types

* update server

* params

* append gql port

* override to default ot e2e runner on launchpad and app e2e tests

* do not set launchpad variable for e2e runs

* use window to get graphql port and correctly run e2e conditionally using CIRCLECI env. var
2021-10-13 12:13:15 +10:00
Tim Griesser
7f6a64d789 chore: DX improvements in unify workflow (#18444) 2021-10-11 18:29:01 -04:00
Tim Griesser
d841e1331f refactor: Data context cleanup & IPC bindings for data push (#18357) 2021-10-11 12:13:41 -04:00
Tim Griesser
11ba5c53b1 chore: improving component test infra (#18378) 2021-10-06 14:21:13 -04:00
Cesar
98f2604abd feat: wire up add project button (#18320)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-10-06 07:42:40 -07:00
Tim Griesser
c200e95e14 chore: unify e2e tests launchpad (#18314) 2021-09-30 16:50:39 -04:00
Jessica Sachs
d39b1694aa feat: improved DX and support for running component and e2e tests w/ gulp (#18135)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-09-30 12:11:47 -04: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
Lachlan Miller
c9a7b4de76 merge in develop 2021-09-23 18:44:53 +10:00
Tim Griesser
bad700b593 feat: add gulp makePackage, begin to scaffold data-context (#18186)
* add gulp makePackage, begin to scaffold data-context

* Don't type error on unused locals
2021-09-22 23:18:44 +10:00
Tim Griesser
2b57a2600c chore: remove nxs.gen.ts - should be created by codegen (#18184)
* chore: remove nxs.gen.ts - should be created by codegen

* Ensure the gen dir exists before adding files to it
2021-09-21 14:27:34 -04:00
Tim Griesser
94541d4f18 feat: merging / delegating remote queries to cloud schema (#17875)
Changes:
- Pulls down & stitches in the "Cypress Cloud" schema from remote. Currently defaulted to "staging" so we can make quick fixes / iteration there
- Add dedicated type checking CircleCI job `check-ts`
- Adds [graphcache](https://formidable.com/open-source/urql/docs/graphcache/) to normalize the cache & provide better auto-reactivity when data changes
- Removes `LocalProject` / `DashboardProject` in favor of `Project` / `CloudProject`
- General cleanup of Vue components' GraphQL fragments
- Parallelizes launchpad tests & recording to new Cypress project: https://dashboard.cypress.io/projects/sehy69/runs
  - Did this b/c tests were frequently timing out, need to figure out the source of this
- Basic mocks for remote schema
2021-09-20 17:12:59 -04:00
Tim Griesser
863e3680bb fix: GH env variable for test other projects (#18147)
* use GH_TOKEN rather than creds var
2021-09-17 15:39:12 -04:00
Tim Griesser
a851d797a8 feat: improved DX for unified-desktop-gui (#18099)
- Moves graphql-codegen config to the root, which will serve all packages needing it
- Adds gulpfile for coordinating scripts related to dev environment in launchpad app
- yarn dev from the root runs yarn gulp dev, which:
  Runs autobarrel for rolling up the @packages/graphql files
  Cleans the dist & cache for .vite
  Starts the a codegen watcher for Nexus
  Starts the graphql-codegen --watch & highlights output
  Starts vite servers for launchpad & app
  Starts electron watch.js
2021-09-15 11:54:14 -04:00
Lachlan Miller
8bda0a9d02 chore: merge in develop to unified-desktop-gui (#18103)
* merge in develop

* remove accidentally merged file

* update types
2021-09-15 16:24:28 +10:00
Cesar
1762caccd8 feat: add state for global mode (#18085)
* add state for global mode

* use GlobalEmpty over GlobalPage

* Add comment to clarify global type

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>

* Update server.ts

* make global non nullable

* move GlobalEmpty to Main.vue

* update ClientTestContext to have global

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-09-15 10:40:06 +10:00
Zach Bloomquist
7b1d49c324 chore: update make-empty-github-commit to fix test-other-projects (#18078) 2021-09-13 17:52:00 +00:00
Lachlan Miller
53ee2bb70e merge in develop 2021-09-13 14:00:10 +10:00
Lachlan Miller
7a09856d3d remove all references to server-ct 2021-09-10 12:48:40 +10:00
Lachlan Miller
0fa4a7376f merge in develop and resolve conflicts 2021-09-08 16:43:35 +10:00
Chris Breiding
55ef4c3a11 chore: Prevent unnecessary files from being included in the binary (#17957) 2021-09-06 21:00:30 -04:00
Lachlan Miller
7e6ea26b6f allow larger artifacts 2021-08-25 11:16:50 +10:00
renovate[bot]
9df2543f88 fix(deps): update dependency electron to v13 🌟 (#17408)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-08-09 22:09:30 +00:00
Jessica Sachs
ade46721fb chore: switching to ff89 and chrome91 docker images 2021-08-04 03:29:05 -04:00
Jessica Sachs
35c51eb9c3 chore: bumping to 14.17.0 for npm dependency 2021-08-04 03:25:34 -04:00
Tim Griesser
e2f395e330 feat: Structuring context & schema so it can be used on the client (#17489)
* wip: Structuring context & schema so it can be used on the client

* chore: fix dev mode

* Continuing to restructure graphql patterns

* Cleaning up the server

* Don't hash for now, for vite

* fix for CI

* WIP on integrating with vue

* yarn lock

* no need to return props from setup

* use useResult for more concise and better type safety

* fix regression

* wip: migrate to apollo

* Wip: mostly working with pollInterval

* apollo -> urql

* cleanup

* continuing to cleanup

* fix: updates to tests, strict type checking

* Tests passing

* wip: attempting rename

* adding @packages/graphql

* simplified fragment testing

* fixing build scripts

* remove --inspect-brk

* fix ci scripts

* fix build again

* Fix tests

* Add express as dep to @packages/graphql

* fix packages

* chore(launchpad): minor updates (#17551)

* apply general improvemets from PR comments

* remove unused file

* comment out test for now

* stub out missing story module

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-08-02 22:54:33 +10:00
Tim Griesser
1550733c9d feat: Add graphql to unified-desktop branch (#17305)
* refactor: use getPathToDesktopIndex for launchpad path

* chore: add dependencies for graphql

* Get GraphQL & Vue working together

* update vue and remove need for patch-package

* add apollo example

* Update Wizard.vue

* Add prebuild

* update types

* update tests

* use debug instead of console.log

* skip test

* close gql server

* fix server unit tests

* try changing policies

* try to install angular via package.json injection

* update command

* move graphql-codegen to dependencies

* update package.json

* bump deps

* add gql

* update build

* add codegen.yml to build

* add schema to build

* include src for launchpad

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-07-20 23:50:51 +10:00
Lachlan Miller
1a9f12398f Merge branch 'develop' into unified-desktop-gui 2021-07-20 13:01:47 +10:00
Lachlan Miller
6b2b70229a do not require frozen lockfile 2021-07-20 12:25:07 +10:00
Jennifer Shehane
23edbc0595 Merge branch 'develop' into 8.0-release
# Conflicts:
#	yarn.lock
2021-07-19 11:20:10 -05:00
Ben Kucera
8a4848837a fix(breaking_change): default to headless and 1280x720 for cypress run in all browsers (#17309)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-07-19 11:18:52 -05:00
Zach Bloomquist
789c40568b chore: revert "fix(deps): update dependency electron to v13 🌟 (#17037)" (#17372)
This reverts commit bda59dd7cc.
2021-07-16 18:52:23 +00:00
renovate[bot]
bda59dd7cc fix(deps): update dependency electron to v13 🌟 (#17037)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-07-12 21:50:49 +00:00
Tim Griesser
16516b74b1 fix: copy yarn.lock to packages for deterministic builds (#17218) 2021-07-06 17:51:33 -04:00
Tim Griesser
ca44464521 fix: revert #17132 use hoisted yarn install in build binary (#17215) 2021-07-06 16:30:33 -04:00
Tim Griesser
b2b2a97132 refactor: additional script cleanups 2021-07-06 09:58:29 -04:00
Tim Griesser
1e005644ae refactor: update binary script files to be more procedural 2021-07-06 09:58:29 -04:00
Tim Griesser
00eca92afa refactor: rename binary script files js -> ts 2021-07-06 09:58:28 -04:00
Zach Bloomquist
5586059653 fix: add code signing certificate details for Windows build (#16946)
Co-authored-by: minijus <3633549+minijus@users.noreply.github.com>
2021-06-21 16:19:20 +00:00
Zach Bloomquist
8203770af8 chore: use cypress/browsers:node14.16.0-chrome90-ff88 (#16731) 2021-06-03 20:37:26 +00:00
Chris Breiding
97e7a524d4 chore: Ensure binaries are downloadable after release (#16735) 2021-06-02 10:08:11 -04:00
Braden Mars
315d845432 fix: Migrate from listr to listr2 (#16663) 2021-06-01 10:26:03 -04:00
Adam Gastineau
c4aaa58744 chore: Normalized reporters between CI tasks (#16608) 2021-05-21 08:10:53 -07:00
Chris Breiding
d20cb93b4d chore: Check for and update tested-against Chrome versions (#16549) 2021-05-19 11:13:54 -04:00
Chris Breiding
9401502387 chore: Test against repo-defined versions of Chrome stable and beta (#16341)
* feat: Add support for Chrome Beta

* chore: update yarn.lock

* chore: Test against repo-defined versions of Chrome stable and beta
2021-05-14 16:35:42 -04:00
Tim Griesser
07d7e24a3f chore: Improve CI build time by caching node_modules (#16115)
Improves the CI time by caching node_modules in a way that they can be re-used between CI runs if any items that would influence the node_modules have not changed (yarn.lock, {dev,peer}dependencies, *.patch files)
2021-04-21 13:56:32 -04:00
Barthélémy Ledoux
64cfa06c1e docs: make clean examples of vue component testing (#15796)
* remove all existsing examples

* create vue cli project

* add nuxt app example

* test: fix some vite tests

* docs: add tests to nuxt example

* add test script to nuxt example

* docs: add cy plugin nuxt

* fix: avoid creating support files

* test: add tests for vue cli

* test: fix CLI example

* fix the test

* test: make all vue examples be tested in ci

* ci: use minimist

* ci: fix cwd

* adjust the model for .env files making it easy to comment/uncomment the examples opened.

* protect empty module

* fix nuxt tests

* fix test protection

* more clear fix
2021-04-08 10:00:05 +10:00
Zach Bloomquist
87530303e4 fix: don't destroy browserwindow on process.exit (#15751) 2021-04-01 22:57:17 +00:00
Zach Bloomquist
f6a5d1ea2e feat: change cy.intercept override behavior (#14543) 2021-03-26 18:22:18 +00:00