Commit Graph

1115 Commits

Author SHA1 Message Date
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
Jennifer Shehane 4df9899834 Handle extra padding for cy version replacement in snapshots (#7941) 2020-07-10 15:00:52 +06:30
Jennifer Shehane 4b4628ea7a Update regex for matching Cypress version in tests to replace more version types (#7927)
* Update regex for matching Cypress version to replace more version types

* Increase max zip size from 190 to 200
2020-07-09 19:51:57 +06:30
Zach Panzarino 7d468d4e2c Split hooks and open hooks in ide from reporter (#7821)
* Add invocation details to hooks

* Add hooks to emitted root runnable

* Hook details model

* Progress on hook models

* Add commands to hook

* Fix display of hooks

* Display hooks in correct order

* (More) efficiently reorder hooks and display split numbers

* Open hook in IDE functionality

* Properly style button to open in IDE

* Add ability to open test body in IDE

* Fix hooks specs

* Runnables store tests

* Test model unit tests

* HookDetails -> HookProps

* Fix reporter integration tests

* Fix issue with after hook

* Update runner mocha tests

* Remove driver integration test that is no longer needed

* Update snapshot for server tests

* Add reporter integration tests for hooks

* Fix driver querying test

* Add runner test for hooks

* Update reporter hook tests to check for before all

* Fix before/after hook counts

* Fix runner test

* Fix issue with stack trace in ff and clean up mocha override

* Just incase someone names their test or support file common.js

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2020-07-07 21:17:03 +06:30
Kukhyeon Heo 8971ad1fa4 Update blob-util to 2.0.2 (#7795) 2020-07-07 11:58:51 +06:30
Zach Bloomquist f7917a4c5b fix(proxy): don't use responseTimeout as timeout for all requests (#7787) 2020-07-06 10:41:41 -04:00
Zach Panzarino 5454f4becd Reporter UI tweaks (#7833)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2020-07-01 09:09:20 -04:00
Jennifer Shehane 639df99036 Rename uses of term 'whitelist' (#7782)
* Rename non-user facing instances of whitelist

* Rename server option 'whitelist' to 'ignore'

* Update use of whitelist with server to throw instead of warn

* Rename Cypress.Cookies.defaults 'whitelist' option to 'preserve'

* fix circle yml parameter parsing consistent

* compose cloning an external repo and switching to the NEXT_DEV_VERSION branch consistently

* add cypress org to repo parameter

* cd into the right dir before switching branches

* one line git checkout

* simplify passing repo

* cd into the right dir

* clone into the right dir

* oh my cd 101

* replace kitchen sink strings for 5.0.0

Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-06-30 02:27:29 -04:00
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
Zach Bloomquist f75cc4509f fix foxdriver patching 2020-06-29 15:28:38 -04:00
Zach Bloomquist 0b4529bbdb feat: make cookies have sameSite key by default (#7790)
* feat: make cookies have sameSite key by default

BREAKING CHANGE: modifies the shape of Cookie objects

* update tests

* add deprecation notice

Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-06-29 14:41:50 -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
Chris Breiding 1508bac1ac Convert Error UI e2e tests to isolated runner tests (#7831) 2020-06-29 14:13:00 -04:00
Zach Bloomquist 882774d949 fix(server): fix excess debug logs from foxdriver (#7727) 2020-06-25 13:58:08 -04:00
Zach Panzarino 759d87f167 Open spec file from desktop gui and refactor ui-components to typescript (#7747) 2020-06-24 13:51:50 -04:00
Gleb Bahmutov 653739bb5c Handle --project "" command line argument (#7744)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-06-22 14:34:59 -04:00
Zach Bloomquist 6423b352da chore: clean up postProcessRecording code (#7777) 2020-06-22 14:08:42 -04:00
Zach Bloomquist bf752f1b2e fix: correct bad propagation of exit signals (#7755) 2020-06-22 14:05:04 -04:00
Steve 768da16a5e feat: add quiet cli arg/module option (#7714)
* Option to disable Cypress the verbose results to stdout

--quiet mode to disable the verbose results to stdout
but still use specified formatter

* Update cli/schema/cypress.schema.json

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>

* Cypress module support for --quiet

Cypress module support for --quiet

* Apply suggestions from code review

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

* Address feedback

Address feedback, thanks

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Zach Bloomquist <github@chary.us>
2020-06-22 11:10:35 -04:00
renovate[bot] 1e2368d336 fix(deps): update dependency signal-exit to version 3.0.3 🌟 (#7738)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-22 15:29:07 +06:30
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
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
Zach Bloomquist f305f8b10c chore: make NODE_OPTIONS fork with --inspect args (#7711) 2020-06-15 21:54:30 -04:00
Gleb Bahmutov aed2709637 automatically polyfill window.fetch with XMLHttpRequest (#7597)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2020-06-15 11:40:08 -04:00
Tim Griesser b20a77ad55 Fix: skip sending stdout on PUT /instances (#7635)
* Fix: skip sending stdout on PUT /instances

* Add comment for why we're setting stdout to null

Co-authored-by: Brian Mann <brian.mann86@gmail.com>

Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-06-15 11:05:39 +06:30
Chris Breiding cf87458ba3 Fix issue where click hangs if subject has a shadow root and shadow dom support is not enabled (#7692) 2020-06-12 14:42:57 -04:00
Kukhyeon Heo 3f3e860fcb chore: fix server/lib/errors.js readability. (#7633) 2020-06-12 09:53:23 -04:00
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
Ben Kucera b578032fef internal: rename driver/test/cypress to driver/test (#7643)
* rename driver/test/cypress to driver/test

* use yarn workspace over lerna for individual package commands

* add error message to driver start

* remove usage of wait-on

* update <reference types/>, import string

* fix driver/readme

* fix readmes after regex replace

* revert wait-on changes

* Revert "revert wait-on changes"

This reverts commit 6de684cf34.

* update yarn.lock

* fix broken path in spec

* fix broken paths in specs with @packages/driver

* fix more broken spec paths

* move type definition loading for driver/cypress into dedicated file

* move internal-types to "types" folder, fix driver/index.d.ts

* fix type-check in packages/runner. not exactly sure why

* fix runner type-check by excluding test folder in tsconfig

* bump timeout on e2e/8_error_ui_spec

Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-06-11 19:11:58 -04:00
Ben Kucera 47faf52e16 internal: use yarn workspace over lerna for individual package commands (#7644)
* use yarn workspace over lerna for individual package commands

* remove usage of wait-on

* fix readmes after regex replace

* revert wait-on changes

* update yarn.lock
2020-06-10 18:31:40 -04:00
Zach Bloomquist 0e632635cd chore: rm non-test-related coffeescript references 2020-06-10 10:49:31 -04:00
Zach Bloomquist 4cc301d3c4 cleanup plugin decaf 2020-06-10 10:49:31 -04:00
decaffeinate 935ee52e4e decaffeinate: Run post-processing cleanups on index.coffee and 7 other files 2020-06-10 10:49:31 -04:00
decaffeinate 2c0a15a71e decaffeinate: Convert index.coffee and 7 other files to JS 2020-06-10 10:49:31 -04:00
decaffeinate e0158be930 decaffeinate: Rename index.coffee and 7 other files from .coffee to .js 2020-06-10 10:49:31 -04:00
Kukhyeon Heo d0043ff4fd fix: Cypress.Commands.add Type Signature for @typescript-eslint/no-misused-promises rule (#7547) 2020-06-09 09:42:27 -04:00
renovate[bot] fedd30cb36 fix(deps): update dependency jimp to version 0.13.0 🌟 (#7618)
* fix(deps): update jimp to 0.13.0 🌟

* Bump max linux filesize for binary

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-06-09 15:26:17 +06:30
Ben Kucera 0f667149d9 fix flake: add delay before ensureSymlink (#7625) 2020-06-08 17:23:39 -04:00
James Garbutt a7ff8fddc2 add some shadow dom support (#7469)
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2020-06-08 13:05:32 -04:00
renovate[bot] 7597bf9463 fix(deps): update dependency chrome-remote-interface to version 0.28.2 🌟 (#7615)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-08 16:08:09 +06:30
Zach Bloomquist 1875027073 chore: decaffeinate server tests, scripts, other files (#7591) 2020-06-05 15:12:53 -04:00
Ben Kucera c98eab2933 fix not running some server/unit tests in CI (#7600) 2020-06-05 12:05:20 -04:00
Ben Kucera dbac98326e [internal] run electron e2e specs ONLY once, fix ui-component deps, minor spec c… (#7587)
Co-authored-by: sainthkh <sainthkh@naver.com>
2020-06-05 11:06:42 -04:00
Zach Bloomquist fe785749e8 server decaf cleanup
cleanup
2020-06-04 14:48:33 -04:00
decaffeinate e7d1f313b0 decaffeinate: Run post-processing cleanups on api.coffee and 35 other files
decaffeinate: Run post-processing cleanups on reporter.coffee
2020-06-04 14:03:03 -04:00
decaffeinate 0f035b976c decaffeinate: Convert api.coffee and 35 other files to JS
decaffeinate: Convert reporter.coffee to JS
2020-06-04 14:03:01 -04:00
decaffeinate c7dd989893 decaffeinate: Rename api.coffee and 35 other files from .coffee to .js
decaffeinate: Rename reporter.coffee from .coffee to .js
2020-06-04 14:02:58 -04:00
Ben Kucera 4cfcae28f0 feat: test config overrides (#5346)
* decaffeinate: Rename browser.coffee from .coffee to .js

* decaffeinate: Convert browser.coffee to JS

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

* temp 02/14/20 [skip ci]

* add beforeEachRestoreRunner to select specs, remove support file hook

* temp 03/03/20 [skip ci]

* fix more specs due to support file change

* fix errored spec

* add isInteractive config to many specs

* update yarn.lock

* use yarn.lock from develop

* fix nested suite configurations

* fix nested suite configurations 2

* force isInteractive in driver/support file

* update more specs to use test config format

* update more specs to use test config format 2

* update more specs to use test config format 3

* update more specs to use test config format 4

* update more specs to use test config format 5

* fix cli/types tests, unit tests

* cleanup

* allow .isBrowser to support array, use .isBrowser for per-test-config

* allow null browser test/suite config value

* temp 04/10/20 [skip ci]

* restore test originalTitle when skip due to browser

* add tests for per-test-config baseUrl

* update .isBrowser error message

* fix rerunning hooks on top navigation

* rename duplicate issue number

* up timeout for server/integration test

* change test to be more specific

* rename TestOptions, add baseUrl test, override xit xdescribe methods

* add tests for xit/xdescribe

* disable video for flaky e2e test

* fix lint-types, e2e snapshot

* try 2: fix rerun before/after hooks

* temp 04/29/20 [skip ci]

* change logic to rerun before hooks after top navigation

* fix windowSize for browser e2e test

* fix windowSize for xvfb chrome in e2e test

* ok fine, just disable screenshots

* perf: faster lookup for hooks without runnables

* fix afterAll hook switch logic

* backport to before/after fix

* backport to before/after fix 2

* fix noExit passed to e2e test inline options

* remove extra root afterhook check

* add issue link..twice

* cleanup function to arrows

* remove Cypress object proxying related code for certain utils

* use getTest() as we did previously

* remove Cypress object proxying related code for certain utils

* fix Cypress._RESUMED_AT_TEST access

* fix Cypress._RESUMED_AT_TEST access 2

* fix runner.getResumedAtTestIndex, state accesses

* fix firefoxgcinterval access

* fix arrow function

* fix firefoxgcinterval access

* try a simpler way to fix afterAll hook issue

* fix decaf after merge

* cleanup internal-types.d.ts

* fix internal-types

* fix comment, getTestFromRunnable signature

* remove unneeded lastTestInSuiteLogic

* fix after merge: many decaffed specs, typedefs

* minor cleanup

* fix typedefs: add taskTimeout

* minor typedef fix, fix more specs modifying config()

* fix e2e snapshot

* fix flake: waiting_spec cancel outstanding XHR between tests

* fix flake

* change config mutation logic, add tests, update typedefs

* add env support to testConfigOverride

* fix specs: remove isInteractive override, add to beforeEach

* move testConfigOverride to file

* finish moving local config logic to cy.js

* fix typedefs cypress.d.ts

* fix minor minor dtslint

* minor spec cleanup

* chunk: typescript spec fixes, bind Cypress.$

* apply chunk: typescript spec fixes, bind Cypress.$

* fix stop-only

* fix stop-only 2

* extend the jqueryProxyFn in the constructor

* remove experimental code

* rename spec files for overrides, cleanup

* rename snapshots + tests to match updated test config overrides

* fix firefox flake: navigation_spec

Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-06-04 11:26:11 -04:00
Ben Kucera 4f385417b6 chore: typescript spec fixes, bind Cypress.$ (#7580)
* apply chunk: typescript spec fixes, bind Cypress.$

* fix stop-only

* fix stop-only 2

* extend the jqueryProxyFn in the constructor

* remove experimental code

* use the default ts export

* use the default ts export for .js files too

Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-06-03 18:39:46 -04:00