Commit Graph

61 Commits

Author SHA1 Message Date
Lachlan Miller 76129e26af merge in develop to 10.0-release 2022-03-07 10:44:26 +10:00
Brian Mann 73c7631816 fix all the tests that escape "doesn\'t" to use string templates 2022-02-18 16:23:20 -05:00
Brian Mann f076a64f3b rename clone -> cloneErr 2022-02-15 02:15:15 -05:00
Tim Griesser bfc032a2d4 fix: open browser at correct time during lifecycle (#19572) 2022-01-12 13:41:25 -05:00
Tim Griesser 223d5fa7e6 Merge branch 'develop' into 10.0-release
* develop:
  chore(deps): update dependency ssri to 6.0.2 [security] (#19351)
  chore: Fix server unit tests running on mac by using actual tmp dir (#19350)
  fix: Add more precise types to Cypress.Commands (#19003)
  fix: Do not screenshot or trigger the failed event when tests are skipped (#19331)
  fix (#19262)
  fix: throw when writing to 'read only' properties of `config` (#18896)
  fix: close chrome when closing electron (#19322)
  fix: disable automatic request retries (#19161)
  chore: refactor cy funcs (#19080)
  chore(deps): update dependency @ffmpeg-installer/ffmpeg to v1.1.0 🌟 (#19300)
2021-12-15 14:00:36 -05:00
Zach Bloomquist 65cf6e899d fix: disable automatic request retries (#19161) 2021-12-08 22:27:19 +00:00
Jessica Sachs 0975fec79b chore: merging in from develop into 10.0-release (#19148) 2021-11-30 14:32:08 -05:00
renovate[bot] 9bf8bf2212 fix(deps): update dependency @cypress/request to v2.88.10 🌟 (#19099)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-11-29 13:59:18 -05:00
Tim Griesser 7c339d41c8 Merge branch 'develop' into 10.0-release
* develop: (52 commits)
  feat: use hoisted yarn install in binary build (#17285)
  fix: compile npm packages for node 12 (#18989)
  fix: show call count even if `cy.stub().log(false)`. (#18907)
  chore: Update TypeScript to 4.4.4 (#18930)
  fix: wrap playground selectors in double quotes if not included (#18442)
  fix: flaky settings_spec test (#18979)
  chore: Update Chrome (stable) to 96.0.4664.45 (#18931)
  fix: Loading of specs with % in the filename (#18877)
  chore: refactor `create` into class `$Cy` (#18715)
  chore: Update Chrome (beta) to 96.0.4664.45 (#18891)
  fix: flaky `system-tests-firefox` job (#18848)
  chore: release @cypress/webpack-preprocessor-v5.10.0
  chore: release @cypress/vue-v3.0.5
  chore: release @cypress/schematic-v1.6.0
  chore: release create-cypress-tests-v1.2.0
  release 9.0.0
  feat: ensure major release
  have conduit app wait on localhost:3000
  fix install-required-node
  use --legacy-peer-deps
  ...
2021-11-20 16:03:53 -05:00
Tim Griesser e4f5b106d4 feat: use hoisted yarn install in binary build (#17285) 2021-11-20 14:19:51 -05:00
Kukhyeon Heo 2a6ded2352 chore: Update TypeScript to 4.4.4 (#18930) 2021-11-19 10:01:23 -05:00
renovate[bot] 3095d733e9 feat(deps): update dependency electron to v15 🌟 (#18317)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: David Munechika <davidam1203@gmail.com>
2021-11-09 20:52:17 +00:00
Tim Griesser d841e1331f refactor: Data context cleanup & IPC bindings for data push (#18357) 2021-10-11 12:13:41 -04:00
userquin 8614e97802 fix(unified-desktop-gui branch): initial installation on windows (#18247) 2021-09-25 14:18:17 -04:00
Lachlan Miller 8bda0a9d02 chore: merge in develop to unified-desktop-gui (#18103)
* merge in develop

* remove accidentally merged file

* update types
2021-09-15 16:24:28 +10:00
Lachlan Miller 5955544fc0 chore(server): share common routes (#18055) 2021-09-13 09:09:56 -04:00
Lachlan Miller ab401ecd35 chore: use import type syntax (#17864)
* chore: use import type across repo

* chore: use import type across repo

* chore: use import type across repo

* chore: use import type across repo

* update exports

* update test

* update import type

* update types

* use import type in driver

* correctly export function

* revert test

* remove unrelated code

* revert code

* improve type imports

* override for reporter
2021-08-25 09:11:56 +10:00
renovate[bot] 757a088828 fix(deps): update dependency @cypress/request to v2.88.6 🌟 (#17813)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-23 08:21:48 -05:00
Ben Kucera 6f32561d6f feat: add session support (#14350) 2021-08-04 10:23:45 -04:00
Zach Bloomquist 2454c19afb feat: proxy logging (#16730)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-08-02 21:10:19 +00:00
Tim Griesser ca44464521 fix: revert #17132 use hoisted yarn install in build binary (#17215) 2021-07-06 16:30:33 -04:00
Tim Griesser 0064dce259 refactor: Loosen semver ranges for deps 2021-07-06 09:58:28 -04:00
Tim Griesser e3a5bdf111 refactor: add @packages/resolve-dist to isolate client/server code (#17109) 2021-06-29 12:54:29 -04:00
Zach Bloomquist 66303f6331 chore: correlate proxied HTTP requests with browser pre-request data (#16835) 2021-06-09 18:39:51 +00:00
Adam Gastineau 0ca53c783d chore: TypeScript 4.2.3 (#15646) 2021-04-06 08:21:21 -07:00
Zach Bloomquist f6a5d1ea2e feat: change cy.intercept override behavior (#14543) 2021-03-26 18:22:18 +00:00
Zach Bloomquist a7655d3c20 feat: refactor cy.intercept internals to generic event-based system (#15255) 2021-03-03 18:21:52 +00:00
Chris Breiding 77b922472c fix: Improve uncaught error handling (#14826)
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2021-03-01 09:23:14 -05:00
Brian Mann af26fbebe6 feat: component testing (#14479)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
2021-02-04 15:45:16 -05:00
renovate[bot] 9be61657f4 fix(deps): update dependency debug to version 4.3.1 🌟 (#14583)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-19 12:21:05 +06:30
Zach Panzarino 3eb3bfa487 build: properly use local npm packages for development and binary build (#14182) 2021-01-05 00:34:13 -05:00
Kukhyeon Heo 8782c23da6 fix: Added missing calledOnceWith & calledOnceWithExactly sinon matchers. (#14371) 2021-01-04 12:39:39 +06:30
Max 33477db2a5 fix: (cy.intercept()) intercept-request body buffer encoding problem for multipart/form-data (#14235) 2020-12-29 14:00:39 -05:00
Zach Bloomquist 810a9b4162 fix(net-stubbing): fix waiting on responses with no-body status codes (#9097) 2020-12-02 14:06:46 -05:00
Zach Bloomquist a3fd875d19 feat: automatically set CORS headers on stubbed responses (#9384) 2020-12-02 11:55:37 -05:00
Ben Kucera 5198a866bd fix: only modify js on AUT domain in proxy (#9018) 2020-11-09 09:57:31 -05:00
Zach Bloomquist e6fe0cdc07 fix: fix loading redirects with TE: chunked (#8896) 2020-10-22 13:17:58 -04:00
Stephen Demjanenko f4a6c80966 fix(proxy): omit CSP report only header (#7936)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2020-09-25 16:38:27 -04:00
Zach Bloomquist cd22300cb5 feat(net-stubbing): add followRedirect to request interception (#8282) (#8524) 2020-09-08 13:11:35 -04:00
Zach Bloomquist c37896089b feat(net-stubbing): experimental full network mocking support (#4176) 2020-08-31 09:41:47 -04:00
renovate[bot] 0777f969f7 fix(deps): update dependency iconv-lite to version 0.6.2 🌟 (#8387)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-24 11:44:46 -04:00
Laís Tomaz 27e8c817d3 Rename configuration option blacklistHosts (#7622)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2020-07-13 15:16:19 +06:30
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 f7917a4c5b fix(proxy): don't use responseTimeout as timeout for all requests (#7787) 2020-07-06 10:41:41 -04:00
Ben Kucera 47faf52e16 internal: use yarn workspace over lerna for individual package commands (#7644)
* use yarn workspace over lerna for individual package commands

* remove usage of wait-on

* fix readmes after regex replace

* revert wait-on changes

* update yarn.lock
2020-06-10 18:31:40 -04:00
Zach Bloomquist 0e632635cd chore: rm non-test-related coffeescript references 2020-06-10 10:49:31 -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
Jennifer Shehane 71ab65d18a Update modifyObstructiveCode regex to account for word boundaries (#7147) 2020-04-27 21:11:03 +06:30
Alessandro c80fe37ca4 Strip document-domain directive from feature-policy header when… (#7007)
* 6480: Add feature-policy to problematic headers

* 6480: Create new middleware

* 6480: Fix code placement

* 6480: Add integration test

* 6480: Remove header when no directives left
2020-04-20 09:53:24 -04:00
Zach Bloomquist d810950379 Switch request, request-promise to @cypress/ forks (#6777) 2020-03-19 11:48:24 +06:30