Commit Graph

2132 Commits

Author SHA1 Message Date
Tim Griesser 84d07a1e0c chore: add batch execution to CloudDataSource (#22457)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: estrada9166 <estrada9166@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-01-25 13:23:33 -06:00
Blue F 094e3d03cc feat: Add 'type' option to .as to store aliases by value (#25251)
* feat: Add 'type' option to `.as` to store aliases by value

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-01-24 08:02:45 -08:00
Nil Gàllego c2e7b60f54 feat: Display line break in cy.log (#25467)
* add breaklines for log messages

* update cy.log tests

* run ci

Co-authored-by: Bill Glesias <bglesias@gmail.com>
2023-01-24 12:58:06 +10:00
Matt Schile 8435cdc952 fix: Revert "fix: adding emergency garbage collection for chromium-based browsers" (#25546) 2023-01-23 12:09:52 -07:00
Lachlan Miller ad0b2a37c2 feat: support data-qa selector in selector playground (#25475) 2023-01-20 10:34:32 +10:00
Matt Schile 83b2cc1f74 fix: adding emergency garbage collection for chromium-based browsers (#25521) 2023-01-19 14:01:18 -07:00
github-actions[bot] 8890a048f2 chore: Update Chrome (stable) to 109.0.5414.74 and Chrome (beta) to 110.0.5481.38 (#23931)
* chore: Update Chrome (beta) to 106.0.5249.51

* chore: Update Chrome (beta) to 106.0.5249.61

* chore: Update Chrome (stable) to 106.0.5249.61 and Chrome (beta) to 106.0.5249.61

* chore: Update Chrome (stable) to 106.0.5249.61 and Chrome (beta) to 107.0.5304.18

* chore: Update Chrome (stable) to 106.0.5249.91 and Chrome (beta) to 107.0.5304.18

* chore: Update Chrome (stable) to 106.0.5249.103 and Chrome (beta) to 107.0.5304.18

* chore: Update Chrome (stable) to 106.0.5249.103 and Chrome (beta) to 107.0.5304.29

* chore: Update Chrome (stable) to 106.0.5249.119 and Chrome (beta) to 107.0.5304.29

* chore: Update Chrome (stable) to 106.0.5249.119 and Chrome (beta) to 107.0.5304.36

* chore: Update Chrome (stable) to 106.0.5249.119 and Chrome (beta) to 107.0.5304.62

* chore: Update Chrome (stable) to 107.0.5304.68 and Chrome (beta) to 107.0.5304.68

* chore: Update Chrome (stable) to 107.0.5304.87 and Chrome (beta) to 107.0.5304.68

* chore: Update Chrome (stable) to 107.0.5304.87 and Chrome (beta) to 108.0.5359.22

* chore: Update Chrome (stable) to 107.0.5304.87 and Chrome (beta) to 108.0.5359.30

* chore: Update Chrome (stable) to 107.0.5304.110 and Chrome (beta) to 108.0.5359.30

* chore: Update Chrome (stable) to 107.0.5304.110 and Chrome (beta) to 108.0.5359.40

* chore: Update Chrome (stable) to 107.0.5304.110 and Chrome (beta) to 108.0.5359.48

* chore: Update Chrome (stable) to 107.0.5304.121 and Chrome (beta) to 108.0.5359.48

* chore: Update Chrome (stable) to 107.0.5304.121 and Chrome (beta) to 108.0.5359.62

* chore: Update Chrome (stable) to 108.0.5359.71 and Chrome (beta) to 108.0.5359.71

* chore: Update Chrome (stable) to 108.0.5359.71 and Chrome (beta) to 109.0.5414.25

* chore: Update Chrome (stable) to 108.0.5359.94 and Chrome (beta) to 109.0.5414.25

* chore: Update Chrome (stable) to 108.0.5359.98 and Chrome (beta) to 109.0.5414.25

* chore: Update Chrome (stable) to 108.0.5359.98 and Chrome (beta) to 109.0.5414.36

* chore: Update Chrome (stable) to 108.0.5359.124 and Chrome (beta) to 109.0.5414.36

* chore: Update Chrome (stable) to 108.0.5359.124 and Chrome (beta) to 109.0.5414.46

* chore: Update Chrome (stable) to 108.0.5359.124 and Chrome (beta) to 109.0.5414.61

* chore: Update Chrome (stable) to 108.0.5359.124 and Chrome (beta) to 109.0.5414.74

* chore: Update Chrome (stable) to 109.0.5414.74 and Chrome (beta) to 109.0.5414.74

* chore: Update Chrome (stable) to 109.0.5414.74 and Chrome (beta) to 110.0.5481.30

* chore: Update Chrome (stable) to 109.0.5414.74 and Chrome (beta) to 110.0.5481.38

* fix tests

Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2023-01-19 11:09:26 -06:00
Matt Schile d1dc1258ea fix: improve memory management for chromium-based browsers (#25462) 2023-01-18 15:35:57 -07:00
Bill Glesias 478407ec38 fix: revert CSP header and script-src addition (#25445)
* Revert "feat: Do not strip CSP headers from HTTPResponse (#24760)"

This reverts commit 0472bb9cdb.

* run ci
2023-01-13 10:59:00 -05:00
Preston Goforth 0472bb9cdb feat: Do not strip CSP headers from HTTPResponse (#24760)
Co-authored-by: Zach Bloomquist <git@chary.us>
Closes https://github.com/cypress-io/cypress/issues/1030
2023-01-11 17:37:45 +00:00
Bill Glesias d470f59ea2 feat: experimental skip domain injection (#25307)
* feat: set up experimentalUseDefaultDocumentDomain to disallow document.domain overwritting

* use default domain around experimentalUseDefaultDocumentDomain in main iframe and spec bridge iframes. Also adapt CORS policy to use same-origin if experimental flag is set

* run ci

* fix: add insertion of experimental flag where is was needed/missing

* chore: add system test to exercise experimental flag for expected behavior

* fix: fix issues with template updates to conform to squirrelly v7

* fix: update config tests to include new experimental flag

* run ci

* fix: trailing whitespace [run ci]

* chore: update snapshot

* run ci

* fix: update proxy unit tests to account for experimentalUseDefaultDocumentDomain

* run ci

* fix: Allow component tests with special characters in filepath (#25299)

feat: cut over experimental flag to take list of known problematic domains via string/glob pattern

run ci

chore: update system test and fix broken config

* fix: fix server unit and integration tests. integration tests should no longer use google to test against injection as we do not inject document.domain on google domains

* run ci

* run ci

* fix: server integration tests where google documents are expected to receive document.domain injection. Kept test same by changing URL

* run ci

* fix: update server test with mssing unupdated assertions

* run ci

* fix: turn off experimental flag by default while recommending sane defaults to users to configure

* run ci

* chore: fix typings [run ci]

* run ci

* chore: make experiment an e2e option only

* run ci

* chore: address comments in code review

* chore: rename experimentalUseDefaultDocumentDomain to experimentalSkipDomainInjection

* fix regression in shouldInjectionDocumentDomain utility function and add unit tests

* run ci

* chore: rename documentSuperDomainIfExists to superDomain [run ci]

* chore: address comments from code review

* chore: just pass opts through to policyForDomain

* run ci

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
2023-01-09 10:00:05 -05:00
Blue F 05b9f10120 fix: .contains() should only return one element at all times (#25250)
* fix: .contains() should only return one element at all times

* Improve test name

* Add additional test
2023-01-03 10:42:55 -08:00
Wojciech Szućko acc61d8bd2 feat: add currentRetry to Cypress API (#25297)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
2023-01-03 11:41:31 -06:00
Emily Rohrbough 6fc13e6f20 fix: added missing pending data which caused incorrect mochaawesome reports (#25264) 2022-12-29 13:38:55 -06:00
Zach Bloomquist 1b1ed9cd49 chore: improve linting (#25235) 2022-12-29 17:26:13 +00:00
renovate[bot] 1047796cae chore(deps): update dependency express to v4.17.3 [security] (#25015)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-12-27 11:36:52 -06:00
Adam Stone-Lord 51f30a2a34 chore: use experimentalSingleTabRunMode in all of our monorepo packages and system tests that are configured for CT (#25257) 2022-12-23 10:28:39 -05:00
Zach Bloomquist ebf57a82e6 test: change some skipped tests to use retries (#24124)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-12-20 01:56:10 +00:00
Gergo Tolnai 470b94b8fa fix: log error on reject with string content (#25059)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Closes undefined
2022-12-19 10:57:38 -06:00
Blue F 2b211f1306 fix: .get() respects null withinSubject (#25133)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-12-15 10:22:29 -08:00
Zach Bloomquist e02f6bf905 feat: add resourceType support to cy.intercept() on req/routeMatcher (#25075)
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-12-14 17:40:53 +00:00
Mike Plummer 3a46679776 fix: Serialize query object on intercepted request (#25135) 2022-12-13 14:55:43 -06:00
Lachlan Miller 09d0879cab chore: update to Vite 4 and Rollup 3 (#25101)
* chore: try move to rollup 3 and vite 4

* bump to latest versions
2022-12-13 10:35:02 +10:00
Emily Rohrbough 2062670f5c fix: recollect session data after validation is successful (#25112) 2022-12-12 13:07:03 -06:00
Emily Rohrbough 4e82100303 fix: update custom-query on links to match custom-command syntax (#25092) 2022-12-09 15:57:29 -06:00
Chris Breiding fc43cecdad feat: Add cy.getAllCookies() and cy.clearAllCookies() (#25012) 2022-12-08 13:12:32 -05:00
Blue F b32a8afe51 fix: .select() by index works if <options> have same value (run ci) (#25016) 2022-12-08 09:41:12 -08:00
Blue F 24f65d8b30 fix: Remove unneeded Firefox headless hack (run ci) (#25009)
* fix: Remove unneeded Firefox headless hack (run ci)

* Add test to cover new case

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-12-08 09:40:43 -08:00
Blue F 79f743e1cf fix: .contains() selects proper elements when inside a <form> (#25038)
* fix: .contains() selects proper elements when inside a <form>

* Fix withinSubject to always be jquery object, and always pass a dom element to findAllShadowRoots

* Typo in last commit
2022-12-07 14:50:28 -08:00
Blue F 0e457b8235 fix: .contains() properly respects multiple incoming subjects (run ci) (#25035) 2022-12-07 13:15:34 -08:00
Bill Glesias ca01e29ab8 fix: re include document domain injections for spec-bridge and injection and disable origin-agent-cluster (#25013)
* Revert "chore: remove document.domain usage for cross-origin testing (#24945)"

This reverts commit a3d3074e70.

* fix: set origin-agent-cluster=?0 for the spec bridge iframe

* re apply comment that was reverted in 1fa1246b5c

* Update packages/server/lib/routes-e2e.ts

Co-authored-by: Matt Schile <mschile@cypress.io>

* chore: update document.domain immutable target from chrome 106 -> chrome 109

Co-authored-by: Matt Schile <mschile@cypress.io>
2022-12-06 17:52:48 -05:00
Emily Rohrbough 797c8f8d77 chore: update session api types & exposed global helpers (#24980)
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-12-06 08:19:39 -06:00
Blue F 95ee9b9005 fix: .within() now throws an error if given more than one subject. (#24975)
* fix: .within() now throws an error if given more than one subject.

* Fix own tests for new .within() behavior

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-12-05 13:50:56 -08:00
Matt Henkes 5a0313dd44 chore: run tests for cy.origin (#24947)
* chore: run tests for cy.origin

* enable experimentalModifyObstructiveThirdpartyCode

* Disabling cleaning subjects

* Bump memory for driver integration tests

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-12-02 15:28:10 -06:00
Matt Schile 27c425dda3 fix(breaking): exclude node_modules from cross-origin-callback-loader (#24952)
* fix: exclude node_modules from cross-origin-callback-loader

* Update system-tests/test/cy_origin_error_spec.ts

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

* Update system-tests/projects/origin-dependencies/.gitignore

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-12-02 14:32:03 -06:00
Chris Breiding a3d3074e70 chore: remove document.domain usage for cross-origin testing (#24945) 2022-12-02 12:08:12 -05:00
Emily Rohrbough afc5e030af feat(12): change testIsolation values from on/off to true/false (#24935)
* feat(12): change testIsolation values from on/off to true/false

* missed

* Update cli/types/cypress.d.ts

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

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-12-02 10:29:21 -06:00
Bill Glesias 4c669b3111 chore: update cross origin command error (#24891)
* chore: update cross_origin_command to point to new v12 docs with cy.origin explainer

* chore: add snapshot-meta cache

* chore: update link

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-12-02 09:06:45 -06:00
mjhenkes 6362b73a7d Merge branch 'develop' into release/12.0.0 2022-12-02 08:01:24 -06:00
Emily Rohrbough 05530ce531 chore(12): merge develop into release/12.0.0 (#24927)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Feng Yu <abcfy2@users.noreply.github.com>
2022-12-01 19:33:44 -06:00
Matt Schile 98efdf45b3 feat: Added experimentalOriginDependencies to gate dependencies support within cy.origin (#24931)
* adding experimentalOriginDependencies flag

* update system tests
2022-12-01 15:40:05 -06:00
Chris Breiding a80ebad8ab feat: Add new local and session storage commands (#24859) 2022-12-01 10:29:11 -05:00
Blue F e8898d2f6b fix: Fix incompletely cleared subjects when linking chainers (#24890) 2022-11-30 12:44:04 -08:00
Blue F 8337515edf fix: Clean up command attributes after no longer needed (#24863) 2022-11-30 09:01:14 -08:00
Blue F c0d505e84f fix: Calling .type() on a wrapper element properly focuses contained <input> (#24886)
* fix: Fix typing into wrapper elements

* run ci

Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
2022-11-29 13:46:35 -08:00
Blue F 8ff38cdb01 feat: Create public Cypress.ensure API for use with custom queries (#24697)
* fix: Improve TypeScript support for custom queries

* Typo fix

* Fix TS more

* Move 'ensures' off of cy and onto Cypress

* Type fixes

* One missed replacement

* Test fixes

* Properly pass in  to ensureRunnable

* Add .eslintignores to quiet down warnings

* Review feedback

* Update cli/types/cypress.d.ts

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

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-11-29 09:34:34 -06:00
Emily Rohrbough 83f8997532 chore(v12): test isolation GA cleanup (#24736)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Closes undefined
2022-11-29 08:30:14 -06:00
mjhenkes 200656b1d2 Merge branch 'develop' into matth/merge-in-develop 2022-11-25 09:06:20 -06:00
Matt Henkes b04f9a1143 fix: Canceled Intercepted calls will now end a waited on alias (#24709)
* fix: on a canceled request, end waiting on an intercepted alias

* Add tests, fix ts

* skip firefox

* add doc

* try to fix flake

* delay?

* Use http proxy instead of cdp.

* 'fix' safari

* test updates

* PR updates

* test updates
2022-11-25 08:53:40 -06:00
Chris Breiding 27b0f2186f fix: Use hostname as default domain for cookie commands (#24692)
BREAKING CHANGE: Cookie commands now use the the hostname and not the superdomain for the domain by default. This may affect what cookies are returned/set/cleared by cookie commands.
2022-11-23 09:54:09 -05:00