Commit Graph

232 Commits

Author SHA1 Message Date
renovate[bot] b52ac98a69 feat(deps): update dependency electron to version 12.x 🌟 (#15292)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-03-10 15:24:00 +00:00
Jennifer Shehane a529ffe5e4 feat(breaking): Drop support for Node 10; Require Node 12+ (#15165)
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-02-28 08:30:40 -05:00
Jennifer Shehane 80d8bcf141 Merge branch 'develop' into 7.0-release 2021-02-19 15:07:36 -05:00
Kyℓe Hensel 311cd4b401 chore: update ramda to 0.27.1 (#14958) 2021-02-18 08:23:20 -05:00
Jennifer Shehane 5d2dd54ece Merge branch 'develop' into 7.0-release
# Conflicts:
#	packages/driver/package.json
#	yarn.lock
2021-02-05 09:33:00 +06:30
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
Jennifer Shehane 8303457b98 feat(breaking): Remove Cypress.moment() (#14729) 2021-02-02 13:24:38 +06:30
Jennifer Shehane d1d15e6cfe chore: Replace usage of moment in cli / server code (#9069) 2021-01-26 13:49:21 +06:30
Zach Panzarino 3eb3bfa487 build: properly use local npm packages for development and binary build (#14182) 2021-01-05 00:34:13 -05:00
Kukhyeon Heo 8782c23da6 fix: Added missing calledOnceWith & calledOnceWithExactly sinon matchers. (#14371) 2021-01-04 12:39:39 +06:30
renovate[bot] da8952c563 fix(deps): update dependency commander to version .x 🌟 (#8979)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-10-29 17:43:09 +06:30
renovate[bot] eb3fb4a947 fix(deps): update dependency supports-color to version ^7.2.0 🌟 (#8967)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-26 15:38:26 +06:30
renovate[bot] dd34751fd5 fix(deps): update dependency pretty-bytes to version ^5.4.1 🌟 (#8964)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-26 14:30:09 +06:30
Zach Bloomquist c37896089b feat(net-stubbing): experimental full network mocking support (#4176) 2020-08-31 09:41:47 -04:00
Gleb Bahmutov edfae7f106 include blob-util as CLI prod utility 2020-08-10 13:21:50 -04:00
Gleb Bahmutov 95afe49bd1 put back blob-utils types 2020-08-10 11:30:37 -04:00
Jennifer Shehane a882763f08 Merge branch 'develop' into v5.0-release 2020-08-10 20:14:11 +06:30
renovate[bot] d246272bca fix(deps): update dependency moment to version 2.27.0 🌟 (#8122)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-30 18:02:19 +06:30
Jennifer Shehane 128ee98641 chore: Use 'bump' range strategy for deps, use caret/tilde for CLI deps (#8060) 2020-07-29 12:06:28 +06:30
Brian Mann a491d5169a Merge branch 'develop' into v5.0-release
# Conflicts:
#	circle.yml
#	packages/server/test/unit/browsers/firefox_spec.ts
2020-07-17 18:51:52 -04:00
renovate[bot] c40e3ee44f chore(deps): update dependency proxyquire to version 2.1.3 🌟 (#7988)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-15 13:41:42 +06:30
Brian Mann e7b7a242be Merge branch 'develop' into v5.0-release
# Conflicts:
#	cli/package.json
#
packages/server/test/support/fixtures/projects/e2e/cypress/integration/r
equest_spec.coffee
2020-07-11 16:51:26 -04:00
Brian Mann c72538d189 Fix lodash dupe dep (#7954)
* blow away yarn.lock

* bump lodash to 4.17.19

* reduce binary size again

* bump @types/node to correct version, fix types

* fix react + react-dom types

* add clean command for .ts conversion to .js files

* fix flaky test
2020-07-11 16:34:23 -04:00
Kukhyeon Heo 8971ad1fa4 Update blob-util to 2.0.2 (#7795) 2020-07-07 11:58:51 +06:30
Jennifer Shehane e767bcfe4b Drop support for Node 8; Require Node 10+ (#7650)
* Require Node 10+ for cli engine

* update chalk to latest (requires Node 10+)

* Update execa to latest

* Update cli-table3 to latest (required Node 10+)

* Update log-symbols (requires Node 10+)

* Update tmp dep (requires Node >=8.17.0)

* Update fs-extra dep (requires Node 10)

* Update mock-fs to 4.12.0

* increase circle base image to node 10

* fix flaky firefox test

* make job names consistent

* reconfigure percy parallelism, finalize percy after running visual jobs, remove separate desktop-gui-visual-tests job

* rename job correctly

Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-06-29 20:17:12 -04:00
renovate[bot] 4fb3f0b325 fix(deps): update dependency moment to version 2.26.0 🌟 (#7718)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-17 13:37:11 +06:30
renovate[bot] 8683510ba5 chore(deps): update dependency eventemitter2 to version .x 🌟 (#7707)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-15 16:41:02 +06:30
renovate[bot] f4b685273c chore(deps): Update dependency eventemitter2 to version .x 🌟 (#7705)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-15 14:21:43 +06:30
renovate[bot] 5be0bc00c1 fix(deps): Update dependency is-installed-globally to version 0.3.2 🌟 (#7703)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-15 13:36:24 +06:30
renovate[bot] 33b514424d fix(deps): update dependency commander to version 4.1.1 🌟 (#7686)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-12 14:06:14 +06:30
renovate[bot] fe7937c197 fix(deps): update dependency getos to version 3.2.1 🌟 (#7685)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-12 11:33:51 +06:30
renovate[bot] 0e545f9773 fix(deps): update dependency arch to version 2.1.2 🌟 (#7672)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-11 14:15:43 +06:30
Gleb Bahmutov 2e5bb50706 Update a few missing TS types in CLI to get Kitchensink types check to pass (#7401) 2020-05-18 18:02:54 -04:00
Gleb Bahmutov a2c0bc3e3e include CLI TS types in a way to avoid clashing with Jest (#7352) 2020-05-15 17:31:22 -04:00
renovate[bot] 885fb352bf chore(deps): Update dependency snap-shot-it to version 7.9.3 🌟 (#7283) 2020-05-11 14:21:18 +06:30
Jennifer Shehane 79379a96d2 Replace deprecated babel-preset-es2015 (#6770)
* replace deprecated babel-preset-es2015

* use correct name for env preset

* use @babel/cli instead of babel-cli

Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
2020-04-24 11:45:27 +06:30
Karl Horky d7f6f61678 Upgrade extract-zip to address vulnerability (#6845)
* Upgrade extract-zip to address vulnerability

Versions of extract-zip before `1.6.8` depended on a vulnerable version of `minimist` via `mkdirp`:

https://github.com/maxogden/extract-zip/pull/85#issuecomment-603563097

Minimist vulnerability: https://app.snyk.io/vuln/SNYK-JS-MINIMIST-559764

* Update Yarn lockfile
2020-03-26 16:24:04 +06:30
Zach Bloomquist d810950379 Switch request, request-promise to @cypress/ forks (#6777) 2020-03-19 11:48:24 +06:30
renovate[bot] 5dfdab19f1 fix(deps): Update dependency minimist to version 1.2.5 🌟 (#6747)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-03-17 14:02:07 +06:30
Kukhyeon Heo ee494d04ee Added TypeScript type checker + Fixed type errors. (#5780)
* Added type_check.js

* Now checks cli, too.

* Ignored a line that should fail.

* Removed cli shims and post-install.

* Updated @types/chai to fix type error.

* Fixed keyboard type errors.

* Updated typescript to 3.7.2 to fix window.Node error in dom/document.

* Removed tsconfig errors that caused type errors in reporter and runner.

* Ignored error test by dtslint. Becaust it's done by type_check.js

* Added npm command.

* Added it to CI.

* Added skipLibCheck option.

* Removed checking chai folder existence.

copy of chai is unnecessary.

* Added 'ignore-progress' option for CI.

* Show success message when type check is finished successfully.

* Use ignore-progress option on CI.

* Moved type definitions from devDependencies to dependencies.

* Fixed new type errors after rebase.

* Updated type errors.

* Removed cli. Because its types are checked by dtslint.

* type_check -> type-check for consistency.

* Updated json-schema.

* Updated blob-util.

* Fix wrong command in CI.

* Revert "Updated blob-util."

This reverts commit e46549af54.
Because it's a breaking change.

* Remove copies of @types if exists.

* Fix stream buffer type error.

* Fix type errors in ui-components.

* Fix type failure.

* Fix lint error.

* Fix type errors

* Regenerate yarn.lock

* Fix type error.

* Fix type failures.

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2020-03-17 11:01:31 +06:30
renovate[bot] aad48602a4 fix(deps): Update dependency minimist to version 1.2.2 🌟 (#6726)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-16 11:41:50 +06:30
Zach Bloomquist 910ac6f077 Electron 8.1.1 (#6555)
* electron@8.1.0

* set app.allowRendererProcessReuse to true

https://github.com/electron/electron/issues/18397

* Fix taking screenshots in Electron with debug logs enabled

* explicitly use png format for Page.captureScreenshot

* don't need to do Network.enable

i believe this was done because we thought it was needed for Network.getCookies, etc, but it does not seem to be used

* yarn.lock

* remove dead code

* start and stop screencast around electron screenshots

* update debug logging

* cypress/browsers:node12.13.0-chrome80-ff73

* fix unit tests

* debug e2e tests

* detect first available servernum

* electron@8.1.1

* no reuse

* Revert " cypress/browsers:node12.13.0-chrome80-ff73"

This reverts commit 404803a169.

* cypress/browsers:node12.13.0-chrome80-ff74

* Revert "debug e2e tests"

This reverts commit 7a09e3630e.

* Revert "detect first available servernum"

This reverts commit 7ac95072b2.
2020-03-13 14:36:08 -04:00
Jennifer Shehane c650c91ac0 sync all 'request' deps to use the cypress fork (#6694) 2020-03-11 21:42:14 +06:30
Gleb Bahmutov 2a0bc32700 cypress cache list prints last accessed date (#6627)
* get last access timestamps and print with cache versions

* remove done TODO

* start trying to save HTML but only after snapshot text is confirmed

* store cli test output HTML as static pages

* set our color for table heading

* make code readable

* lock file again

* update saved HTML file

* refactor cache spec

* add test with no access time:
2020-03-09 09:27:54 -04:00
Gleb Bahmutov 4e11b5bdde cli: downgrade chalk (#6569)
* cli: downgrade chalk

* add job to test NPM on minimum Node version

* forgot to attach workspace

* try updating npm

* try installing npm 5.0.4

* try npm 5.1.0

* skip npm init, just install Cypress

* try using Yarn

* run additional Cypress commands

* print Cypress version

* print Cypress version

* hmm, try different user

* yarn-lock

* back to npm

* print npm version

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2020-02-28 10:25:25 +06:30
Ben Kucera f77ec01c18 chore:fix ui-components dependencies, web-config deps for yarn (#6534)
- add needed deps in `ui-components` package
- upgrade `@cypress/webpack-preprocessor`
- refactor some eslint code, remove unused eslint scripts
- rename `build-js` scripts to `build-prod` since they'll only need to run when building for prod / checking for tsc errors
2020-02-26 20:21:23 +00:00
Jennifer Shehane e585079c56 Roll back execa to 1.0.0 to actually support Node 8.0.0 (#6560) 2020-02-26 22:22:28 +06:30
renovate[bot] eab801ae3f chore(deps): Update dependency eslint to version 6.8.0 🌟 (#6509)
* chore(deps): Update eslint to 6.8.0 🌟

* fix missing dangling commas for linter

* fix missing dangling commas for linter

* more lint fixes

* yarn lock

Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2020-02-25 00:09:47 +06:30
Jennifer Shehane 8cdaff00b6 downgrade execa to 2.0.0 (which supports Node.js 8.0.0) (#6513) 2020-02-22 00:39:52 +06:30
Gleb Bahmutov 070fceff20 add "cypress info" command (#6372)
* WIP: add cli info command to list detected browsers

* print found browsers

* change to list

* start work on info command calling into binary

* move info command into binary

* print OS info during cypress info command

* add binary cache path to info command

* add browser profile path

* add memory

* get browser profile path without partition

* pick real browsers as examples

* output same info as desired

* better names

* changed colors

* add list of cached binary versions

* do not put stable into name

* add underlined link

* conditionally show profile path, only if the folder exists

* do not list cached binaries

* human-friendly memory print

* print env proxy vars

* print CYPRESS_ env variables

* use _.sample

* update order

* store cypress info output on CI as HTML page artifact

* add percy CLI screenshots

* sanitize cypress info command

* store CLI snapshots in cli/visual-snapshots folder

* update cli unit snapshot

* add cli unit test

* start e2e testing for cypress info

* add test with proxy and cypress vars

* make sure we call the binary

* stricter start check

* start unit testing modes info

* test info mode browser print

* add test for profile path

* add cypress info command to test binary Circle job

* add cypress info to test-binary-as-specific-user circle

* print cypress info --dev on circle and on appveyor

* update .gitignore

* move error in environment load to debug
2020-02-20 10:54:25 -05:00