Commit Graph

1648 Commits

Author SHA1 Message Date
Cacie Prins 0547d65a2a breaking: no longer inject document.domain by default (#30770)
* remove experimentalSkipDomainInjection, add and deprecate injectDocumentDomain

* remove experimentalSkipDomainInjection, add injectDocumentDomain

* begin rethreading domain injection

* complete document domain transition

* move some cookie specs to separate test run

* origin and privileged commands with default docdom inject

* fix privileged channel when injecting document domain

* rm unnecessary .getOrigin abstraction in cors lib

* move remote-states in prep for refactor Replace Conditional with Polymorphism

* refactor remote states to strategy pattern

* cookie commands work as expected w cross origin bridge on different origins

* some origin tests updated

* run tests with document domain enabled

* run tests actually

* use correct config, swap conditional

* check-ts

* inject documetn domain for webkit tests

* do not exec injectDocumetnDomain in parallel

* fix ServerBase construction in tests to include cfg now

* pass cfg to ServerBase

* improved integration tests

* remove document domain checks for all server integration specs - will add injectDocumentDomain cases

* tests for injecting document domain when configured to

* square away server integration tests

* ensure cookies are set correctly, potentially

* errors pkg snapshots

* fix config tests

* fixing config tests

* somewhat improves tests for cors policies in packages/network

* fix ts err in server-base

* enable injectDocumentDomain for cy in cy tests

* fix Policy type ref

* refactor cypress-schematic ct spec to be less prone to timeouts

* run vite-dev-server tests with injectDocumentDomain

* rm document domain assertion from page_loading system test

* add system tests that test with injectDocumentDomain and others that test with cy.origin

* fix results_spec snapshot

* update experimentalSkipDomainInjection system test

* different behavior for certain net_stubbing tests based on injectDocumentDomain or not

* fix ts

* extract origin key logic from remote states, for now

* move server-base and response-middleware over to new pattern

* WIP - reentry

* fix build, remove console.log

* check-ts

* fix spec frame injection

* remove injection for localhost

* mostly fix vite-dev-server app integration tests

* fix codeframe in certain cases in chrome

* drop internal stack frames from stacks intended for determining code frame data

* some improvements to vite ct error codeframes

* fix proxy unit tests to use document domain injection util class

* rm .only

* fix all vite ct error specs

* rm console.log

* slight refactor to util class to make easier to test

* fix refactor - missing rename in files.js

* several tests do not set testingtype in config, so just check against component instead of checking for e2e

* revert changes to getInvocationDetails to see if that breaks tests

* re-enable stack stripping in invocation details for chrome

* new snapshots with more accurate invocation details

* test for same-site cross-origin cookie behavior

* ignore window.top ts errors

* revert forcing injectDocumentDomain in vite-dev-server cy config

* fix normalized whitespace for firefox "loading_failed" error

* always trim trailing wsp from stack before appending additional content

* force normalization of whitespace to three \n when adding additional stack details

* normalize wsp between stack and additional stack to "\n  \n" in firefox

* remove stack_utils attempt at normalizing wsp

* various cleanup: remove commented console logs, add more detailed comments

* add on links to error messages

* remove experimentalSkipDomainInjection from exported type defs

* Update system-tests/test/experimental_skip_domain_injection_spec.ts

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

* Update packages/driver/cypress/e2e/e2e/origin/cookie_misc.cy.ts

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

* no need to coerce a boolean value to a booleanc

* export base config from primary cypress config in driver for use in inject-document-domain test subset

* lift experimentalSkipDomainInjection breaking option to root

* rollback config/options changes

* rm invalid comment

* use hostname instead of origin to create cookie from automation cookie

* clarify stack regex in results_spec

* lint

* take a stab at the changelog entries for this

* Update cli/CHANGELOG.md

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

* Update cli/CHANGELOG.md

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

* reenable locally-failing test

* changelog

* snapshot updatesfor experimental skip domain injection err msg

* remove packageManager declaration in package.json

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-01-06 13:48:43 -05:00
Jennifer Shehane a33a202f1d Add missing parens in example of fetch update 2024-12-23 10:32:22 -05:00
Jennifer Shehane 9dd9824206 Rearrange changelog a bit 2024-12-23 10:13:45 -05:00
Jennifer Shehane d656afa302 Merge branch 'develop' into release/14.0.0 2024-12-23 09:53:16 -05:00
Bill Glesias e59b0160b6 chore: bump @vue/test-utils from 2.3.2 to 2.4.6 [run ci] (#30739) 2024-12-17 21:17:43 -05:00
Matt Schile a15076fcf9 chore: release 13.17.0 (#30778) 2024-12-17 10:13:58 -07:00
Matt Schile 0c3c497c1d feat: add support for chrome for testing browser (#30751) 2024-12-16 10:39:06 -07:00
Jennifer Shehane 2e5af1e624 merge develop 2024-12-11 11:09:56 -05:00
Jennifer Shehane 17639cb364 misc: Remove 'Alternatively you can use CommonJS syntax' comment from scaffolded component supportFile (#30738)
* Remove 'Alternatively you can use CommonJS syntax' comment from scaffolded ct supportFile

* changelog entry
2024-12-11 11:03:52 -05:00
Ryan Manuel 73de0a8d4d fix: error loading config file with node 22.12.0 (#30730) 2024-12-10 19:36:17 -07:00
Jennifer Shehane ed1c510ac4 dependency: Bump chai from 4.2.0 to 4.5.0 (#30737)
* Bump chai to 4.5.0

* empty commit

* Add changelog entry
2024-12-10 12:49:54 -05:00
Jennifer Shehane f14fd12350 merge develop 2024-12-10 11:00:16 -05:00
Bill Glesias c6450177e1 chore: remove support for react 19 RC and make Nextjs 15.0.4 the minimum next 15 version supported [run ci] (#30723)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-12-10 10:49:50 -05:00
Matt Schile dcd0e92ced fix: update userChrome.css to correctly hide the toolbox in firefox (#30728) 2024-12-10 07:38:09 -07:00
Bill Glesias 22776eba46 breaking: remove support for svelte 4 and support svelte 5 [run ci] (#30700) 2024-12-10 09:21:09 -05:00
Matt Schile e96593bb1e fix: hang when Network.enable is not implemented for a target (#30727) 2024-12-09 09:44:05 -07:00
Matt Schile ffefdb0f09 dependency: electron 33 upgrade (#30716) 2024-12-06 15:24:40 -07:00
Bill Glesias e4904d6e4c Merge branch 'develop' into release/14.0.0 2024-12-05 13:19:55 -05:00
Bill Glesias 4efd932eac feat: component testing now supports vite 6 [run ci] (#30679) 2024-12-03 15:03:08 -05:00
Cacie Prins 06aeb9dfdd chore: remove unapplicable changelog entry (#30705) 2024-12-03 13:07:34 -05:00
Matt Schile dcbbe4a284 misc: remove component testing API stubs that were removed in Cypress 11 (#30696) 2024-12-03 10:44:17 -07:00
Jennifer Shehane a65e7b546b Merge branch 'develop' into release/14.0.0 2024-12-03 12:05:56 -05:00
Cacie Prins 246b37a8ea chore: release 13.16.1 (#30704) 2024-12-03 11:42:14 -05:00
Cacie Prins 32c7b72c7c fix: failing Create Instance api call no longer skips spec (#30697)
* do not retry instance creation, report that cannot proceed with failed cloud in serial

* update system tests

* changelog

* changelog

* Update cli/CHANGELOG.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* update error language

* snapshots

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-12-03 09:52:00 -05:00
Bill Glesias dcdefb4069 feat: support angular 19 and update tests [run ci] (#30675) 2024-12-02 15:29:54 -05:00
Michał Urbanek d8d493a06c fix: visibility issue with parent absolute (#29689) 2024-12-02 08:43:29 -07:00
Michał Urbanek c3660d4e40 fix: update visibility for elements with textContent but without width/height (#29688) 2024-12-02 08:37:56 -07:00
Michał Urbanek b2816f99ad fix: update visibility to support parent overflow:clip without height/width (#29778) 2024-12-02 08:30:23 -07:00
Jennifer Shehane 636bed9cf7 merge develop 2024-12-02 09:42:47 -05:00
Wenfu 12df40ed8c fix: support multiple imports of one module with multiple lines (#30314)
e.g.
```
import {
  a,
  b,
  c,
} from 'x';
```

chore: remove unnecessary deep equal

Co-authored-by: Bill Glesias <bglesias@gmail.com>
2024-11-22 14:31:31 -05:00
Bill Glesias f4aec3ed46 feat: support next 15 [run ci] (#30654) 2024-11-21 16:36:23 -05:00
Bill Glesias 15c5761eb6 breaking: make JustInTimeCompile GA from experimentalJustInTimeCompile and default to true (#30641)
* pull support for JIT from vite since it doesn't have an affect for end users or performance (webpack only) [run ci]

rebase this

* remove the experimentalJIT flag and make it GA (default still false) [run ci]

* enable justInTimeCompile by default [run ci]

* chore: bump cache [run ci]
2024-11-21 15:25:59 -05:00
Ryan Manuel 39274f49a1 chore: suppress EGL Driver message in electron 32 (#30663)
* chore: suppress EGL Driver message in electron 32

* remove bad files
2024-11-21 10:26:00 -06:00
Bill Glesias 94d360e8ae feat: support react 19 for component testing with cypress/react [run ci] (#30651) 2024-11-21 10:17:03 -05:00
Matt Schile 5c21c4b401 chore: release 13.16.0 (#30650) 2024-11-19 10:19:06 -07:00
Mike McCready b8e96a29e1 dependency: update @electron/rebuild to 3.7.1 (#30633) 2024-11-18 09:05:17 -07:00
Bill Glesias 0c661b4f35 breaking: remove support for React 16 and 17 for Cypress Component Testing. Additionally, remove the cypress/react18 testing harness and merge it upstream with cypress/react (#30590)
* breaking: remove support for react 16 and 17 for component testing and move cypress/react18 upstream into cypress/react [run ci]

* update tests / suggestions from code review [run ci]
2024-11-15 16:14:48 -05:00
Alex Schwartz 82f45c51d6 feat: added ability to specify the default browser in cypress config (#30517) 2024-11-14 12:49:32 -07:00
Ryan Manuel 4bf8e585cd fix: ensure that each js file served up by vite dev server has an inline sourcemap (#30606)
* fix: ensure that each js file served up by vite dev server has an inline sourcemap

* refactor

* refactor with more understanding

* add changelog

* PR comments and other tweaks

* add comments

* add comments

* Apply suggestions from code review
2024-11-14 11:55:19 -06:00
Bill Glesias a6d2b2f6e3 chore: update to react 18 for the reporter from 17.0.2 to 18.3.1 [run ci] (#30567) 2024-11-13 19:45:43 -05:00
Ryan Manuel 0975b2f07f feat: update the protocol to be able to flex logic based on project config (#30594)
* feat: update the protocol to be able to flex logic based on project config

* slight refactor

* Update cli/CHANGELOG.md

* Update packages/types/src/protocol.ts

* fix ts
2024-11-13 15:42:11 -06:00
Matt Schile 4504459c10 breaking: remove typescript v3 from the configuration wizard (#30605) 2024-11-12 14:00:38 -07:00
Bill Glesias c695f5fa16 breaking: remove support for @vue/cli-serivce from Cypress Component Testing [run ci] (#30585) 2024-11-12 14:13:36 -05:00
Matt Schile 249da654bd breaking: remove Svelte 3 support (#30572) 2024-11-08 22:10:47 -07:00
Bill Glesias 37b944f9b4 breaking: remove support for create react app for component testing as it is no longer maintained [run ci] (#30558) 2024-11-07 18:02:04 -05:00
Bill Glesias edd9a27031 breaking: remove the cypress/angular-signals test harness. The changes incorporated in @cypress/angular-signals are now merged upstream into @cypress/angular and the package is no longer needed [run ci] (#30540) 2024-11-07 13:16:18 -05:00
AtofStryker 3ea7f06acf Merge branch 'release/14.0.0' of github.com:cypress-io/cypress into chore/merge_develop 2024-11-06 15:34:13 -05:00
Bill Glesias 3141d12dc5 breaking: remove support for angular 13,14,15, and 16. minimum version is now 17.2.0 (#30539)
breaking: cypress-schematic only supports angular 17.2.0 and up [run ci]

fix updates missed [run ci]
2024-11-06 15:06:49 -05:00
AtofStryker c55bcb1f68 Merge branch 'develop' into chore/merge_develop 2024-11-06 14:30:31 -05:00
Bill Glesias 03af592ca2 chore: update @packages/reporter react from 16.8.6 to 17.0.2 and updates @types/react* packages from 16x to 17x (#30516)
* chore: update @packages/reporter react from 16.8.6  to 17.0.2  and updates @types/react* packages from 16x to 17x [run ci]

* hoist dependencies up due to peer dep issues with react and the runner/reporter needing to locate the same react (this is dumb)

* update react-18 package to reference types delcared in root (kind of goofy but existing pattern) [run ci]

* correctly look up react instance as __reactInternalInstance no longer exists in react17 [run ci]

* fix failing test now that repo is on react 17 [run ci]
2024-11-06 13:27:07 -05:00