Commit Graph

848 Commits

Author SHA1 Message Date
Matt Schile fdaf5fb22f chore: deprecate Cypress.Cookies.preserveOnce and Cypress.Cookies.defaults (#21455) 2022-05-16 08:15:31 -06:00
Tyler Biethman 8311cf15ff chore(deps): Updating electron to v18 + node v16.13.2 (#21418)
* chore: Updating electron to v18 + node v16.13.2

* Updating origin test, it needs to be fixed a different way

* Removing origin workaround for config_env specs, it should not be necessary.

* Removing now-unused semver dependency
2022-05-12 12:06:30 -05:00
Kukhyeon Heo 9b11e2ceef fix: remove unnecessary eventemitter2 type definitions from cy, Cypress (#21286)
* fix: remove unnecessary eventemittor2 type definitions from cy, Cypress

* feedback.

* fix trailing whitespace error.

Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-05-11 11:05:53 -05: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 Henkes ebaaf18268 Merge branch 'develop' into feature-multidomain 2022-04-22 09:31:41 -05:00
Kukhyeon Heo 0bb655e379 chore: remove command type todos (#20601)
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Rachel <rachel@cypress.io>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-04-22 14:28:13 +00:00
Matt Henkes f1644045fc Merge branch 'develop' into feature-multidomain 2022-04-21 16:36:40 -05:00
Ahmed Tarek 342bc06ae3 fix: prevObject types (#21106)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Rachel <rachel@cypress.io>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-04-21 15:54:50 -05:00
Matt Schile f819be315a Merge branch 'develop' into feature-multidomain 2022-04-21 09:53:49 -06:00
Zach Bloomquist 79267ddc0f fix: revert "fix: types for Cypress.Commands.add (#20376)" (#21104) 2022-04-15 19:03:36 +00:00
Ahmed Tarek 92d94252ca fix: types for Cypress.Commands.add (#20376) (#20377)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-04-15 15:35:45 +00:00
Zach Bloomquist 546ed16c77 fix(cli): show additional mitigation steps for max path length error (#21047) 2022-04-14 16:23:31 +00:00
Matt Schile 27e1afbdd7 chore: (multi-domain) renaming flag to experimentalSessionAndOrigin (#21053) 2022-04-13 10:50:17 -06:00
Matt Schile d98d0e1e79 chore: (multi-domain) add experimentalLoginFlows to the settings page (#21030) 2022-04-12 09:23:58 -06:00
Matt Henkes 65d75ddf1d Merge branch 'develop' into feature-multidomain 2022-04-11 14:07:08 -05:00
Kukhyeon Heo 4815a5644f fix: add missing Cypress.Commands.addAll() types (#20894)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-04-11 12:25:11 -05:00
Chris Breiding f6975f8caa chore: audit cross-origin related TODOs/FIXMEs (#20975)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-04-08 15:11:10 -04:00
Matt Schile 782d89f94a chore: (multi-domain) update to support path and hash (#20953) 2022-04-07 14:23:24 -06:00
Matt Henkes 8a78b5c127 Merge branch 'develop' into feature-multidomain 2022-04-07 12:59:18 -05:00
Blue F b031803cfb Merge pull request #20939 from cypress-io/issue-19299-dbus-warnings
fix: silence dbus errors
2022-04-07 10:46:23 -07:00
Zach Bloomquist 6a4823b5e1 fix(cli): decrease the length of pre-release cache path (#20961) 2022-04-07 17:41:44 +00:00
Matt Henkes c68692212a chore: [Multi-domain] Rename the last of the domain/multi-domain to origin type names. (#20965)
* chore: [Multi-domain] Rename the last of the domain/multi-domain to origin type names.

* oops

* typo

* Update packages/driver/cypress/integration/e2e/multi-domain/multi_domain_validation_specs.ts

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

* Update packages/driver/cypress/integration/e2e/multi-domain/multi_domain_validation_specs.ts

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

Co-authored-by: Matt Schile <mschile@gmail.com>
2022-04-07 12:30:06 -05:00
Matt Schile dcbc68b8e7 chore: (multi-domain) updating experimental flag to experimentalLoginFlows (#20942) 2022-04-06 15:08:18 -06:00
Matt Henkes 17e6bf431e chore: [Multi-domain] Rename switchToDomain to origin (#20927)
* chore: [Multi-domain] Rename switchToDomain to origin

* Regenerate system tests snapshots

* Update cli/schema/cypress.schema.json

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

* Update cli/types/cypress.d.ts

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-04-06 11:26:03 -05:00
BlueWinds eb659467ff fix: silence dbus errors 2022-04-06 09:20:16 -07:00
mjhenkes 0772f8557b Merge branch 'develop' into feature-multidomain 2022-04-06 09:51:49 -05:00
Emily Rohrbough d0fc93b0dc chore: add internal log group API and update log group styles (#20857)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-04-05 17:18:39 -05:00
Matt Henkes 81e9283c7a Merge branch 'develop' into feature-multidomain 2022-04-05 11:40:02 -05:00
Jon Koops 0df0d7a28f fix(types): add correct type for preserve cookie callback (#20513)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-04-01 11:08:22 +10:00
Matt Schile fedb65c97c chore: (multi-domain) support multiple remote states (#20752) 2022-03-28 15:26:51 -06:00
Matt Henkes 8f7cc74ba9 Merge branch 'develop' into feature-multidomain 2022-03-24 16:01:06 -05:00
Amos Wong 6915b8e3de feat: support escaped dollar sign in CYPRESS_DOWNLOAD_PATH_TEMPLATE (#20698)
* refactor: break pathTemplate replace logic into multiple lines

* feat: support escape dollar sign in download path template

* feat: support CYPRESS_DOWNLOAD_PATH_TEMPLATE wrapped in quote

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-03-24 13:21:19 -07:00
Bill Glesias 90d1eb7386 chore: Update switchToDomain signature with args key (#20722)
* chore: update data argument to be object containing args key over being an array

* chore: remove done_reference_mismatch in error_messages as done is now removed

* fix: alias args as data going through communicator to keep common interface and exclude user serialized data

* rename data references to options in switchToDomain

* use isPlainObject to simplify conditional in validator

* refactor switchToDomain options validation to check for invalid keys in options argument over missing the args key

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-03-24 10:50:04 -04:00
renovate[bot] d59b7bd009 fix(deps): update dependency minimist to v1.2.6 🌟 (#20756)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-23 11:50:35 -06:00
Daniel Friesen 60781575ff fix(types): invalid type on Cypress.Buffer (#20553)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-03-23 08:36:51 -06:00
Chris Breiding a64cdb889a chore(multi-domain): Throw errors for unsupported commands (#20729) 2022-03-22 13:10:12 -04:00
Emily Rohrbough 8c8875bdc3 chore: pull forward unification changes we can make now (#20644)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-03-21 12:19:09 -05:00
Chris Breiding bc30c6868e Merge branch 'develop' into feature-multidomain 2022-03-16 11:23:30 -04:00
Matt Schile ca510cebc1 chore: (multi-domain) support origin and domain name in switchToDomain (#20564) 2022-03-14 08:41:23 -06:00
Zach Bloomquist 3c286177cc fix: use unique install cache folders for betas (#20296) 2022-03-04 22:22:39 +00:00
Tim Griesser f0f9786ad0 chore: fix ExpectType assertions (#20395)
* chore: fix  assertions

* fix ExpectType for config.baseUrl
2022-02-28 13:01:04 -05:00
Zach Bloomquist ffd3627e43 test: migrate module_api to system tests (#20265)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-02-25 23:12:05 +00:00
Jess 6ea3a8cb06 chore: fixing m1 installation issues for m1 macs (#20345) 2022-02-23 18:36:59 -05:00
Chris Breiding 0e942ed473 chore: Refactor multi-domain communication lifecycle (#20247) 2022-02-23 10:28:03 -05:00
Matt Schile 92bf23cc2e feat: (multi-domain) add initial support for cy.screenshot (#20119) 2022-02-10 11:57:36 -07:00
Chris Breiding c1983726d7 Merge branch 'develop' into feature-multidomain 2022-02-08 13:14:24 -05:00
Snyk bot 52ed6edcf3 chore(deps): Security upgrade shelljs to 0.8.5 (#19685)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
2022-02-08 10:38:29 -06:00
Emily Rohrbough 17f272e9ee chore: fix cypress npm package artifact upload path (#20023) 2022-02-04 12:00:08 -06:00
Emily Rohrbough 99f24863a2 fix: move node 17 Check from Binary to CLI (#19977) 2022-01-31 12:03:36 -06:00
Matt Schile 89a497ff04 chore: update switchToDomain 'data' argument to be an array (#19774) 2022-01-21 14:35:20 -05:00