Commit Graph

13082 Commits

Author SHA1 Message Date
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
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
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
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
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
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 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
Zach Panzarino
6d2e7924fe Add spec loading state and animation (#7709)
* Add loading state and animation

* Style fixes

* Update packages/reporter/src/runnables/runnables.scss

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2020-06-15 16:52:52 -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
Jennifer Shehane
f883590eff Update types to allow for alias 'key' for 'keys' with chai chainers (#7687) 2020-06-15 19:55:14 +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
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]
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
Zach Bloomquist
d3acf91ea6 fix(types): cy.wait yields previous subject (#7682) 2020-06-12 13:38:02 +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
Zach Panzarino
620c2e6b13 Fix links in PR template (#7684) 2020-06-12 11:08:56 +06:30
Jennifer Shehane
ae86622dd3 Update types for configuration values that allow string or false (#7674) 2020-06-12 09:54:25 +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
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
Ben Kucera
f10423051e internal: fix error on yarn add dependency command (#7668) 2020-06-10 19:26:59 -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