Commit Graph

2343 Commits

Author SHA1 Message Date
Kukhyeon Heo ed1fa6b4e5 Transform visibility when height/width is set. (#6000)
* Transform visibility when parent height/width is set.

* width: 0 or height: 0 + transform != 'none' => visible.

* Refactor transform checker functions.
2020-01-02 22:56:30 +06:30
renovate[bot] 2d9b8e597f fix(deps): update dependency ansi_up to version 4.0.4 🌟 (#6074)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-01-02 10:40:41 +06:30
decaffeinate f0adc7b06f decaffeinate: Run post-processing cleanups on exit.coffee and 12 other files
Revert changes to scaffold_spec snapshot
2019-12-27 12:09:31 -05:00
decaffeinate c5f5551c35 decaffeinate: Convert exit.coffee and 12 other files to JS 2019-12-27 12:09:31 -05:00
decaffeinate 3892814c2f decaffeinate: Rename exit.coffee and 12 other files from .coffee to .js 2019-12-27 12:09:31 -05:00
Kukhyeon Heo 00a7e69ed2 Fix hastily-done decaffs. (#6045) 2019-12-27 11:41:55 -05:00
renovate[bot] 30cbd1bc0e chore(deps): Pin dependency @cypress/sinon-chai to version 2.9.… (#6040)
* chore(deps): Update @cypress/sinon-chai to 2.9.0 🌟

* Do not pin node engine.

Co-authored-by: Renovate Bot <renovatebot@gmail.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2019-12-24 14:29:14 +06:30
Andrew Smith ccbbbdd313 Config values that come from plugins are now colored properly (… (#6036)
Actual data is that the from value is `"plugin"` and not `"plugins"`
2019-12-24 10:45:54 +06:30
Ben Kucera 9e0f32a4a5 address feedback on #6033 (#6034) 2019-12-23 13:23:55 -05:00
Ben Kucera 16b76f4d99 fix: edge cases during cy.type in number input (#6033)
- regressions introduced in `3.8.0`
2019-12-23 12:11:12 -05:00
Jennifer Shehane 37dd2756bc remove unused deep 'style-loader' (#6028) 2019-12-23 22:48:24 +06:30
renovate[bot] 487bd76e19 chore(deps): update dependency @types/node to version 12.12.21… (#6029)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-23 14:20:25 +06:30
renovate[bot] ae8277ceb6 fix(deps): update dependency jimp to version 0.9.3 🌟 (#6020)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-23 09:14:30 +06:30
renovate[bot] c3ad1a372a fix(deps): update dependency ansi_up to version .x 🌟 (#4331)
* fix(deps): update ansi_up to 4.0.3 🌟

* Update ansi_up to use new non-deprecated 2.0+ api

* Do not pass 'use_classes: true' (defaults to false) - we are expecting rgb values in our tests

* set back to use_classes

* Fix 'use_classes' option which was being incorrectly passed

Co-authored-by: Renovate Bot <renovatebot@gmail.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2019-12-20 18:31:15 +06:30
renovate[bot] 14206e3fc3 fix(deps): Update dependency which to version .x 🌟 (#6017)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-20 16:42:43 +06:30
renovate[bot] 56f68924f5 fix(deps): Update dependency chrome-remote-interface to version… (#6008)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-20 16:39:18 +06:30
Zach Bloomquist ddc86343a1 Always use 127.0.0.1 instead of localhost for CDP (#5960)
* force ipv4 for CDP

* update tests
2019-12-20 00:21:43 +06:30
Jennifer Shehane efe83ca84c Have org selector properly show when no default org (#5955)
* Update logic when looking for org to check length of orgs excluding default

- Also hide the ‘Me | Org’ selector altogether since it makes to sense
to be there, you can’t choose ‘Me’ because it doesn’t exist.

* Remove radios for 'me' and 'an org' entirely

- have default org show up as ‘Your personal organization’

* Select default org by default

* Preselect 'personal org' or first org in list by default

* clean up test selectors + fix failing runs list spec

* Add react-select for orgs select / add back showing avatar for 'personal org'

* Have loader properly display in setup project model when orgs are still loading
2019-12-20 00:20:38 +06:30
renovate[bot] d83788dd43 chore(deps): update snap-shot-it to 7.9.1 🌟 (#6007) 2019-12-19 23:01:53 +06:30
Jennifer Shehane c8dac444f9 replace gulp-gh-pages-will with original gulp-gh-pages (#4827)
* replace gulp-gh-pages-will with original gulp-gh-pages

- the original has the gift update that was intended for the forked
versions usage.

* actually, the dep updated needed is only in their 'next' release.

Nobody has any idea why they haven't tagged it as latest in npm, the
repo looks a bit abandoned tbh.

* update require statement to new dep

* fix weird merge conflict
2019-12-19 22:07:14 +06:30
renovate[bot] 548958af9d fix(deps): update dependency get-port to version 5.1.0 🌟 (#6004)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-19 22:03:59 +06:30
renovate[bot] 720bc470e9 chore(deps): update dependency rc-collapse to version 1.11.7 🌟 (#6003)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-19 15:05:29 +06:30
renovate[bot] 1dfc81b3ac chore(deps): Update dependency @types/bluebird to version 3.5.2… (#4132)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-12-19 15:03:20 +06:30
renovate[bot] e8f289cc0a chore(deps): update dependency angular to version 1.7.9 🌟 (#5753)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-19 15:02:48 +06:30
renovate[bot] 95d5d0efef fix(deps): update dependency send to version 0.17.1 🌟 (#5130)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-19 14:34:51 +06:30
Gleb Bahmutov 79545fc646 add printing package folder sizes to the build script (#5978)
- and work around `parse-domain` Jest inclusion to minimize bundle size
2019-12-18 14:59:08 -05:00
renovate[bot] 6d264d26b4 chore(deps): update dependency devtools-protocol to version 0.0… (#5994)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-18 16:24:54 +06:30
Jennifer Shehane 6552d7e76f Simply state that the element is not visible. (#5982) 2019-12-18 14:02:49 +06:30
renovate[bot] 343c0f459c chore(deps): update dependency js-cookie to version 2.2.1 🌟 (#5131)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-17 10:59:10 -05:00
renovate[bot] 19eb17141f chore(deps): update dependency bootstrap to version 4.4.1 🌟 (#5983)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-12-17 16:20:29 +06:30
Zach Bloomquist c8b184be44 Fix cypress run --headless (#5953)
* fix chrome headless

* update tests, load absolutely no extensions

* lol

* add e2e test for '--headless' flag

* add get:screenshots:taken

* add test for window bounds

* fix --headless test

* update snapshot

* ts'ify and document functions in chrome.ts

* properly export @packages/launcher types

* fix types

* assert on window bounds in headless spec

* add navigator.userAgent test

* only run in ci

* remove test of questionable value
2019-12-16 13:10:12 -05:00
Zach Bloomquist bb7252b291 Remove strict cookie validation from cookie commands (#5957)
* Remove strict cookie validation from cookie commands

* fix test

* wrap cookie automation errors with something a lil friendlier

* show message and stack

* fix test
2019-12-16 10:45:19 -05:00
Zach Bloomquist 580898119d Fix open_project_spec (#5946) 2019-12-12 19:27:43 -05:00
Andrew Smith e1a97a1c17 Merge branch 'develop' into issue-5859-env-vars-show-undefined 2019-12-12 16:35:25 -05:00
Andrew Smith 5423399b27 improve tests
- only a single test; no longer 3 separate tests for the same case
2019-12-12 16:31:07 -05:00
Gleb Bahmutov fe44330165 pass additional Electron launch args from env variable (#5891)
* pass additional Electron launch args from env variable

* iterate over keys

* add environment test

* hmm, print error

* do not rethrow error

* do not swallow error in development, stub disable hw acc method

* use app.command.appendArgument
2019-12-12 16:10:27 -05:00
Andrew Smith 3690eedf73 make tests pass; for real 2019-12-12 15:39:08 -05:00
Brian Mann 6e9e6ab3c6 fix desktop gui specs not being watched for file changes (#5934)
* always null out specsWatcher so opening the project watches the specs for changes correctly

* add test, cleanup
2019-12-12 15:31:44 -05:00
Zach Bloomquist 5628fc3ae6 Clean up TypeError in request.coffee (#5937) 2019-12-12 13:55:58 -05:00
Andrew Smith 98320cf4da make tests pass
implementation works individually for each of the three test cases. I don't like breaking them into three separate E2E tests, but I'm unsure how to orchestrate them properly otherwise.
2019-12-12 13:36:21 -05:00
Brian Mann ffa2aca702 correctly await yielding the onConfigChanged callbacks 2019-12-12 13:17:42 -05:00
Brian Mann c52c341d20 Merge branch 'develop' into issue-5859-env-vars-show-undefined 2019-12-12 13:02:19 -05:00
Zach Bloomquist 35109fb08c Chrome headless (#5676)
* always disable xvfb

* add --headless

* Revert "always disable xvfb" - it is still needed for Electron

This reverts commit 058679f4ce.

* updates

* update 3_plugins_spec

* update wording now that chrome can be headless

* fix video recording when headless

* Don't assume that chrome is headed

* update electron video recording message

* Add 2_headless_spec for Cypress.browser values

* update headless language

* still use headless by default for electron and headed for chrome

* fix up cli

* fix e2e tests

* update npm api types

* fix 2_headless_spec

* keep alphabetical ordering

* increase binary size limit

* add a comment on the cli error impl

* use _.defaults for default for headed

* fix

* _.defaults mutates
2019-12-12 12:26:32 -05:00
Ben Kucera 8c13594b39 cleanup after decaffeinate 2019-12-11 16:48:31 -05:00
decaffeinate ebe6ed07c8 decaffeinate: Run post-processing cleanups on actionability.coffee and 14 other files 2019-12-11 16:42:30 -05:00
decaffeinate be49ff3354 decaffeinate: Convert actionability.coffee and 14 other files to JS 2019-12-11 16:42:29 -05:00
decaffeinate 2cdf3785ed decaffeinate: Rename actionability.coffee and 14 other files from .coffee to .js 2019-12-11 16:42:28 -05:00
Zach Bloomquist 34037137c6 Electron upgrade (#5849)
* electron@7.x

* node12.8.1-chrome78-ff70

* Revert "node12.8.1-chrome78-ff70" for now

This reverts commit db2d521994.

* update sendCommand to log on all sendcommands

* promisification in 6.x

* Revert "Revert "node12.8.1-chrome78-ff70" for now"

This reverts commit 57fe764098.

* fix sendcommand

* fix cdp in electron

* fix desktop-gui test

* skip tests that will be fixed by #4973

* bump MAX_ALLOWED_FILE_SIZE :/

* update electron browser spec

* make new dialog code null-proof

* add failing e2e test for issue 5475

* bump electron packager

* add e2e snapshot

* update deprecated electron getters/setters

https://github.com/electron/electron/blob/7-1-x/docs/api/modernization/property-updates.md

* build and test on Mac

* move macbuildfilters to top

* 7.1.3

* electron@7.1.4


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2019-12-11 13:29:33 -05:00
Andrew Valleteau d122be50cf Have cy.request support urls with specials Unicodes chars (#5813)
* test(pkg/driver): url with unicode characters into .request command

* fix(pkg/driver): unicode character escaping in url for .request command

Use encodeURI inside `cy.request` to make sure the url does not contain
any unescaped Unicode character.

Fixes #5274

* fix(pkg/driver): unicode character escaping in url for .request command

Use `URL constructor` inside `cy.request` to make sure the url is well
encoded when for both domain and pathname.

Fixes #5274

* fix(tests): add some more tests for the case of a % character in url

* refactor(tests): Move the tests to request_spec test file

- Move the tests inside the request_spec test file instead of his own
test file to be sure it will be maintain.
- Rename some "it" test titles to semantically fit in the actual tests
naming convention.
- Remove the no more used 5274_spec.coffee test file.
2019-12-11 12:33:52 -05:00
Jennifer Shehane 05ad20fdad Show different icons depending on browser 'family', add a fallb… (#5746)
* have different icons display depending on browser 'family', add a fallback for not knowing family

* Update browsers dropdown

- Add back the colors + make them a little nicer
- Add more believable browsers to config fixture (including Electron)
- Update tests to make them more dynamic to newly added browsers in
config

* Update code to use existing utility for browser icons.

* fix missing closing }

* make firefox icon same size as others + fix style that was not being read
2019-12-10 10:21:15 +06:30