Commit Graph

12450 Commits

Author SHA1 Message Date
Chris Breiding
f2600b5e35 Merge branch 'develop' into v4.0-release 2019-12-09 13:46:05 -05:00
Zach Bloomquist
68ad722990 Add note to test dashboard before release [skip ci] 2019-12-09 10:57:07 -05:00
Michał
48e7c0e4e4 fix: remove cy.viewport limits (#5901)
* fix(driver): remove cy.viewport limits

* test(driver): update tests for cy.viewport
2019-12-09 10:44:21 -05:00
Kukhyeon Heo
994ab326a0 Decaff helper jscodemods. (#5732)
* Added a file that removes comments that start with #.

* Added .eslintrc to silence ts errors in codemods.

* Convert switch (false) to if-else.

* Add disable-eslint no-empty by default after empty catch.

* Reserve comments when converting switch-case.

* Added new codemods to bulk-decaffeinate.

* Preserve comments.

* Ignored lint rules for test fixtures.

* Move comments between arrow and block to the top.

* Merged tests into one file.

* Turned off no-undef for test fixtures.

* No-cond-assign

* Added jscodemods to decaff config.

* Fixed typo.

* Make CI test codemods

* Added test-no-return.

* Revert "Added test-no-return."

This reverts commit d610829e957e38a6d56c19ba2219681e3f6c65ec.

* fix arrow-comment


Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <github@chary.us>
2019-12-06 17:43:20 -05:00
KHeo
4a2636ddd3 decaffeinate: Run post-processing cleanups on project.coffee and 3 others
decaffeinate: Run post-processing cleanups on project_spec.coffee
decaffeinate: Run post-processing cleanups on open_project.coffee
decaffeinate: Run post-processing cleanups on open_project_spec.coffee
Fixed error.
Fixed snapshot.
Removed returns.
2019-12-06 17:22:29 -05:00
decaffeinate
f41b53e123 decaffeinate: Convert project.coffee and 3 others to JS
decaffeinate: Convert project_spec.coffee to JS

decaffeinate: Convert open_project.coffee to JS

decaffeinate: Convert open_project_spec.coffee to JS
2019-12-06 17:22:29 -05:00
decaffeinate
884ee980f5 decaffeinate: Rename project.coffee and 3 others from .coffee to .js
decaffeinate: Rename project_spec.coffee from .coffee to .js

decaffeinate: Rename open_project.coffee from .coffee to .js

decaffeinate: Rename open_project_spec.coffee from .coffee to .js
2019-12-06 17:22:29 -05:00
Zach Bloomquist
606a248fc7 Fix explicitly setting cookies in cy.visit and cy.request (#5896)
* try: options.cookies as object is not documented

* add test that demonstrates 5894

* merge user-supplied cookie header with genned one

* update 2_cookies_spec snapshot

* only consider an existing Cookie header for the 1st request
2019-12-06 15:43:22 -05:00
Zach Bloomquist
93b5c0eec2 Fix CDP cookie matching algorithm (#5862)
* use correct tough.match param order

* add chrome extension types

* fix CDP cookie matching algorithm

* improve domain suffix match

* add tests for cookie matching utils
2019-12-06 15:12:36 -05:00
Zach Bloomquist
ed07844d8d Bump max archive size on macOS, Linux
Most PRs are hitting this, let's bump it.
2019-12-06 14:41:32 -05:00
Santosh Yadav
932f859c31 docs: move contributing and code of conduct (#5881) 2019-12-06 23:31:35 +06:30
Jennifer Shehane
9d239d2b4f Font awesome 5 icon improvements (#5870)
* change fa-sync icons to comparible fontawesome 4 'fa-sync-alt'

* Fix spinner in reporter from being cut off during test run

* Fix some of the stylings of icons to match previous styles more closely.

* fix the main-nav icons losing their color from last commit
2019-12-06 11:25:27 +06:30
Zach Bloomquist
c78672c896 Add release cycle info to DEPLOY [skip ci] 2019-12-05 13:46:51 -05:00
Brendan McGinn
d0eef76208 Increase Max height / width to 8000px (#5882) 2019-12-05 23:47:07 +06:30
Zach Bloomquist
13aa496476 use cross-env in npm scripts so they work on Windows (#5888)
* use cross-env in npm scripts so they work on Windows

* update more cross-envs

* Apply suggestions from code review

Co-Authored-By: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2019-12-05 11:38:03 -05:00
Jennifer Shehane
692a3c07d9 Support --tag argument (#5164)
* Alphabetize cli options for my own sanity

* begin added tag flag

* Fix some minor grammar in cli help output + be more specific for specs description

* update snapshot based on alphabetization change

* update snapshot to include --tag in help output

* update logic for pulling out space delimited args to look through --tag and --spec flags dynamically

* Support and pass along tag flag to run and record

- show err if passed without record flag
- sanitize args into comma separated string
- display tag in record errors

* fix some tests/snapshots where 'tag' was missing

* Actually try passing in tag through tests to ensure it prints.

* Merge branch 'develop' into issue-2561-tags

# Conflicts:
#	cli/__snapshots__/cli_spec.js
#	cli/lib/cli.js
#	cli/lib/exec/run.js
#	packages/server/lib/modes/run.js
#	packages/server/lib/util/args.js

* Send 'tags' as an array to backend API

* Update json-schemas to query against 2.2.0 of postRun

- this will require a bump to json-schemas repo

* update test to reflect tags array

* update snapshot to display nightly tag

* rearrange args to alphabetical order in specs

* Add tags to runResponses / remove tag from incorrect instance post

* Fix failing specs / snapshots

* Update error messages + snapshots

* Fix snapshot that no longer displays tag arg

* fix args unit test

* remove extra slash

* add a few more cli tests

* another test just in case

* a quick unit test for displayFlags utility


Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2019-12-05 23:02:14 +06:30
Kukhyeon Heo
ab816d81ae Visibility false to style='transform: scale(0,0)' or style='tra… (#5590)
* Handle elements hidden by scale.

* Check rotateX(90deg), rotateY(90deg) + Use of getBoundingClientRect

* Added reason message.

* Fixed typo.

Co-Authored-By: Chris Breiding <chrisbreiding@users.noreply.github.com>
Update packages/driver/src/dom/visibility.js

Co-Authored-By: Chris Breiding <chrisbreiding@users.noreply.github.com>
Fixed typo.

* Use numberRegex created for backface-visibility.

* Added test for reason message.

* Added missing message test in #5591
2019-12-05 10:46:17 -05:00
Ben Kucera
6ed8d31cf0 fix: cy.type in hidden inputs, contenteditable selections (#5865)
* fix type when previous selection in input

* cleanup

* cleanup more

* more cleanup

* more more cleanup final

* fix not firing input event in all cases

* fix deletion with selection in contenteditables + tests

* remove only

* fix hidden input selections
2019-12-04 16:45:25 -05:00
Gleb Bahmutov
370eb6ab0f pass -- as an argument from CLI to Electron application to avoi… (#5853)
* if cypress gets -- as leading argument, remove it

* start Eletron app args with --

* remove only

* update CLI to pass --no-sandbox before -- separator

* remove -- from args in cypress server

* do not use --no-sandbox in CLI when running in dev mode
2019-12-04 10:13:55 -05:00
Josef Biehler
259bfbecbe add Loggable options to its() / invoke() command (#5519)
* add Loggable options to its() command

* add test for new Loggable option for its()

* add loggable options to invoke()

* add type definition
fix: only set logger config once. afterwards other commands can overwrite the logger config as done in line 322
remove unused error message (usage was removed in a former commit)
remove test that is unnecessary now

* add check if its() was passed additional arguments next to options

* try to fix test

* do not log 'this' context

* from review: add additional tests and fix some edge cases

* add tests for combination of loggable options and numeric index

* fix wrong indentation

* write as 'functionName' and 'propertyName' to match other error message

* Update tests to reflect newly worded errors


Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2019-12-04 11:52:44 +06:30
Jennifer Shehane
bbd519a54f Upgrade font-awesome to 5+ (#5822)
* Upgrade font-awesome to 5+

- replace all ‘fa’ uses with ‘fas’ or ‘far’ respectively
- rename icons that required renaming
- remove scss font-awesome 4 references and replace with font-awesome 5
- update npm package that is installed

* fix failing spec

* include all the necssary scss

* fix/improve tests

* fix icon references

* fix some icons


Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
2019-12-03 22:33:58 +06:30
Ben Kucera
74006acf66 try 2: fix type when previous selection in input in some cases (#5854)
* fix type when previous selection in input

* cleanup

* cleanup more

* more cleanup

* more more cleanup final

* fix not firing input event in all cases
2019-12-03 21:29:07 +06:30
Zach Bloomquist
02515fec61 cli: unnzip Cypress using unzip utility on Linux (#5851)
* unzip using 'unzip' utility on linux

* add example unzip test
2019-12-03 09:19:12 -05:00
Brian Mann
1ad3e27eaa Decaf server automation code and related tests (#5850)
Decaf server `automation` code and related tests
2019-12-02 18:35:55 -05:00
decaffeinate
0c2b6c5826 decaffeinate: Run post-processing cleanups on cookies.coffee and 4 other files 2019-12-02 15:04:08 -05:00
decaffeinate
2a2f1fc775 decaffeinate: Convert cookies.coffee and 4 other files to JS 2019-12-02 14:35:41 -05:00
decaffeinate
17f9ed0933 decaffeinate: Rename cookies.coffee and 4 other files from .coffee to .js 2019-12-02 14:35:38 -05:00
Zach Bloomquist
d56c551b0b Don't set servername when making requests to IP addresses (#5767)
* Don't set `servername` when making requests to IP addresses

* fix test
2019-12-02 22:43:20 +06:30
Gleb Bahmutov
a26d06aa78 Merge branch 'develop' of github.com:cypress-io/cypress into develop 2019-12-02 09:58:10 -05:00
Gleb Bahmutov
a73f2dd8b7 mention projects that need to be upgraded to new version after release 2019-12-02 09:57:55 -05:00
Jennifer Shehane
be3f1ab225 Decaff querying.coffee and its test. (#5643)
Decaff querying.coffee and its test.
2019-12-02 21:27:44 +06:30
renovate[bot]
dc93bee748 chore(deps): Update dependency ansi-escapes to version 4.3.0 🌟 (#5815)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-02 21:06:22 +06:30
Gleb Bahmutov
2a095c0746 mention setting next version 2019-12-02 09:09:48 -05:00
renovate[bot]
483823c313 chore(deps): Update dependency arg to version 4.1.2 🌟 (#5494)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-02 13:51:19 +06:30
renovate[bot]
1cbf22a0bb fix(deps): Update dependency electron-context-menu to version 0… (#5495)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-02 13:27:50 +06:30
KHeo
d115aa79e4 decaffeinate: Run post-processing cleanups on querying.coffee
Fixed eslint errors and removed returns.

Minor fixes.
Fixed switches.
Removed returns.
2019-11-28 09:42:15 +09:00
decaffeinate
eed8d19ff3 decaffeinate: Convert querying.coffee to JS 2019-11-28 09:33:19 +09:00
decaffeinate
e9cd4c48ad decaffeinate: Rename querying.coffee from .coffee to .js 2019-11-28 09:33:19 +09:00
KHeo
a1d49c5ee4 decaffeinate: Run post-processing cleanups on querying_spec.coffee
Fixed eslint errors and removed returns.
2019-11-28 09:33:19 +09:00
decaffeinate
c977d82ec8 decaffeinate: Convert querying_spec.coffee to JS 2019-11-28 09:33:19 +09:00
decaffeinate
ffd7c527b7 decaffeinate: Rename querying_spec.coffee from .coffee to .js 2019-11-28 09:33:19 +09:00
Zach Bloomquist
b0378dc04e Refactor proxy into own package, implement middleware pattern (#5136)
* renames

* Refactor proxy into own package, implement middleware pattern

don't need these mocha opts anymore

fix test

no more zunder

READMEs

fix test

* pass request by reference

* fix cors path

* Move replace_stream to proxy, concat-stream util in network

* Pin dependency versions

* Revert addDefaultPort behavior

* Add READMEs for proxy, network

* Update README.md

* eslint --fix

* set to null not undefined

* use delete and bump node types

* import cors from package now

* parse-domain@2.3.4

* proxy package needs common-tags

* move pumpify dep

* load through where it's needed, remove unused passthru_stream

* remove unneeded getbuffer call


Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2019-11-27 19:16:15 -05:00
Zach Bloomquist
b96071ba1b release 3.7.0 [skip ci] v3.7.0 2019-11-27 18:09:09 -05:00
Zach Bloomquist
5e3b4bdd84 Revert "fix type when previous selection in input in some cases" (#5812)
Revert "fix type when previous selection in input in some cases"
2019-11-27 16:16:30 -05:00
Zach Bloomquist
0ddedfac0a Revert "fix type when previous selection in input in some cases (#5809)"
This reverts commit bfb9d83fb4.
2019-11-27 16:15:41 -05:00
Ben Kucera
bfb9d83fb4 fix type when previous selection in input in some cases (#5809)
* fix type when previous selection in input

* cleanup

* cleanup more

* more cleanup

* more more cleanup final
2019-11-27 15:41:01 -05:00
Gleb Bahmutov
64f5bf0870 catch child process killed with a signal (#5810)
* WIP: catch child process killed with a signal

* unit test getError

* we don't need custom exit code

* Update cli/lib/exec/spawn.js

Co-Authored-By: Zach Bloomquist <github@chary.us>

* Update cli/lib/errors.js

Co-Authored-By: Zach Bloomquist <github@chary.us>

* update snapshots with wording
2019-11-27 15:21:47 -05:00
Kukhyeon Heo
0311c580c8 TypeScriptify reporter. (#5666)
* Turn on strict mode for ts files.

* Tsified lib/app-state.

* Tsified lib/err-model

* Fixed eslint setting for tsx files.

* Installed typings for classnames, chai-enzyme.

* Tsified header/controls.jsx. Fixed app-state.ts for it.

* Changed parser to typescript-eslint.

* Tsified header/stats-store

* Turn off no-unused-vars because it is checked by typescript compiler.

* Removed Omit because we use typescript parser for eslint.

* Tsified header/stats

* Created Props interfaces.

* Tsified header/header

* Tsified hooks/hook-model

* Tsified routes/route-model

* Tsified lib/util

* Tsified collapsible/collapsible

* Tsified lib/flash-on-click

* Tsified instrument-model and agent.

* Tsified command/command-model.ts

* Made hook-model use command-model types.

* Tsified runnable/runnable-model and suite-model

* Tsified lib/scroller.

* Tsified test/test-model.

* Tsified runnable-store and fixed related files.

* Tsified shortcuts

* Renamed events.ts

* Tsified lib/events

* Added typings

* Tsified command/command.tsx.

* Added more types to command.tsx

* Tsified AnError and TestError

* Tsified Hooks.

* Tsified Routes.

* Tsified test.tsx.

* Tsified runnable-and-suite.tsx.

* Tsified runnables.tsx

* Added react-dom types.

* Tsified main.jsx.

* Fixed for build.

* Fixed "Definition was not found" error.

* Fixed sinon name imports.

* Fixed Agents test types.

* Removed IAppState.

* Renamed for clarity.

* Fixed model type in test-error.

* Removed IStatsStore

* Fixed HookModel.

* Removed !. in events.

* Fixed RouteModel.

* Fixed runnables-store.

* Fixed TestModel-related things.

* Removed anys.

* Fixed lint error.

* Fixed AppState.pinnedSnapshotId type.

* Fixed more types.

* Removed NodeJS.TimeOut.

* Fixed unit test failures.

* fix lint script

* used warn instead of 1
2019-11-27 14:10:04 -05:00
Kukhyeon Heo
e19bcc038a CI should fail when something went wrong. (#5779)
* Added unit test script wrapper.

* Removed bin-up to make lint-coffee fail.

* Made mocha tests return non-zero value on failure for reporter and runner

* Added empty space to test ci failure.

* remove extra whitespace

* use Promise.delay instead of hand-rolled sleep function

* include root-level tests

* exit with number of failures
2019-11-27 12:41:45 -05:00
Kukhyeon Heo
e313f8cdc3 Fixed reporter unit-test failures. (#5775)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2019-11-27 11:23:54 -05:00