Commit Graph

68 Commits

Author SHA1 Message Date
Blue F 172c364021 fix: Time out unmatched prerequests in proxy to avoid leaking memory (#22462)
* fix: Time out unmatched prerequests in proxy to avoid leaking memory (and generally improve proxy performance)

* Fix types, whoops

* More type fixes? Plz?

* One more TS attempt.

* Revert GQL changes that break TS

* Revert accidental config change

* Rewrote debug messages for clarity

* One more logging change

* Add test around pre-request garbage collection

* Add test around pre-request garbage collection

* Typo

* Typo again

* Apply suggestions from code review

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Clean up interval in prerequest tests

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-06-23 10:12:49 -07:00
Chris Breiding a21c942ee4 fix: Improve cross-origin cookie handling (#22320) 2022-06-23 11:00:52 -04:00
kshastri 4319daa7f4 fix: cypress removes custom status text/reason phrase from http response (#22061) 2022-06-16 14:19:05 -04:00
Zach Bloomquist 86b277799d chore(proxy): improve debug log experience (#21489) 2022-05-16 21:35:31 +00:00
Bill Glesias bbd9e7f1b2 Merge branch 'develop' into md-10.0-merge 2022-04-29 10:39:54 -04:00
Chris Breiding 3e6d6bfe15 chore: Updates based on PR feedback (#21137)
* add generic to cy.origin type

* fix log type, update/add comments

* fix comment indentation

* specific generic

* move RemoteState to internal types

* add on links to experimental flag descriptions

* chore: reduce nesting by flipping condition

* fix test title

* simplify failing log

* rename variable

* delete error property

* fix types

* fix type

* remove unnecessary todo

* update wait test

* jquery -> this

* update comment

* remove vestigial autoRun

* use finally

* re-throw non-security errors

* move back getting index

* add new state types

* remove unnecessary export

* startsWith -> includes

* it -> them

* update system test

* remove use of promise constructor

* Revert "remove use of promise constructor"

This reverts commit 35ccc28b6f.

* log errors from Page.getFrameTree

* test if anything breaks when removing optional chaining operator

* remove vestigial file

* handle queue ending in cross-origin driver

* fix coordinates spec

* improve chrome/firefox check in extension

* improve secure cookie regex

* use production mode for cross-origin driver bundle

* adding remoteStates.getPrimary

* catch and ignore queue errors

* remove optional chaining in postMessage handler

* removed unnecessary async

* update frame tree on cri client reconnect

* fix formatting

* renaming remoteStates variable

* prevent requests from being paused if experimentalSessionAndOrigin flag is off

Co-authored-by: Matt Schile <mschile@cypress.io>
2022-04-22 14:58:02 -05:00
Matt Schile d7ce86541d chore: (cross-origin) add support for redirecting back to primary (#21144) 2022-04-20 23:03:08 -06:00
Matt Schile 27e1afbdd7 chore: (multi-domain) renaming flag to experimentalSessionAndOrigin (#21053) 2022-04-13 10:50:17 -06:00
Matt Henkes 25af92134a chore: [Multi-domain] Rename isMultiDomain for the driver and the server (#20947)
* chore: [Multi-domain] Rename isMultiDomain for the driver and the server

* A couple more changes

* Update packages/driver/src/cy/commands/navigation.ts

Co-authored-by: Matt Schile <mschile@gmail.com>

Co-authored-by: Matt Schile <mschile@gmail.com>
2022-04-07 09:22:49 -05:00
Matt Schile dcbc68b8e7 chore: (multi-domain) updating experimental flag to experimentalLoginFlows (#20942) 2022-04-06 15:08:18 -06:00
Matt Henkes b65db7b81f chore: [Multi-domain] Rename domain events (#20945)
* chore: [Multi-domain] Rename domain events

* finish index.ts

* missed one!

* rename error message

* Update packages/driver/src/cy/commands/navigation.ts

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
2022-04-06 14:26:10 -05:00
Matt Schile 4c1c18dd83 fix: (multi-domain) fix injection issue (#20816) 2022-03-30 08:26:21 -06:00
Matt Schile fedb65c97c chore: (multi-domain) support multiple remote states (#20752) 2022-03-28 15:26:51 -06:00
Chris Breiding 22b35be276 fix(multi-domain): Handle SameSite cookies (#20450) 2022-03-22 09:57:12 -04:00
Chris Breiding bc30c6868e Merge branch 'develop' into feature-multidomain 2022-03-16 11:23:30 -04:00
Matt Henkes 7f3a649902 chore: [Multi-domain] Enable tests, stability and fail appropriately (#20561)
* chore: Lots of stability Fixes

* define done

* pre-pr fixes

* clean up test comments

* Some test fixes

* Whoops, the right event is kind of important

* nav error handling

* Try to be less invasive with error handling.

* actually clean up

* moar test fixes

* set is stable on primary load

* new new way of handling errors

* not pending

* testing in ci

* more detail

* add www

* Test a couple more errors, add TODOS

* comment test, fix typo

* Apply suggestions from code review

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Add back missing full page test

* Apply suggestions from code review

Co-authored-by: Matt Schile <mschile@gmail.com>

* Pull request updates

* Fill edge case.

* ignore error for now

* clean up window logic

* Apply suggestions from code review

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* Clean up commenting

* prevent another test from running on firefox...

* more firefox

* clean up code

* Update packages/driver/cypress/integration/e2e/multi-domain/commands/multi_domain_viewport.spec.ts

Co-authored-by: Matt Schile <mschile@gmail.com>

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Schile <mschile@gmail.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-03-15 12:29:32 -07:00
Matt Schile 74dea8921e feat: (multi-domain) adding support for cy.visit in multi-domain (#20467) 2022-03-08 13:50:39 -07:00
Lachlan Miller 76129e26af merge in develop to 10.0-release 2022-03-07 10:44:26 +10:00
Tyler Biethman 5a30e76819 fix: Prepare for Chrome's update for immutable document.domain (#20405)
* Setting response header for origin-agent-cluster for runner, iframes, and proxied requests that have domain injection

* Adding comments around header injection

* Adding unit tests
2022-03-04 10:46:23 -06:00
Bill Glesias ae65ae6e3e fix: ensure multi domain passivity (#20442)
* add experimentalMultiDomain config flag check on middleware. Add
SetInjectionLevel tests

* Move navigation spec that was skipped to validate cross origin errors to
system test

* fix issues with web security spec having a false negative

* remove unecessary config values / assertions from system tests
2022-03-03 22:40:37 -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
Chris Breiding 2ee98938cd chore: Remove hardcoded domain for multi-domain (#19323)
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-01-12 07:23:34 -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
Chris Breiding f716178573 chore: Remove need for anticipateMultidomain (#18360) 2021-12-09 14:26:40 -05:00
Chris Breiding b5a135d102 Merge branch 'develop' into feature-multidomain 2021-12-09 10:48:55 -05:00
Zach Bloomquist 65cf6e899d fix: disable automatic request retries (#19161) 2021-12-08 22:27:19 +00:00
Chris Breiding 8ac1ff0275 Merge branch 'develop' into feature-multidomain 2021-12-07 14:17:31 -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
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
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
Chris Breiding 92932c5feb Merge branch 'feature-multidomain' of github.com:cypress-io/cypress into feature-multidomain 2021-09-13 09:17:04 -04:00
Chris Breiding 4e140a285b Merge branch 'develop' into feature-multidomain 2021-09-13 09:15:30 -04:00
Lachlan Miller 5955544fc0 chore(server): share common routes (#18055) 2021-09-13 09:09:56 -04:00
Chris Breiding 16ad6b441e chore: Run command queue in secondary domain and sync up command state between domains (#17942) 2021-09-10 09:04:00 -04:00
Chris Breiding a3930c2fa1 Merge branch 'develop' into feature-multidomain 2021-08-31 09:06:25 -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
Chris Breiding 548db6eb29 Merge branch 'develop' into feature-multidomain 2021-08-09 09:28:02 -04: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
Chris Breiding 64250be9d6 Merge branch 'develop' into feature-multidomain 2021-07-06 09:33:21 -04:00
Tim Griesser e3a5bdf111 refactor: add @packages/resolve-dist to isolate client/server code (#17109) 2021-06-29 12:54:29 -04:00
Chris Breiding b8658cfb3b chore: Inject into hard-coded secondary domain (#16873) 2021-06-15 09:08:54 -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
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
Zach Bloomquist 810a9b4162 fix(net-stubbing): fix waiting on responses with no-body status codes (#9097) 2020-12-02 14:06:46 -05:00