Commit Graph

12945 Commits

Author SHA1 Message Date
renovate[bot]
68ec0bb8a0 chore(deps): Update dependency cypress-multi-reporters to version 1.4.0 🌟 (#7431) 2020-05-20 15:23:52 +06:30
Jennifer Shehane
208b01cb1f Add note to contributing about yarn bug + instructions for adding on links (#7384) 2020-05-20 10:55:13 +06:30
Chris Breiding
a3fbab0fc8 Handle webpack protocol file opening (#7296)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2020-05-19 13:59:09 -04:00
Zach Bloomquist
82fcae5754 chore(tests): only run 1 e2e test with forced SameSite support (#7399) 2020-05-19 12:27:11 -04:00
Zach Bloomquist
96c551cecf fix(rewriter): rewrite accesses to document.location (#7418) 2020-05-19 12:26:40 -04:00
Adán Carrasco
4d5c30843a Fix long error in the app iframe cannot be fully scrolled (#7203) 2020-05-19 11:25:24 -04:00
Jennifer Shehane
5299e83de6 Fix flaky internal test: e2e domain passes [firefox] (#7410) 2020-05-19 21:05:56 +06:30
renovate[bot]
8b4ded888e fix(deps): Update dependency image-size to version 0.8.3 🌟 (#7408) 2020-05-19 14:45:02 +06:30
Brian Mann
b43fd1079a cast numbers to strings when accessing assertions which always yield string subjects (#7315)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-05-18 22:35:17 -04:00
Gleb Bahmutov
0dbd6304c8 Split types files again (#7403) 2020-05-18 19:25:52 -04:00
Gleb Bahmutov
2e5bb50706 Update a few missing TS types in CLI to get Kitchensink types check to pass (#7401) 2020-05-18 18:02:54 -04:00
Zach Bloomquist
a854089c77 fix(types): use SinonStatic for Cypress.sinon type (#7398) 2020-05-18 14:31:45 -04:00
renovate[bot]
e5e2afc421 chore(deps): update dependency electron to version 8.3.0 🌟 (#7387) 2020-05-18 09:12:47 -04:00
renovate[bot]
4ea613e58e fix(deps): update dependency cookie-parser to version 1.4.5 🌟 (#7389) 2020-05-18 09:11:48 -04:00
renovate[bot]
0c3787b7c2 fix(deps): Update dependency jimp to version 0.12.0 🌟 (#7390) 2020-05-18 16:53:36 +06:30
Jennifer Shehane
6195e7fd87 Replace forked dep with current xvfb-maybe version (#7253) 2020-05-18 14:48:06 +06:30
Jennifer Shehane
b0e64ff819 Merge pull request #7378 from hossam-magdy/fix-contrib-link 2020-05-18 14:05:34 +06:30
Jennifer Shehane
a4e378b67b Merge pull request #7345 from sainthkh/decaff-driver-7 2020-05-18 12:38:16 +06:30
Zach Panzarino
2d8f276a9e Fix bug when an html element has id='jquery' (#7249)
* Fix bug when an html element has id='jquery'

* Add comment documenting test for changes

* Document reasons for changes in comment

* Simplify fix
2020-05-17 15:34:59 -04:00
Hossam Magdy
7a829a336d docs: fix broken CONTRIBUTING.md link 2020-05-16 15:36:02 +02:00
Gleb Bahmutov
a2c0bc3e3e include CLI TS types in a way to avoid clashing with Jest (#7352) 2020-05-15 17:31:22 -04:00
Zach Bloomquist
5a4e339789 fix(server): increase timeout when making Marionette connection (#7372) 2020-05-15 17:30:29 -04:00
Zach Bloomquist
18f127fadc fix(server): handle more CDP connection errors (#7368) 2020-05-15 16:01:43 -04:00
Zach Bloomquist
93f388313a fix(launcher): Increase getVersionString timeout to 30s (#7366) 2020-05-15 11:19:35 -04:00
KHeo
8c1e104bd2 decaffeinate: Run post-processing cleanups on clock_spec.coffee and 9 other files
clock_spec.js
commands_spec.js
connectors_spec.js
cookies_spec.js
debugging_spec.js
exec_spec.js
files_spec.js
Fix
2020-05-15 18:23:08 +09:00
decaffeinate
daa0622846 decaffeinate: Convert clock_spec.coffee and 9 other files to JS 2020-05-15 18:21:50 +09:00
decaffeinate
411565638b decaffeinate: Rename clock_spec.coffee and 9 other files from .coffee to .js 2020-05-15 18:21:50 +09:00
Ben Kucera
913d3588ef [internal] fix flake: e2e spec_isolation(firefox) increase duration padding (#7355) 2020-05-14 20:22:02 -04:00
Zach Panzarino
33dca0112d Fix issue where click would not respect x and y if either was 0 (#7339) 2020-05-14 17:37:18 -04:00
Zach Panzarino
2ee3525d09 Remove duplicated pointer-events:none tests (#7349) 2020-05-14 16:27:29 -04:00
Jennifer Shehane
0cc80f3123 Merge pull request #7320 from sainthkh/decaff-driver-6 2020-05-13 17:33:28 +06:30
decaffeinate
c88be916c6 decaffeinate: Run post-processing cleanups on check_spec.coffee and 9 other files
check_spec.js
focus_spec.js
hover_spec.js
scroll_spec.js
select_spec.js
submit_spec.js
agents_spec.js
aliasing_spec.js
angular_spec.js
decaffeinate: Run post-processing cleanups on trigger_spec.coffee
2020-05-13 15:15:15 +09:00
decaffeinate
a38737b20a decaffeinate: Convert check_spec.coffee and 9 other files to JS
decaffeinate: Convert trigger_spec.coffee to JS
2020-05-13 15:15:15 +09:00
decaffeinate
573c503ab3 decaffeinate: Rename check_spec.coffee and 9 other files from .coffee to .js
decaffeinate: Rename trigger_spec.coffee from .coffee to .js
2020-05-13 15:15:15 +09:00
Gleb Bahmutov
3c9f805dbb Chunking driver integration tests for external contributors (#7303) 2020-05-12 12:30:02 -04:00
Jennifer Shehane
5e2d9d52ee Add a call to action to the new AST error (#7305) 2020-05-12 20:32:39 +06:30
mrmeku
f5284c6605 Issue 1281 warning on no write (#7126)
* replace fs write error with warning

This change replaces the error with a warning
when cypress is executing tests in a readonly fs.

* some cleanup

- don't need to run test in a specific browser
- can combine SS + video test into one
- don't seem to need readonly_fs_spec.js

* if videos folder cannot be created, just warn

* try a non-root e2e test stage

* fix comment

* FOLDER_NOT_ACCESSIBLE

Co-authored-by: Fabian Wiles <fabianwiles@live.com>
Co-authored-by: Zach Bloomquist <github@chary.us>
2020-05-12 09:43:58 -04:00
Brian Mann
355847978b display typescript sourcemaps, display docsUrl conditionally (#7301) 2020-05-11 20:52:38 -04:00
Zach Bloomquist
6960f7cd78 Rewrite JS/HTML using AST-based approach (#5273)
* Add winPropAccessor to security.js, remove other replacers

* Add start of Cypress.resolveWindowReference

* Add regexes for dot and bracket access

* Some security_spec tests pass with new injection

* Add resolveWindowReference unit tests

* Old security_spec now passes with resolveWindowReference

* Inject stub resolveWindowReference so proxy still works outside of Cypress

* wip: rewrite HTML + JS with tokenizer

* Move to using esprima + hyntax to rewrite JS + HTML

* remove comment; oneLine makes the whole thing commented

* Fix tests, apple.com edge case

* wip: add getOrSet

* Revert "wip: add getOrSet"

This reverts commit a5c647c00f.

* release 3.5.0 [skip ci]

* use recast to replace window property accesses

* replace assignments to top properly

* fix yarn.lock

* bump deps

* update integration tests

* remove old security ts?

* fix integration spec

* always ignore js interception failure

* use globalThis instead of window

* add experimentalSourceRewriting flag

* restore regex-writer spec

* fix types

* update config_spec

* add source rewriting spec

* cleanup

* simplify rewriting logic, move rules into rewriter package

* create threaded rewriting tool for non-streaming use

* update @packages/rewriter to use threads for async

* use async rewriting where convenient

* add worker-shim.js

* add performance info to debug logs

* properly handle +=, -=, ...

* add proxy, rewriter to unit-tests stage

* cleanup

* use parse5 to rewrite HTML, strip SRI

* update tests

* reorganization, cleanup

* rewrite ALL parent, top identifiers except in a few cases

* handle many JS edge cases

* ensure parse5@5.1.1 is installed

* update yarn.lock

* update tests

* add debugging, add tests

* add attempted repro for .href issue

* implement source maps + extending inline source maps

* update opts passing in proxy layer

* fix sourcemap naming structure

* update tests to account for sourcemaps

* sourcemap tests

* remote source maps work

* comment

* update rewriter tests

* clean up TODOs in resolveWindowReference

* remove @types/nock

* clean up todos in deferred-source-map-cache

* fix rewriter build script

* fix concatStream import

* bump expectedresultcount

* clean up js-rules

* threading improvements, workaround for Electron segfault

* no visit_spec for now

* fix 6_visit_spec

* update MAX_WORKER_THREADS

* add repro for #3975

* cleanup

* cleanup

* make better use of namedTypes and builders

* get rid of the horrific closureDetectionTernary

ast-types keeps track of scope, so it is unneeded

* fix #3975, #3994

* add x-sourcemap, sourcemap header support

* snap-shot-it 7.9.3

* add deferred-source-map-cache-spec

* add tests

* Throw error in driver if AST rewriting fails

* Fix "location = 'relative-url'"

* fix max recursion depth

* slim down some fixtures

* fix window.location usage

* don't mess with `frames` at all

* no integration tests

* skip testing apple.com for now

* update wording: regex-based vs. ast-based

* skip real-world tests for now

* add some padding to process.exit workaround

* fix resolvers_spec

* fix html-spec

* cleanup

* Update packages/rewriter/lib/js-rules.ts

* Update packages/driver/src/cypress/resolvers.ts

* just import find by itself

* privatize typedefs for Cypress.state, remove .gitignore, remove dead code

Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
2020-05-11 12:54:14 -04:00
Chris Breiding
9ab4db80de Improve cy.task errors (#7264) 2020-05-11 10:50:45 -04:00
renovate[bot]
bfeac4058b fix(deps): update dependency @cypress/browserify-preprocessor to version 2.2.3 🌟 (#7291) 2020-05-11 21:15:43 +06:30
renovate[bot]
8b5401056e fix(deps): update dependency return-deep-diff to version 0.4.0 🌟 (#7292) 2020-05-11 21:08:12 +06:30
renovate[bot]
885fb352bf chore(deps): Update dependency snap-shot-it to version 7.9.3 🌟 (#7283) 2020-05-11 14:21:18 +06:30
Jennifer Shehane
89730264d5 Merge pull request #7232 from sainthkh/decaff-driver-5 2020-05-11 14:01:09 +06:30
Ben Kucera
9bf300a383 [internal] fix flake firefox xhr_spec: bump timeout (#7286) 2020-05-11 13:21:55 +06:30
Gleb Bahmutov
d284269daa watch spec file without assuming it is integration spec (#7247) 2020-05-08 11:43:27 -04:00
Jennifer Shehane
c5d7da6a2b Merge pull request #7227 from sainthkh/decaff-driver-4 2020-05-08 16:46:06 +06:30
decaffeinate
1b51ab317d decaffeinate: Run post-processing cleanups on cancelation_spec.coffee and 21 other files 2020-05-08 15:53:55 +09:00
decaffeinate
9b8ab0063c decaffeinate: Convert cancelation_spec.coffee and 21 other files to JS 2020-05-08 15:46:32 +09:00
decaffeinate
b3ccf402ac decaffeinate: Rename cancelation_spec.coffee and 21 other files from .coffee to .js 2020-05-08 15:46:32 +09:00