Commit Graph

397 Commits

Author SHA1 Message Date
Kukhyeon Heo 1c6925f952 feat: Add a video chapter key for each test. (#8755)
* Add chapters to the video.

* Add test.

* Use async, await.

* Add more asserts.

* Install ffprobe if necessary.

* Update ffprobePath.

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-10-10 22:32:12 -04:00
renovate[bot] 693bc4acbd fix(deps): update dependency firefox-profile to version .x 🌟 (#8786)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-09 15:29:53 +06:30
Zach Panzarino 79494fc080 fix(webpack-preprocessor): update webpack preprocessor for monorepo (#8666)
* update webpack preprocessor for monorepo
2020-09-24 21:08:56 -04:00
Chris Breiding f538c94245 fix: Support path aliases in plugins file (#8557) 2020-09-11 12:27:39 -04:00
Zach Bloomquist c37896089b feat(net-stubbing): experimental full network mocking support (#4176) 2020-08-31 09:41:47 -04:00
Chris Breiding 949448fad1 fix: Fix mjs file support (#8395) 2020-08-25 09:55:07 -04:00
renovate[bot] 2a2cad64ec fix(deps): update dependency command-exists to version 1.2.9 🌟 (#8388)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-25 12:03:17 +06:30
Chris Breiding ff4ea2b376 fix: Add support for more node builtins (#8273) 2020-08-13 15:42:29 -04:00
Zach Bloomquist 5a3e7e6143 fix: add patches to package files (#8272) 2020-08-13 14:39:30 -04:00
Chris Breiding 3a16e23bc6 fix: Fix crashing due to rerunning on initial bundle of specs (#8264)
* ignore sendFile EPIPE errors

* upgrade @cypress/webpack-preprocessor to 5.4.4
2020-08-12 14:45:39 -04:00
Ben Kucera 860a20af30 feat: support test retries (#3968)
* add retries e2e test

* restore runner/test/eslintrc

* use mocha pass event, move runner.spec to runner package

* fix .eslintignore

* remove npmInstall logic in helper/e2e script, force custom reporters to use our mocha

* temp 04/09/20 [skip ci]

* add retries output to server/reporter, fix mocha pass event order, cleanup

* e2e tests - dont run electron tests in other browsers

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

* fix after merge

* fix .coffee -> .js after merge

* fix attempt.tsx

* fix runnable titles emitted to terminal reporters

* fix more tests: update snapshots, fix 7_record_spec, 8_reporters_spec

* remove styling for 'attempt-error-region' so it's not indented

- This was the older styling before error improvements and is no longer
necessary.

* try 2: fix rerun before/after hooks

* fix runner with only, runner snapshots, lint fixes

* 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

* simplify mocha prototype patches

* fix decaf utils.coffee after merge

* 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

* fix after merge

* minor rename variable

* fix after merge: decaffed files

* 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

* delete old spec

* fix snapshot naming, remove redundant test in reporter_spec

* fix file renames after merge

* rename runner/ snapshot

* update server/unit/reporter_spec snapshot

* update runner/runner_spec snapshot

* rename runner snapshot file

* address feedback: move server reporter snapshot specs out

* address feedback: add comment about exposing globals

* fix test-retries after merging isolated-runner

* fix runner/test helper, update snapshot

* address feedback: split out runner/retries spec, move reporter/ui tests to runner/ui spec (mostly done), various cleanup

* fix scrolling, attempt opening, update snapshots

* fix e2e support file

* fix 5_spec_isolation

* fix mislabeling attempt screenshots

* only add test results prevAttempts if exists

* fix reporter/unit tests, server/unit tests

* remove dead code, fix test isOpen

* update snapshots for retries.mochaEvents, fix snapshot error in state hydration test, remove dead snapshots

* new moduleAPI schema using attempts array, fix wrapping errors from hook retries, update snapshots

* add displayError, null out fields in moduleAPI schema

* change default retries to {runMode:2, openMode:0}

* fix reporter type-check

* upgrade json-schemas, update snapshots

* reformat error.stack to be only stacktrace, update snapshots

* fix stacktrace replacing in 5_spec_isolation

* fix navigation error causing infinite reloading, bump timeout on e2e/8_error_ui

* fix server/unit tests for new schema

* fix reporter/unit tests

* fix reporting duplicate screenshots using cy.screenshot during test retry

* update snapshot for 6_uncaught_support_file_spec

* bump x-route-version: 3

* fix test.tsx collapsible content, css, fix e2e/8_error_ui, e2e projects excluding retries

* fix css, fix padding in runnable-instruments, fix runner/integration tests

* fixup after merge

* fix reporter/runner to work with split hooks

* update api tests, runner/cypress tests, reporter

* fix 5_spec_isolation snapshots, fix runner/cypress errors.spec, fix null reference in test.tsx

* fix e2e/non_root spec, fix type_check, fix reporter/unit tests

* setup percy snapshots in runner/cypress, fix driver/runner test:after:run event, add tests for only,skip in runner/cypress, fix retried css

* add customPercySnapshot

* fix circle.yml

* fix circle.yml 2

* fix circle.yml 3

* add warning for incompatible retries plugin

* add more percy snapshots

* fix firefox screenshot resolution in e2e test

* Fix testConfigOverrides not affecting viewport (#8006)

* finish adding percy snapshots to runner/cypress retries spec, update error msgs, add tests to be fixed

* remove .only

* fixing missing repo argument

* fix testConfigOverrides usage with retries, fix test

* fix issues from previous merge

* add script that can query CircleCI workflow status

* add circleci job to poll

* add retries

* try yarn lock

* retry, percy finalize

* check for current running job

* do not swallow request error

* better print

* use job name from circle environment

* use debug instead

* renamed circle polling script

* refactor circle to conditionally run percy-finalize when env var is available

- pass job-names to wait on as an argument

* use multi-line strings and quote --job-names

- rename —circle-jobs to —job-names

* add comment

* only poll until the jobs to wait for are blocked or running

* fix running hooks at correct depth after attempt fails from hook and will retry, update e2e snapshots

* fix reporter/unit tests, remove unused toggleOpen code

* move custom percy command into @packages/ui-components and apply them to desktop-gui

* halt percy finalize job if env variable is not set

* if only I could code

* update runner/cypress mochaEvent snapshots, fix e2e firefox resolution

* fix css for attempt border-left, fix attempt-tag open/close icon, add color to attempt collapsible dot

* try percy set viewport width

* set default retries back to {runMode:0, openMode:0}

* formatting: add backticks to warning message

* write explicit test for screenshot overwriting behavior, fix snapshots after changing retries defaults

* fix e2e.it.only`

* cleanup whitespace

* update snapshots

* fix cypress module API types for new result schema

* build and upload binary for test-retries branch too (linux)

* add pre-release PR comment

* fix pre-release commit comment

* rename runner/cypress test

* update retries.ui.spec test titles

* fix after merge: use most recent attempt for before/after hooks

* add suite title to hook error in runner/cypress tests

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2020-08-10 18:36:45 -04:00
Chris Breiding 474bcddbd3 feat: Change default preprocessor to webpack (#7982)
* make tests preprocessor agnostic

* update eslintignore

* put back deps needed for e2e test

* remove obselete snapshot

it was replaced by 1_typescript_support_spec.ts.js

* switch from browserify to webpack preprocessor

* cmon github

* fix/update tests

* bump preprocessor and update snapshots

* update snapshots

* bump preprocessor to gain json support

* fix e2e tests with webpack-originated errors

* bump preprocessor version, fix node globals

* update snapshot

* remove support for ? in file path

* bump preprocessor version

* bump preprocessor again

* bump preprocessor

* bump preprocessor

* update snapshots

* bump preprocessor version

* bump preprocessor, quiet the paths plugin

* add test verifying tsconfig paths work

* bump batteries-included preprocessor and install latest webpack preprocessor beside it

* update snapshots

* put back snapshot

* update snapshot

* update snapshot

Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-08-10 16:55:15 -04:00
Jennifer Shehane a882763f08 Merge branch 'develop' into v5.0-release 2020-08-10 20:14:11 +06:30
renovate[bot] 7341476f0f fix(deps): update dependency express to version 4.17.1 🌟 (#8179)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-08-06 12:37:37 +06:30
renovate[bot] d3e90d6c8c fix(deps): update dependency electron-context-menu to version .x 🌟 (#8180)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-05 12:55:46 +06:30
renovate[bot] 996fe97ee8 fix(deps): update dependency md5 to version 2.3.0 🌟 (#8161)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-04 16:23:55 +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
renovate[bot] 9c8e6f7a1a fix(deps): update dependency jimp to version 0.14.0 🌟 (#8102)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-07-29 11:29:25 +06:30
Chris Breiding f65a50f411 don't hoist @benmalka/foxdriver 2020-07-27 09:21:48 -04:00
Chris Breiding f071b94cd7 Merge branch 'develop' into v5.0-release 2020-07-21 10:35:29 -04:00
Chris Breiding 844bc51c19 Upgrade @benmalka/foxdriver to 0.4.1 (#8040) 2020-07-20 14:51:51 -04:00
Zach Bloomquist b60abedc8b Merge remote-tracking branch 'origin/develop' into v5.0-release 2020-07-20 10:02:37 -04:00
renovate[bot] adff08c344 fix(deps): update dependency human-interval to version .x 🌟 (#8031)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-20 15:55:53 +06:30
renovate[bot] 8257d4f7f9 fix(deps): Update dependency fix-path to version .x 🌟 (#8028)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-20 12:28:31 +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
Brian Mann 09c72e3589 silence deprecation warnings rather than patch transient deps for Buffer warnings 2020-07-17 13:53:26 -04:00
renovate[bot] bf1b81122b fix(deps): update dependency uuid to version .x 🌟 (#8011)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-17 15:50:44 +06:30
renovate[bot] 319705626b fix(deps): update dependency uuid to version .x 🌟 (#8002)
* fix(deps): update uuid to 7.0.3 🌟

* Update require statement with new breaking change

* Fix call to uuid method

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-07-17 13:04:48 +06:30
renovate[bot] c2dc7572b6 fix(deps): update dependency firefox-profile to version .x 🌟 (#8000)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-16 15:08:36 +06:30
Surya Tripathi f0a6564f70 fix(server): close Firefox completely between specs on Windows (#7106)
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2020-07-15 14:42:25 -04:00
renovate[bot] 65aa21a9b8 fix(deps): update dependency resolve to version 1.17.0 🌟 (#7989)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-15 17:25:49 +06:30
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
renovate[bot] 119c24a425 fix(deps): Update dependency uuid to version 3.4.0 🌟 (#7976)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-15 12:19:05 +06:30
renovate[bot] b6657ad8e5 fix(deps): Update dependency systeminformation to version 4.26.9 🌟 (#7975)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-14 16:46:05 +06:30
Brian Mann db624e8502 fix node unsafe buffer warnings in convert-source-map and inline-source-map 2020-07-13 00:26:39 -04:00
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 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 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
Zach Bloomquist 882774d949 fix(server): fix excess debug logs from foxdriver (#7727) 2020-06-25 13:58:08 -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
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] 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 Bloomquist 0e632635cd chore: rm non-test-related coffeescript references 2020-06-10 10:49:31 -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
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
Jennifer Shehane 33207aab9f Pin dependencies that were not pinned (#7549)
* Pin dependencies that were not pinned

* yarn lock
2020-06-02 12:44:11 +06:30
Jennifer Shehane d2c38d7ea9 Downgrade react and react-dom to 16.8.6 (#7525)
* downgrade react and react-dom to 16.8.6

* Downgrade react/react-dom in all packages since react can't handle multiple versions installed.
2020-05-30 07:52:41 +06:30