Commit Graph

13101 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
renovate[bot] 4618650118 fix(deps): update dependency proxy-from-env to version 1.1.0 🌟 (#7900)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 10:40:51 +06:30
Zach Bloomquist d4d81dc490 release 4.10.0 [skip ci] v4.10.0 2020-07-07 14:05:38 -04:00
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
renovate[bot] ecb3b0a43d fix(deps): update dependency recast to version 0.19.1 🌟 (#7898)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-07 11:55:00 +06:30
Chris Breiding 8b973e8036 Fix shadow dom visibility hang (#7893) 2020-07-07 11:45:27 +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
Jennifer Shehane 59235e4b21 Ensure that the window's parent is a window before checking for props of AutIframe (#7862)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2020-07-06 21:08:35 +06:30
Gleb Bahmutov 09d94856bc test typescript example recipe from this branch 2020-07-06 09:42:21 -04:00
Kukhyeon Heo 9e754d526b TS: separate Window type for application under test (#7806)
Co-authored-by: Oliver Joseph Ash <oliverjash@gmail.com>
2020-07-06 09:38:02 -04:00
Zach Panzarino 7a5150fbb1 chore: use absolute links for GitHub PR template (#7867)
[skip ci]
2020-07-02 11:06:02 +06:30
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
Chris Breiding 6c3965a0e0 Fix typing into shadow dom inputs (#7847) 2020-06-30 14:03:53 -04:00
Zach Bloomquist 2e35094358 chore: remove libgbm step from circle.yml 2020-06-30 09:14:57 -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
Brian Mann 8c998f105d Merge branch 'develop' into v5.0-release 2020-06-29 14:17:25 -04:00
Brian Mann 715d07c1a9 fix flaky test because of inline element 2020-06-29 14:16:33 -04:00
Chris Breiding 1508bac1ac Convert Error UI e2e tests to isolated runner tests (#7831) 2020-06-29 14:13:00 -04:00
Brian Mann 5da2493308 Merge branch 'develop' into v5.0-release 2020-06-29 11:45:52 -04:00
Gleb Bahmutov 4825dbb115 Update cypress-react-unit-test, run desktop-gui component tests (#7792) 2020-06-26 13:07:51 -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
Zach Panzarino 9705dd3cb1 Improvements to recently added UI updates (#7736)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2020-06-24 09:26:30 -04:00
Chris Breiding 29ca809efe release 4.9.0 [skip ci] v4.9.0 2020-06-23 13:31:50 -04:00
Zach Bloomquist 8a6af2b285 Merge branch 'develop' into v5.0-release 2020-06-23 10:02:56 -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
Ben Kucera baaf24a07e fix dom-highlights rendering under absolute position elements (#7763)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-06-22 21:23:43 +06:30
renovate[bot] abe2f3d529 chore(deps): Update dependency angular to version 1.8.0 🌟 (#7754)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-22 15:29:51 +06:30
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 22e47aa5fe Update license copyright year (#7758) 2020-06-22 11:03:47 +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
Jennifer Shehane 869bcec55c Before XHR URLs are whitelisted, strip query params and hashes (#7742) 2020-06-19 10:35:06 +06:30
Chris Breiding a2d2c8d42c Fix issue with finding elements in shadow dom under specific conditions (#7746)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2020-06-18 13:32:57 -04:00
Zach Bloomquist 946b8c442e 5.0 release 2020-06-18 11:05:46 -04:00
Zach Panzarino 7c5819393d Fix issue where command is never fully ended and following assertions are displayed incorrectly (#7734)
* fixes inserting a command as a child when the assertion is outside of a command and the previous command in a hook was a cy.then

* Add test to verify commands are properly closed

* Update test to accurately check for issue

Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-06-17 11:29:06 -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
Ben Kucera 6c6b23f88f isolated runner changes (#6799)
* isolated runner changes

* more fixes for isolated runner, get runner.spec passing

* fix prev commit add untracked files

* add server reporter.spec.js for testing mocha output

* fix has-binary yarn.lock

* fix spec expected error message

* cleanup snapshot utility - use chai assert fn, add test to runner.spec, pin dep

* remove test-retries related tests

* small cleanup diff utility

* move runner.spec to packages/runner

* fix requiring missing file

* fix circle.yml runner-integration-tests

* update readme

* finish refactor of helpers for isolated runner-integration tests

* restore runner/test/eslintrc

* fix .eslintignore

* temp 04/09/20 [skip ci]

* Update readme to reflect how to start server for cypress tests

* try 2: fix rerun before/after hooks

* temp 04/29/20 [skip ci]

* backport changes from test-retries

* 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

* fix after merge: decaffed navigation.js

* update server/unit test snapshots

* fix after merge: decaffed aliases.js

* fix usage of cypress --parallel flag in circle.yml

* fix circle.yml integration-tests jobs

* fix decaf related typo

* fix circle.yml separate command for runner-integration-tests

* update runner/integration tests + snapshot after error improvements

* fix runner/integration snapshots for chrome/ff stacktrace differences

* rerun ci

* fix passing --parallel to runner-integration tests

* perf: faster lookup for hooks without runnables

* fix afterAll hook switch logic

* backport to before/after fix

* backport to before/after fix 2

* cleanup from decaf, fix ui/package.json

* update helpers, simplify runner.spec

* fix lint-types errors, flaky spec

* fix noExit passed to e2e test inline options

* cleanup snapshot utility - refactor to use util file

* remove before/after changes

* make cy obj a class instance

* cleanup/unmerge before/after fixes PR...

* more cleanup

* add comment

* fix runner.spec

* cleanup snapshot utility more, cleanup reporter.spec

* minor rename variable

* fix specName in reporterHeader, spec_helper require

* replace reporter specPath usages with spec object from config

* cleanup, fix specs, fix types tests

* fix config spec paths in isolated runner, fix snapshot plugin button

* combine runner.spec.js and runner_spec.js

* fix incorrect merge

* minor minor cleanup

* 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

* move runner/test/cypress into runner/cypress

* start server in pluginsFile in runner/cypress tests

* fix more broken spec paths

* fix broken paths after runner/cypress folder move

* 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

* update snapshot utility, rename tests in runner/runner.spec, fix README yarn commands

* fix snapshot naming, remove redundant test in reporter_spec

* rename runner snapshot file

* address feedback: move server reporter snapshot specs out

* address feedback: add comment about exposing globals

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-06-16 14:17:24 -04:00
Zach Panzarino dc075618bb Command Timeout Progress Bar (#7646)
* Timeout animation

* Add timeout to log object

* Set timeout to log when explicitly overwritten

* No need to display if no timeout

* Throw timeouts everywhere!
I'll clean it up later

* Correctly set timeout indicator regardless of when test is opened

* Slightly modify that

* Update timeout for commands

* Update progress bar for consistent progress

* Fix issue with flashing full progress bar after complete

* Add test for progress

* Move progress bar to function

* Update unit test

* Move more command progress to css

* No progress bar for xhr

* Fix unit test

* Adding tests for progress indicator

* Fix some types

* Add e2e tests for progress bar

* Remove timeout progress from assertion logs

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2020-06-16 12:43:46 -04:00
Zach Bloomquist f305f8b10c chore: make NODE_OPTIONS fork with --inspect args (#7711) 2020-06-15 21:54:30 -04:00