Commit Graph

383 Commits

Author SHA1 Message Date
Chris Breiding
36a4289a98 release 5.6.0 [skip ci] 2020-11-09 16:19:26 -05:00
Jessica Sachs
202c2bcf19 chore: fixing the integrity check issue (#9030) 2020-10-29 19:42:47 -04:00
Zach Panzarino
5842d1dffe build: conditional CI jobs, dynamic test requirements for release, updated independent package release process (#8730) 2020-10-28 18:03:28 -04:00
Zach Bloomquist
81594b2f37 release 5.5.0 [skip ci] 2020-10-26 21:10:24 -04:00
Chris Breiding
6ec4a719bd release 5.4.0 [skip ci] 2020-10-14 16:08:54 -04:00
Dmitriy Kovalenko
a89e4a0373 chore: Fix red master (#8841) 2020-10-14 10:55:57 -04:00
Dmitriy Kovalenko
5e4b638385 fix: make imported @cypress/react working and pass CI (#8718)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2020-10-14 02:45:48 -04:00
Zach Panzarino
ff5244a1b8 chore: Add changelog generation for semantic release (#8767) 2020-10-08 17:45:30 -04:00
Zach Bloomquist
57f5f9a1e4 release 5.3.0 [skip ci] 2020-09-28 22:23:25 -04:00
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
Zach Panzarino
7f79c3de74 chore: set up monorepo (#8663) 2020-09-24 19:04:51 -04:00
Chris Breiding
6732bbc6ca release 5.2.0 [skip ci] 2020-09-15 10:05:07 -04:00
Ben Kucera
7ccf59562e fix(runner): fix firefox 'Open in IDE', test against prod builds in CI (#8551) 2020-09-14 12:40:00 -04:00
Zach Bloomquist
36bc52ecc0 release 5.1.0 [skip ci] 2020-09-01 13:46:28 -04:00
Zach Bloomquist
c37896089b feat(net-stubbing): experimental full network mocking support (#4176) 2020-08-31 09:41:47 -04:00
renovate[bot]
2309d85e46 chore(deps): update dependency @cypress/webpack-preprocessor to v5.4.4 (#8330)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-21 13:06:49 +06:30
Chris Breiding
6220a447dd release 5.0.0 [skip ci] 2020-08-19 11:58:32 -04:00
Gleb Bahmutov
dc523eb390 chore: install specific Node version on Mac before building binary (#8242) 2020-08-11 13:14:33 -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
Jennifer Shehane
a882763f08 Merge branch 'develop' into v5.0-release 2020-08-10 20:14:11 +06:30
Chris Breiding
2156e3e409 release 4.12.1 [skip ci] 2020-08-05 11:07:32 -04:00
Zach Bloomquist
580087d5dc release 4.12.0 [skip ci] 2020-08-03 13:12:55 -04:00
renovate[bot]
b5b92a4459 chore(deps): update dependency @cypress/webpack-preprocessor to version 5.4.2 🌟 (#8116)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-29 14:28:14 +06:30
Chris Breiding
f071b94cd7 Merge branch 'develop' into v5.0-release 2020-07-21 10:35:29 -04:00
Chris Breiding
7cbb5d2a19 release 4.11.0 [skip ci] 2020-07-21 10:15:08 -04:00
renovate[bot]
4a3c5f17be chore(deps): update dependency pretty-ms to version .x 🌟 (#8049)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-21 14:33:30 +06:30
renovate[bot]
7663c134a6 fix(deps): update dependency plist to version .x 🌟 (#8045)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-21 12:30:44 +06:30
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
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]
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
Zach Bloomquist
d4d81dc490 release 4.10.0 [skip ci] 2020-07-07 14:05: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
Gleb Bahmutov
4825dbb115 Update cypress-react-unit-test, run desktop-gui component tests (#7792) 2020-06-26 13:07:51 -04:00
Chris Breiding
29ca809efe release 4.9.0 [skip ci] 2020-06-23 13:31:50 -04:00
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
f10423051e internal: fix error on yarn add dependency command (#7668) 2020-06-10 19:26:59 -04:00
Zach Bloomquist
0e632635cd chore: rm non-test-related coffeescript references 2020-06-10 10:49:31 -04:00
renovate[bot]
bb94af9b58 chore(deps): update dependency eslint-plugin-cypress to version 2.11.1 🌟 (#7636)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-09 21:18:12 +06:30
Zach Bloomquist
8203f02f92 release 4.8.0 [skip ci] 2020-06-08 16:32:19 -04:00
Zach Bloomquist
1875027073 chore: decaffeinate server tests, scripts, other files (#7591) 2020-06-05 15:12:53 -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
renovate[bot]
bdcfe42f79 chore(deps): Update dependency @percy/cypress to version 2.3.1 🌟 (#7550)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-02 21:30:34 +06:30
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
Chris Breiding
f986239f25 release 4.7.0 [skip ci] 2020-05-26 19:47:13 -04:00
renovate[bot]
b7eec83655 chore(deps): Update dependency electron-builder to version 22.6.1 🌟 (#7429) 2020-05-26 13:00:09 -04:00