Commit Graph

6804 Commits

Author SHA1 Message Date
Jennifer Shehane 87a845ab00 misc: Update on.cypress.come urls to correct on.cypress.io urls (#30953)
* fix: Update on.cypress.come urls to correct on.cypress.io urls

* Add changelog entry
2025-01-27 13:13:15 -05:00
Matt Schile 0811921dd0 fix: visibility issue when parent element is clipping (#30934) 2025-01-27 10:32:12 -07:00
Matt Schile 1548047aa8 fix: non-HTMLElement(s) fail during assertions (#30947) 2025-01-27 09:37:26 -07:00
Ryan Manuel dbd11d436b chore: remove various dead code (#30818)
* chore: remove various dead code

* additional dead code

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-01-24 13:16:37 -06:00
Jennifer Shehane 92e428a357 chore: add type linting + compilation checks to packages (#30776)
* chore: add type linting + compilation checks to runner package

* empty commit

* A bunch of tslint fixes

* wow it is building

* Fix issue with CT not mounting correctly with comments within it

* Fix net-stubbing.ct.ts failures

* Fix tslint: disable comment

* move target into compilerOptions

* fix tslint disable comment

* update proxy-logging to undo changes

* standardize the tslint:disable comments

* fix comment

* fix the banner content not displaying and write a test for this situation

* fix ct reference

* put target to es2020

* actually set the property with replaced title

* Update packages/reporter/src/hooks/hook-model.ts

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

* Fix eslint/tslint settings for system-tests with vue 3

* bump CI cache

* update types/react resolution

* add return

* lint fix

* tslint disable for empty blocks

* exclude dist files from ts linting

* update to exclude all dist folder

* exclude dist file

* change to await

* fix line numbers of stack trace with linting updating vue file

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-01-23 14:55:52 -05:00
Bill Glesias 5e7982d3d0 chore: automatically infer cypress major version from package.json version and error when no splash page exists for said major version (#30911) 2025-01-22 16:21:57 -05:00
Matt Schile e3a28437bc fix: prevent navigating to about:blank (#30864)
* fix: prevent navigating to about:blank

* update snapshots

* update test

* fix changelog

* pr updates

* Update CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-01-17 09:15:19 -05:00
Bill Glesias 49d578c5c7 chore: make sure the constant for the welcome screen is patched (#30893) 2025-01-16 13:43:48 -05:00
Bill Glesias 94d18c3b7a chore: update Cypress 14 release date to January 16th (#30880) 2025-01-15 16:03:05 -05:00
Cacie Prins 0532f92089 chore: Open in IDE button for block and hook definitions in Runner UI (#30859)
* init vitest unit test harness for @packages/driver

* unit tests with stack examples

* drop lines until __cypress/tests rather than just __cypress

* changelog

* changelog

* remove vitest globals (unnecessary) from driver tsconfig

* bump the number of junit reports expected from the unit tests job

* fix ts-check error in scroll.ts

* fix type definition for getInvocationDetails

* rm packageManager key on package.json

* remove junit reporter, as script that verifies result does not recognize it as valid

* change @ts-expect-error to @ts-ignore for .scroll, as this ts check is apparently flaky

* set expected mocha result back to 19

* add ct style stacks for cy in cy ct tests

* re-enable junit reporter, update mocha result verification to be more lenient about the order of xml fields

* persist binaries for this branch

* expect 20 junit reports again

* fix mocha v vitest verification?

* add binary system test to verify correct file paths for codepoints in protocol events

* fix invocation details system test filename

* add required config for binary tests

* build on darwin to fix binary system tests

* build linux-arm64 for this branch

* simplify binary test

* build windows binary

* rm binary system test

* Update cli/CHANGELOG.md
2025-01-14 15:33:33 -05:00
Bill Glesias 249cfde3e2 fix: make sure scrollTo, window, document, title, go, reload, location, hash, and url commands can communicate with the AUT (#30858) 2025-01-13 15:57:32 -05:00
Matt Schile ab2f0c1fdb fix: update tsconfig files to match previous config (#30856) 2025-01-13 08:33:27 -07:00
Bill Glesias c1a7467d7c chore: update welcome screen for Cypress 14 (#30845) 2025-01-09 15:23:10 -05:00
Matt Schile 056696c909 chore: update running browser button icon styling (#30851) 2025-01-09 13:09:29 -07:00
Bill Glesias ede3833197 chore: cleanup release related items (#30840)
* chore: fix the @cypress/webpack-dev-server changelog after automated released

* chore: correct mistake in unsatified fixture
2025-01-08 13:57:18 -05:00
Jennifer Shehane 9fb270e7f2 merge develop 2025-01-07 11:47:40 -05:00
Cacie Prins 6411c4f5bf refactor: clean up experimentalSkipDomainInjection removal (#30826)
* chore: clean up experimentalSkipDomainInjection removal

* rm corepack yarn line

* update snapshots

* rm dead code, update error message
2025-01-07 11:07:01 -05:00
Matt Schile 558906f2f8 misc: update browser icons (#30790) 2025-01-07 08:46:22 -07:00
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 9b40a8ce06 remove minSupportedVersion from browser (snuck in from dev merge) 2024-12-23 15:44:05 -05:00
Jennifer Shehane d656afa302 Merge branch 'develop' into release/14.0.0 2024-12-23 09:53:16 -05:00
Jennifer Shehane 0a8a1305fb chore: convert screenshots.js to screenshots.ts (#30758)
* chore: convert screenshots.js to screenshots.ts

* Fix export

* Try to clean up types

* Add some more types around data

* Add some more info around types to the screenshots file

* try to fix the error in screenshots

* fix type of overwrite

* revert everything in that getPath function (just dont touch it)

* more reverting

* fix the thenable

* revert again

* revert outputFile change
2024-12-20 16:29:51 -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 0c3c497c1d feat: add support for chrome for testing browser (#30751) 2024-12-16 10:39:06 -07:00
Jennifer Shehane 68c5714f1a chore: Cleanup duplication across tsconfig files in packages (#30764)
* Cleanup duplication across tsconfig files in packages

* empty commit

* Add ts-ignore

* Add ts-ignore
2024-12-16 11:12:40 -05: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 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
Matt Schile 02db483962 test: fix proxy spec flake (#30717) 2024-12-05 08:49:23 -07:00
Bill Glesias 4efd932eac feat: component testing now supports vite 6 [run ci] (#30679) 2024-12-03 15:03:08 -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 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
Matt Schile 6bd6185a29 test: remove duplicate add function (#30693) 2024-12-02 10:00:39 -07: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
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
Bill Glesias 94d360e8ae feat: support react 19 for component testing with cypress/react [run ci] (#30651) 2024-11-21 10:17:03 -05:00
Mike McCready 6e523b06fa chore(deps): update dependency cypress-example-kitchensink to 3.1.2 (#30640) 2024-11-18 13:15:35 -07:00