Commit Graph

72 Commits

Author SHA1 Message Date
Jennifer Shehane
6b28356878 chore: convert cache.js file within server to TypeScript (#31471)
* chore: convert cache.js file within server to TypeScript

* update cache calls and await them

* updates to imports and switching cache calls to await

* remove Partial from Allowed State

* change cache calls back to not await

* Remove dead code

* update memo.push return
2025-04-10 15:02:58 -04:00
Jennifer Shehane
f920dcbd0d chore: enforce 'no-implicit-dependencies' on tslint (#31022)
* chore: enforce 'no-implicit-dependencies' on tslint

* downgrade chalk version for errors package
2025-02-06 17:33:05 -05:00
Matt Schile
555a9242ee fix: update firefox to close extra windows between specs (#29475) 2024-05-06 12:33:31 -06:00
Lachlan Miller
0107efbc3e feat: In-App Run Notifications (#27078)
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: astone123 <adams@cypress.io>
2023-06-28 10:23:21 -04:00
Dave Kasper
9c4d5f7db6 chore: add browser state action for debug (#26884)
* chore: add browser state action for debug (#26763)

* Address PR comments
- remove unneeded async and test context
- genericize openProject function

* Revert route change, update spec description
2023-06-02 14:40:12 -05:00
Adam Stone-Lord
b1f699a0a7 chore: add GraphQL mutation for sending system notifications via Electron (#26773) 2023-05-24 12:10:42 -04:00
Mike Plummer
58b9ccc0a8 chore: Implement runSpec mutation (#26782) 2023-05-24 07:32:49 -05:00
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