Commit Graph

65 Commits

Author SHA1 Message Date
Zachary Williams
6c374031d7 fix: run-all-specs opens in new tab rather than new browser (#25074) 2022-12-12 09:07:59 -06:00
Emily Rohrbough
4870b7f1bb chore(server): organization of cloud-specific files (#24028) 2022-10-04 10:49:02 -05:00
Ryan Duffy
a75d3ec81f fix: Detect user-configured browsers (#23446)
* fix: Detect user-configured browsers

* move user browser lookup into BrowserDataSource

* refactor out common browser dedupe logic

* simplify allBrowsers

* resolve non-machine browsers

* pr feedback

* added tests

* fix test

* longer timeout

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-09-27 12:16:48 +10:00
Stokes Player
314a0b2e0d feat: add cohorts for A/B testing in Specs List Banners (#23735) 2022-09-15 22:20:30 -04:00
Mike Plummer
9abbbe61af feat: Banner Analytics (#23691)
Co-authored-by: astone123 <adams@cypress.io>
2022-09-08 16:37:09 -05:00
Zach Bloomquist
dc9e9dc62c chore(webkit): add video recording (#23579) 2022-09-06 17:12:13 +00:00
Zach Bloomquist
3c2fea216b chore(server): convert remaining browsers code to typescript (#23556) 2022-08-29 19:47:05 +00:00
Zach Bloomquist
bd0d38f352 chore(server): convert modes/run to typescript (#23536)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-08-25 17:20:53 +00:00
Kukhyeon Heo
a27affe447 chore: refactor server/lib/config.ts to pkg/config (#22530)
Co-authored-by: Rachel <rachel@cypress.io>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Rachel <Raquel.rudermano@gmail.com>
2022-08-17 10:54:02 -07:00
Mark Noonan
3d98f98136 fix: save spec filter term (#22755) 2022-08-09 12:44:35 -04:00
Muaz Othman
4726ea90a9 feat: Display Cypress Dashboard metrics in the Specs Explorer (#21250)
Co-authored-by: Muaz Othman <muazweb@gmail.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Mike Plummer <mikep@cypress.io>
Co-authored-by: Peter Stakoun <peter@stakoun.com>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-27 17:37:36 -05:00
Tyler Biethman
c2b270f128 chore: Removing workaround for long Cypress verification times (#21541)
* chore: Removing workaround for long Cypress verification times

* Blank commit for Percy build

* Getting a build

* Need the mac build

* Missed a few!

* We apparently still need this one.
2022-05-19 12:29:56 +10:00
Zach Bloomquist
3055c79822 chore: remove unused find_system_node util (#21529)
* chore: remove unused find_system_node util

* bump
2022-05-17 15:08:55 +00:00
Tim Griesser
383bdb1d3d fix: UNIFY-1625 Runs tab not updating in real time (#21370)
* feat: improved CloudDataSource caching & tests

* feat: pushFragment subscription, for updating the client with remote data (#21408)

* refactor: add pushFragment utility for pushing remote data into the client

* fix: UNIFY-1625 Runs tab not updating in real time (#21412)

* allow returning a Response object in the remoteGraphQLIntercept, handle 401
2022-05-12 09:06:12 -04:00
Bill Glesias
04dc2e3130 Merge branch '10.0-release' of github.com:cypress-io/cypress into md-10.0-merge 2022-05-06 10:07:06 -04:00
Alejandro Estrada
fa214e29f8 feat: restart browser/server on config change (#21327)
* feat: restart browser/server on config change

* Add tests

* Refresh server if devServer is changed

* Do not launch browser on start, fix open browser

* Update devServer config pairing w/ Zach

* Update with feedback
2022-05-05 16:48:17 -05:00
Bill Glesias
2830c9e63d Merge branch '10.0-release' of github.com:cypress-io/cypress into md-10.0-merge 2022-05-04 14:44:14 -04:00
Bill Glesias
c8331fc54f set remote to primary domain when app is reserved in e2e testing mode 2022-05-04 10:38:48 -04:00
Zach Bloomquist
b856a74b43 fix(launchpad): avoid crash when authenticating before selecting project (#21234) 2022-05-03 17:11:40 +00:00
Lachlan Miller
b65371a6a1 fix: subscribe to changes in cypress.config.js in app (#21160)
* chore: work on build

* subscribe to config changes

* add test

* extract required values from legacy config

* add testingType and isComponentTesting to config

* update cypress config

* update runner config on window and re-execute after config changes

* revert change

* revert code

* revert

* revert file

* update stub types
2022-04-29 10:24:01 +10:00
Tyler Biethman
cb5b547835 fix: Long Cypress verification times (#21174)
* Fixing some electron

* More electron refs

* Updating system test snapshots. Updating mocha timeout for module-api tests.

* Updating magic require with comment

* Updating system test snapshot again

* Removing dead code
2022-04-25 13:05:42 -04:00
Tim Griesser
cdf91b8a3e refactor: change git info handling to happen eagerly / asynchronously (#20997) 2022-04-11 13:06:54 -04:00
Zach Bloomquist
4fd151014d fix: cache last-used browser by project, name, and channel (#20760)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-04-06 19:55:30 +00:00
Ryan Manuel
f9436ab130 Additional code cleanup 2022-03-29 13:17:25 -05:00
Ryan Manuel
f6cc702aaa Fix system test 2022-03-24 23:22:45 -05:00
David Munechika
2f5f0de759 fix(unify): Use of experimentalStudio should throw a warning that it is removed (#20515)
* add terminal warning for experimental studio

* add to errors old

* add warnings to main

* debug onWarning callback

* show error in open mode

* update snapshot

* update tests

* validate config earlier

* remove from types and schema

* use on link

* refactor getError

* update types

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>

* add unit test for validateNoBreakingConfigLaunchpad

* fix types

* merge test files

* update types

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
2022-03-15 11:30:15 +10:00
Tyler Biethman
efa2b88f69 fix: Reseting server auth state during login cancellation (#20546)
* WIP

* Canceling in progress login mutation during reset. Updating state handling for dual launchpad/app LoginModal presentation.

* Updating reset logic to better support error cases. Updating existing tests.

* Tweaking test, extra commit should get us better percy snapshots

* Reverting change to network policy for HeaderBar query, I don't think it's necessary

* Addressing PR feedback

* Throwing instead

* Updating tests (subscription updates are much faster!)
2022-03-15 10:39:10 +10:00
Barthélémy Ledoux
c4dec1efb9 refactor: make config package type-safe (#20590) 2022-03-14 15:32:11 -05:00
Tim Griesser
e7efc10aed feat: Add initial structure to support GraphQL subscriptions (#20558)
* feat: rename __socket.io -> __socket, add __socket-graphql for graphql-ws

* fix: remove currentTestingType from Query type

* feat: add subscription to refresh when auth state changes

* Update packages/frontend-shared/src/gql-components/HeaderBarContent.vue

* PR review updates, add docs, tests for authChange subscription

* remove login/logout toApp/toLaunchpad calls

* remove login/logout/devChange toApp/toLaunchpad calls

* fix, getCtx lazily to fix proxy performance spec

* Fix, thanks @JessicaSachs

* test fixes, remove flash of missing content in wizard

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Jess <jess@jessicasachs.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-03-14 10:03:48 -04:00
Zachary Williams
89db0a942f fix: show base-url warning in launchpad (#20490)
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-10 22:54:35 -06:00
Barthélémy Ledoux
315d704f89 feat: have a copy button on firefox (#20491) 2022-03-08 15:00:50 -06:00
Tyler Biethman
659c527707 fix: Relaunching app when Focus is pressed after app has closed (#20352)
* fix: Updating Focus behavior to relaunch browser if runner has been closed

Also updating firefox executable used to ensure focus behavior continues working for firefox

* Adding unit tests
2022-02-24 15:51:45 -06: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
Tim Griesser
6279a7dd10 wip: type fixes & changes after merge 2022-02-14 08:20:11 -05:00
Alejandro Estrada
5d52758d82 feat: validate specPattern root level (#19980)
* feat: validate specPattern root level

* Fix/add tests

* Fix test

* Update specExcludePattern

* Fix tests

* Fix/add tests

* Fix/add tests

* Fix tests

* Rename specExcludePattern to excludeSpecPattern

* Fix tests
2022-02-04 10:48:10 -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
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
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