Commit Graph

109 Commits

Author SHA1 Message Date
renovate[bot] 33b514424d fix(deps): update dependency commander to version 4.1.1 🌟 (#7686)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-12 14:06:14 +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
renovate[bot] 0e545f9773 fix(deps): update dependency arch to version 2.1.2 🌟 (#7672)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-11 14:15:43 +06:30
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
renovate[bot] 2bbf75a628 chore(deps): update dependency cypress-example-kitchensink to version 1.11.1 🌟 (#7634)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-09 20:32:39 +06:30
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
renovate[bot] c7dfb788d6 chore(deps): Update dependency electron to version 8.3.1 🌟 (#7599) 2020-06-05 11:28:17 -04:00
Ben Kucera dbac98326e [internal] run electron e2e specs ONLY once, fix ui-component deps, minor spec c… (#7587)
Co-authored-by: sainthkh <sainthkh@naver.com>
2020-06-05 11:06:42 -04:00
Jennifer Shehane aa17ccd077 Replace @cypress/underscore.inflection dep (#7583) 2020-06-05 12:44:04 +06:30
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
Chris Breiding 76d96a18d4 Fix loading mappings.wasm on authenticated URLs (#7555) 2020-06-02 14:01:00 +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
renovate[bot] 713eec44eb chore(deps): Update dependency cypress-example-kitchensink to version 1.11.0 🌟 (#7282)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-01 11:33:01 -04:00
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
renovate[bot] b7eec83655 chore(deps): Update dependency electron-builder to version 22.6.1 🌟 (#7429) 2020-05-26 13:00:09 -04:00
renovate[bot] 68ec0bb8a0 chore(deps): Update dependency cypress-multi-reporters to version 1.4.0 🌟 (#7431) 2020-05-20 15:23:52 +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
renovate[bot] 8b4ded888e fix(deps): Update dependency image-size to version 0.8.3 🌟 (#7408) 2020-05-19 14:45:02 +06:30
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
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
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
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 a27bd34df3 Reporter error improvements (#3930) 2020-05-06 12:18:29 -04:00
renovate[bot] 0463a3fbe5 chore(deps): update dependency electron to version 8.2.5 🌟 (#7236)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-06 10:33:01 -04:00
Renovate Bot 554ab7ac5f chore(deps): Update @cypress/json-schemas to 5.34.2 🌟 2020-05-06 08:24:01 +00:00
Chris Breiding c6fee8f259 Fix 'onError is not function' bug (#7230) 2020-05-05 16:19:17 -04:00
Gleb Bahmutov aae90bbbe0 Set CommonJS module format when transpiling TS code (#7197) 2020-05-04 08:57:39 -04:00
Gleb Bahmutov 4290a85875 More logs, more tests for TypeScript preprocessor (#7189) 2020-05-01 09:45:59 -04:00
Kukhyeon Heo 02964410fc Fix typescript iterator error. (#7129) 2020-04-28 12:38:45 -04:00
Dmitriy Kovalenko 379a9e7008 feat: improve component based tests approach (#5923)
- new mode that mounts the spec iframe instead of application iframe
2020-04-26 16:25:24 -04:00
Jennifer Shehane 79379a96d2 Replace deprecated babel-preset-es2015 (#6770)
* replace deprecated babel-preset-es2015

* use correct name for env preset

* use @babel/cli instead of babel-cli

Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
2020-04-24 11:45:27 +06:30
Zach Bloomquist c80e482009 Fix test script, add Mocha result checks to internal Cypress te… (#7110)
* fix cypress.js script typo

* add verify-mocha-results to driver integration test stages

* add cypress-multi-reporters

* fix circle.yml

* fix yarn.lock

* cleanup

* use working_directory instead of yarn workspace commands

* add reports to ui-components and reporter, update circle.yml

* fix circle.yml

* fix circle.yml

* fix circle.yml

* add more verify-mocha-results
2020-04-23 13:00:46 -04:00
renovate[bot] b17f597338 chore(deps): Update dependency react-select to version 3.1.0 🌟 (#7103)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-23 14:39:19 +06:30
renovate[bot] 45b759c408 chore(deps): update dependency pretty-ms to version .x 🌟 (#7104)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-22 15:59:21 +06:30
renovate[bot] 8cbb7832ad chore(deps): Update dependency lerna to version 3.20.2 🌟 (#7102)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-22 13:27:45 +06:30
Ben Kucera bbde737e5f Force custom reporters to use bundled mocha version (#6951)
* remove npmInstall logic in helper/e2e script, force custom reporters to use our mocha
* remove mocha imports specs
* use mocha 7.0.1 in server/reporter, and for custom reporters
* update snapshots for new mocha version
* fix glob in server tests
* remove unneeded e2e/package.json deps
2020-04-22 00:23:19 -04:00
renovate[bot] 9d8992a445 chore(deps): Update dependency electron to version 8.2.3 🌟 (#7079)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-20 15:04:28 -04:00
renovate[bot] f5544a23bf chore(deps): Update dependency @cypress/webpack-preprocessor to… (#7071)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-20 19:15:18 +06:30
Jennifer Shehane de58acb849 Fix sending undefined orgId during project setup (#7014)
* Move org selector into it's own component

- have state of selected Id tracked and set before render.

* update yarn.lock

* fix/refactor org selector

* Add debug logs around creating project

Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2020-04-16 21:02:11 +06:30
Kukhyeon Heo e22b362d4c Out-of-the-box TypeScript Support (#5906)
* Out-of-the-box TypeScript support for plugins

* Out-of-the-box TypeScript Support for tests.

* Fix server unit tests.

* Don't use bundled typescript.

* Added esModuleInterop option.

* Fixed unit tests.

* Added simple_tsify to integration test.

* Added integration tests for ts spec files.

* simple_tsify to ignore transpiling json files.

* transpile on flush.

* Fix lint failure.

* Added error message.

* Add error message for restart test runner for support file.

* Added JSDoc comment.

* Remove preset-typescript.

* Fix integration test failure.

* Fix type errors.

* Add e2e test for typescript

* Fix lint error.

* Add plugin support and e2e test.

* Fix server unit test failures.

* Update snapshots.

* Migrate typescript compilation code to browserify-preprocessor

* Remove unnecessary files and test.

They're tested in preprocessor.

* Fix test failures.

* Update @types/react.

* Update yarn.lock.

* Clear name: registerTS -> tsRegistered.

* Clarify why tsRegistered = true exists.

* Add working examples for support and plugins.

* Move TypeScript tests to its own file.
2020-04-13 21:39:13 +06:30