Commit Graph

88 Commits

Author SHA1 Message Date
Mark Noonan 49d699336b chore(unify): always allow devtools in launchpad (#20298)
* no longer check if dev to show devtools

* match tests to new behavior

* remove 'withDevTools` option

* Revert "remove 'withDevTools` option"

This reverts commit ff4a8b96e4.

* rename withDevTools to withInteralDevTools

* coniditionally show internal dev tools in menu

* test nesting
2022-02-23 11:23:11 -05:00
Tim Griesser 808b2c7002 Merge branch '10.0-release' into 10.0-release-merge-4b50f9ee
* 10.0-release:
  feat: Updating reporter panel's default width to match new designs (#20231)
  feat(unify): Login error states (#20204)
2022-02-21 20:17:37 -05:00
Mark Noonan 2997e0e129 feat(unify): Login error states (#20204) 2022-02-21 12:42:02 -05:00
Brian Mann 6f2bccebd5 properly skip describe suites + tests and add TODO comments 2022-02-18 17:08:44 -05:00
Brian Mann f076a64f3b rename clone -> cloneErr 2022-02-15 02:15:15 -05:00
Tim Griesser 6b539b05f5 feat: graphql over websockets (#20108)
* feat: graphql over websockets

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-02-10 16:28:37 -05:00
Ryan Manuel 56626c62a8 feat: Focus browser from select browser screen and on dashboard login (#19842)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-01-27 12:04:15 -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
Tyler Biethman 2ce2524721 test(unify): Additional navigation tests for log in workflows (#19574)
* test(unify): Additional navigation tests for log in workflows

* Couple tweaks for better coverage and dryer tests

* Adding unit test coverage for window focusing after auth completion.

* Thank you tslint

* Updating LoginModal component test

* Adding PR feedback
2022-01-10 12:30:03 -06:00
Tim Griesser e4442ab7ac refactor: remove global.root & usage in require (#19336)
* refactor: remove global.root & use in requires

* fix types
2021-12-11 14:06:49 -05:00
Tim Griesser 806a31a989 refactor: Improved support for e2e testing (#19306) 2021-12-09 21:23:58 -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
Tim Griesser d0cf250f57 refactor: remove @packages/desktop-gui (#19127)
* chore: Remove references to desktop-gui in CI & scripts

* More path updates

* Remove desktop-gui cypress tests

* remove add:project

* remove begin:auth

* remove close:browser

* remove close:project

* remove external:open

* remove get:current:user

* remove get:orgs

* remove gui:error

* remove get:runs

* remove get:options

* remove get:projects

* remove get:project:statuses

* remove get:project:status

* remove get:dashboard:projects

* remove get:record:keys

* remove get:release:notes

* remove get:specs

* remove get:user:editor

* remove set:user:editor

* remove launch:browser

* remove log:out

* remove on:focus:tests

* remove: on:menu:clicked

* remove open:file

* remove open:finder

* remove open:project

* remove on:config:changed

* remove on:spec:changed

* remove on:project:error

* remove on:project:warning

* remove ping:api:server

* remove ping:baseUrl

* remove remove:project

* remove request:access

* remove setup:dashboard:project

* remove set:project:id

* remove requestAccess

* remove show:directory:dialog

* remove show:new:spec:dialog

* remove updater:check

* remove updater:run

* remove window:open/close

* remove new:project:banner:closed

* remove has:opened:cypress

* remove remove:scaffolded:files

* remove set:clipboard:text

* remove set:prompt:shown

* ipc & static method cleanup

* remove packages/desktop-gui

* bump yarn.lock, standardize webpack version

* bump yarn.lock
2021-11-29 08:58:32 +10: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
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 d841e1331f refactor: Data context cleanup & IPC bindings for data push (#18357) 2021-10-11 12:13:41 -04:00
Lachlan Miller db3e7b3aab chore: merge in develop to unified-desktop-gui (#18388)
* chore: merge in develop

* fix types
2021-10-07 17:29:14 +10:00
Lachlan Miller 0fa4a7376f merge in develop and resolve conflicts 2021-09-08 16:43:35 +10:00
Lachlan Miller 992d223a59 feat(launchpad): detect if runner is set up and change UI accordingly (#17934)
* add graphql value flagging whether ct/e2e has been configured

* init open project immediately

* create testing card component

* only show setup when user has not configured said testing type

* move query to top level

* add tests

* update icon

* use mountFragmentList for tests

* rename commands

* fix test

* types

* update schema

* build before running launchpad specs

* revert circle yml

* improve types

* fix types
2021-08-31 14:51:52 +10:00
Lachlan Miller a27793ddda improve types 2021-08-31 10:41:53 +10:00
Lachlan Miller 633c91b366 fix unit tests 2021-08-24 14:29:56 +10:00
Lachlan Miller 32cd9effbf merge in lmiller1990/ts-open-project 2021-08-23 20:36:43 +10:00
Lachlan Miller c58af2fe73 update tests 2021-08-23 19:07:34 +10:00
Lachlan Miller de85ccf9e1 merge in develop 2021-08-02 15:12:07 +10:00
Lachlan Miller e49b3a4b9f fix(server): correctly include projectRoot when adding a CI project from GUI (#17514)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-07-29 11:23:12 -04:00
Lachlan Miller e04f9774c9 Merge branch 'develop' into unified-desktop-gui 2021-07-21 10:41:47 +10:00
Lachlan Miller 7e30fb6629 chore(server): remove unnecessary promise from getConfig (#17319)
* wip

* update test

* fix lint

* await writeFile
2021-07-21 00:32:06 +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 b945b8197e chore(server): reduce coupling between methods to instantiate a project (#17200)
* wip

* wip: use async/await

* slowly refactor

* slowly refactor

* use typescript

* use async/await

* update spec

* do not use tap because bluebird sucks

* refactor

* update

* remove bluebird

* update

* remove then

* change to async/await to make it easier to reason about

* remove more bluebird

* no more bluebird

* remov ts ignore

* do not tap

* refactor

* simplify cfg

* move static methods to separate file

* update snapshot

* comment out test

* simplifying options merging

* update tests

* change order of options

* move code out of project-base

* update tests

* update tests

* type reporter

* simplify onWatchSettings function

* sep starting websockets and watching settings. reduce need to pass large cfg object

* move util functions out of project class

* move tests to new file

* update test

* move code around

* update tests

* remove need to pass options to getConfig

* fix tests

* separate get and init config

* set browser warnings in initializeConfig

* move Ct specific concerns to same function

* do not pass config to initializeSpecStore

* remove onOpen function

* improve types

* update typing errors

* update types

* types

* fix types

* update tests

* update tests

* fix tests

* update tests

* comment back in test

* update methods

* update types

* add defensive code against config.clientRoute

* do not use async

* update tests

* use same baseUrl for proxy regardless

* remove comment

* revert change to baseUrl
2021-07-13 11:32:59 +10:00
Tim Griesser e3a5bdf111 refactor: add @packages/resolve-dist to isolate client/server code (#17109) 2021-06-29 12:54:29 -04:00
Lachlan Miller 1907299319 chore(server): collapse project-ct and project-e2e into project-base (#17115)
* collapse project-ct and project-e2e into project

* remove project specific classes

* add projectType property

* fix imports

* remove projectType getter

* fix test

* fix imports

* add CT tests

* update test

* fix test

* add import helpers

* add tslib deps

* add tslib
2021-06-29 09:38:59 +10:00
Zach Panzarino da3e49bf59 feat: updated scaffolding, new project & user banners, ability to remove scaffolding (#15826)
* update example build scripts

* remove old scaffolding relics

* update

* Fix some issues with scaffolding

* Correctly fix issues with scaffolding

* Replace old onboarding with new banner

* Add ability to remove scaffolded files

* Add banner for new users

* Update tests for new scaffolding

* Compare file sizes before removing

* Add tests for remove file

* Save when user opened cypress rather than boolean

* Update intro link and add tets for banners

* fix small issue

* Update design and copy of onboarding banners

* Update style of new spec file button

* Improve outline button active statE

* Update design of new project a bit more

* Fix specs list tests

* Update banner copy and layout

* Update banner copy and layout

* Switch to docs style alerts

* Fix testing logic

* Update banner styles a bit

* Update banners

* Add confirmation modal for delete specs

* Update tests and fix states

* Upgrade kitchensink dep

* Upgrade kitchen sink version and fix unit tests

* Update integration scaffolding test

* Add further description to warning modal

* Update test for new user and new project case

* Remove check to file tree when removing files

* Update kitchensink version

* Fix edge case where banner could appear when no files have been scaffolded

* Fix tests

* Update styling for 'note' when deleting files

* fix issue with path on windows

* Change remove command

* Fix rm dir

* Fix for windows

* Try to use appveyor to test

* appveyor please

* getting some feedback

* Why doesn't this work

* more info

* I have a feeling this works

* maybe its the other path

* please

* this is the one

* this is it

* this should work

* try reverting that change that might not be needed

* remove appveyor testing scaffolding

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-06-22 10:59:47 -05:00
Zach Panzarino 3700fe7271 feat: create new spec file from desktop-gui (#15335)
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-03-23 12:20:34 -04:00
Brian Mann af26fbebe6 feat: component testing (#14479)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
2021-02-04 15:45:16 -05:00
Zach Panzarino 1aec4d082c fix(desktop-gui): add utm parameters to external links (#14741) 2021-02-01 15:53:21 +00:00
Chris Breiding 757ddc81c0 feat: Add release notes modal (#9006) 2020-11-02 09:32:27 +06:30
Jennifer Shehane a882763f08 Merge branch 'develop' into v5.0-release 2020-08-10 20:14:11 +06:30
Gleb Bahmutov fe96d7cf2a feat: run only filtered specs (#8007)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-07-30 10:29:21 -04:00
Zach Bloomquist ffcb036b40 feat(deps): electron@9.0.5 (#7791)
* chore(deps): electron@9.0.5

BREAKING CHANGE: libgbm is a requirement

* update node, xcode, docker images

* lockfile

* chore(types): tsify lib/gui/windows and spec

* fix Electron extension loading

global extension loading was deprecated in 9, now has to be per-session

* make windows fns stubbable

* update electron_spec

* tsify issue_173_spec

* use upstream foxdriver to fix FF >= 75

see https://github.com/benmalka/foxdriver/issues/7

* update test

* for now, install libgbm-dev at ci time

see https://github.com/cypress-io/cypress-docker-images/pull/332

* fix open mode

* remove devtools-ext dir
2020-06-29 14:29:51 -04:00
Zach Panzarino dc2b50d351 Add UTM parameters to Dashboard login buttons (#7639)
* Add UTM parameters to Dashboard login buttons

* Revert "Add UTM parameters to Dashboard login buttons"

This reverts commit 568f12e3cb.

* Add UTM parameters to Dashboard login buttons

* utmCode camel case

Co-authored-by: Zach Bloomquist <github@chary.us>

* Add desktop-gui integration tests for utm code

* Add server unit tests for utm code

Co-authored-by: Zach Bloomquist <github@chary.us>
2020-06-19 16:53:01 -04:00
Zach Bloomquist 1875027073 chore: decaffeinate server tests, scripts, other files (#7591) 2020-06-05 15:12:53 -04:00
Dmitriy Kovalenko 379a9e7008 feat: improve component based tests approach (#5923)
- new mode that mounts the spec iframe instead of application iframe
2020-04-26 16:25:24 -04:00
Chris Breiding a22d0cc756 Chore: Refactor saved state utility (#6759)
* decaffeinate: Rename saved_state.coffee from .coffee to .js

* decaffeinate: Convert saved_state.coffee to JS

* decaffeinate: Run post-processing cleanups on saved_state.coffee

* decaffeinate: Rename saved_state_spec.coffee from .coffee to .js

* decaffeinate: Convert saved_state_spec.coffee to JS

* decaffeinate: Run post-processing cleanups on saved_state_spec.coffee

* refactor saved state

- create a single saved_state module instead of having two
- export an object with methods instead of a function with methods
2020-03-17 15:20:26 -04:00
Zach Bloomquist ef29767161 Fix deprecation warnings from Electron 8 upgrade (#6753)
* Fix "allowRendererProcessReuse" in open mode

The previous code would only fix it in run mode.

* don't show deprecations in prod, always show stack traces for deprecations

* clone IPC objects and remove unserializable values

* add ipc_bus_spec

* respond to PR feedback
2020-03-17 13:52:30 -04:00
Zach Bloomquist dd3b63aa0b Update project error UI (#6432)
* update default title to "an unexpected error occurred"

* show stack trace in error, if avail

* add "copy to clipboard"

* wrap browser errors

* add tests

* improve md formatting

* update desktopgui tests

* update
2020-02-14 16:29:51 -05:00
Chris Breiding d76123b3d9 Add Firefox support (#1359)
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2020-02-06 10:52:13 -05:00
Zach Bloomquist 0e82cde8d9 Update browser types (#6254)
* update browser types and list

* add todo

* first pass of changes

* remove 'server' mode, since it is unused

* use foundbrowser type for eletron definition

* fix server unit tests

* update --browser arg to allow name:channel

* improve backwards compatibility impl

* update 3_config_spec snapshot

* fix 2_headless_spec

* fix 5_stdout_spec

* update browser icon stuff

* update 5_spec_isolation_spec snapshot

* Chrome Canary => Canary

* update user-facing types

* fix displayName type

* add debug logs

* fix cypress_spec

* taps

* update config.json
2020-01-31 12:58:12 -05:00
Zach Bloomquist 34037137c6 Electron upgrade (#5849)
* electron@7.x

* node12.8.1-chrome78-ff70

* Revert "node12.8.1-chrome78-ff70" for now

This reverts commit db2d521994.

* update sendCommand to log on all sendcommands

* promisification in 6.x

* Revert "Revert "node12.8.1-chrome78-ff70" for now"

This reverts commit 57fe764098.

* fix sendcommand

* fix cdp in electron

* fix desktop-gui test

* skip tests that will be fixed by #4973

* bump MAX_ALLOWED_FILE_SIZE :/

* update electron browser spec

* make new dialog code null-proof

* add failing e2e test for issue 5475

* bump electron packager

* add e2e snapshot

* update deprecated electron getters/setters

https://github.com/electron/electron/blob/7-1-x/docs/api/modernization/property-updates.md

* build and test on Mac

* move macbuildfilters to top

* 7.1.3

* electron@7.1.4


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2019-12-11 13:29:33 -05:00
Ben Kucera 653f52dc3c upgrade eslint-plugin-dev to 5.0.0 (#5382)
* upgrade eslint-plugin-dev to 5.0.0

* more [lint fixes]
2019-10-17 11:40:53 -04:00
Zach Bloomquist 053b6bd993 Fix auth after Electron upgrade (#5243)
* Fix auth after Electron upgrade

shell.openExternal should've been converted to a Promise w/ Electron 5.

* add comment
2019-09-30 12:50:45 -04:00