1683 Commits

Author SHA1 Message Date
Bill Glesias 7ffd5a33c1 chore: release 14.1.0 (#31168) 2025-02-25 12:26:26 -05:00
Cacie Prins 2d80905444 fix: corrects unit calculations in the slow network error message during Test Replay uploads (#31160)
* fix: corrects unit calculations in the slow upload speed error for test replay archive uploads

* changelog
2025-02-25 09:41:12 -05:00
renovate[bot] b4c7e40535 dependency: update dependency compression to v1.8.0 (#31151)
* fix(deps): update dependency compression to v1.7.5

* fix(deps): update dependency compression to v1.7.5

* empty commit

* Add changelog entry

* fix(deps): update dependency compression to v1.8.0

* changelog entry

* index on renovate/compression-1.x: bb26918351 changelog entry

* index on renovate/compression-1.x: bb26918351 changelog entry

* index on renovate/compression-1.x: bb26918351 changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-02-24 14:01:29 -05:00
Jennifer Shehane 1e7b596698 misc: Add some missing types + Convert js driver/query tests to ts (#31154)
* misc: Add some missing types + Convert js driver/query tests to ts

* changelog entry

* reuse partial

* Update cli/CHANGELOG.md

* Update call to querySelector to assign an identifier when checking for null
2025-02-24 13:21:53 -05:00
Bill Glesias 5da0995531 feat: implement webdriver BiDi for Firefox versions 135 and greater (#30870)
* feat: implement BiDi automation client base (without full extension cutover). [run ci]

* chore: implement suggestions from code review. [run ci]

* update error text to be in line with documentation

* address comments from code review

* address comments from code review

* make bidi, cdp, and both active protocols object enumerations to make the code easier to read

* address additional comments from code review

* fix errors from refactor

* update firefox warning
2025-02-24 13:17:44 -05:00
Jennifer Shehane 7012f1153a misc: Display viewport info in badge, remove dropdown explanation of viewport dimensions (#31119)
* misc: Begin code for moving viewport dimensions and removing dropdown

* Update styles for viewport size + scale and handle component testing views

* add changelog

* fix changelog link

* fix issue link again!

* Fix e2e tests

* Fix incorrect selector
2025-02-21 15:42:47 -05:00
renovate[bot] 64f93d80df dependency: update dependency ci-info to ^4.1.0 (#31132)
* fix(deps): update dependency ci-info to ^4.1.0

* empty commit

* changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-02-18 16:39:40 -05:00
renovate[bot] e51da342b3 dependency: update dependency chrome-remote-interface to v0.33.3 (#31128)
* fix(deps): update dependency chrome-remote-interface to v0.33.3

* changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-02-18 15:08:09 -05:00
Matt Schile c7aa13fb93 chore: fix the changelog (#31127) 2025-02-18 10:28:27 -07:00
Jennifer Shehane 5bf42734b9 misc: update a few cypress types + convert internal driver tests to TypeScript (#31055)
* misc: update a few cypress types + convert internal driver tests to TypeScript

* Update packages/driver/cypress/e2e/commands/actions/scroll.cy.ts

* add changelog entry

* bump circle cache?

* More type fixes

* fix some more

* Make the values numbers

* Update cli/CHANGELOG.md

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

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-02-17 13:06:40 -05:00
Bill Glesias 760f60026d chore: update wdio dependencies to latest for firefox [run ci] (#31078) 2025-02-12 09:48:18 -05:00
Bill Glesias d2be6c05fa chore: release 14.0.3 (#31077) 2025-02-11 13:11:39 -05:00
renovate[bot] d733b86a71 dependency: update dependency @cypress/request to ^3.0.7 (#31063)
* fix(deps): update dependency @cypress/request to ^3.0.7

* empty commit

* add dep to changelog

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-02-11 10:43:10 -05:00
Bill Glesias f9e872d0d4 fix: decode both script and stack before making comparison in the priv channel. If decode sequencing fails, return false (#31037) 2025-02-10 11:26:38 -05:00
renovate[bot] bd620453db dependency: update dependency compression to v1.7.5 (#31004)
* fix(deps): update dependency compression to v1.7.5

* fix(deps): update dependency compression to v1.7.5

* empty commit

* Add changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-02-05 13:33:39 -05:00
Bill Glesias 6f067bcab5 chore: release 14.0.2 (#31021) 2025-02-04 18:01:56 -05:00
Tarun Maini e8e2d92ac2 misc: Updated mismatched dependencies warning message to be neutral (#31011)
* refactor: Updated mismatched dependencies warning message to be neutral

* update changelog
2025-02-04 14:52:50 -05:00
Cacie Prins 46a473dfaf fix: retry instance creation when the Cloud request fails (#31019)
* fix: retry instance creation when the Cloud request fails

* cleanup defunct branches in circleci workflows.yml

* rm unintentional delta in system test snapshot
2025-02-04 13:31:17 -05:00
Cacie Prins 37ad2329d6 fix: Error codeframes in retry failures display the code that produced the error (#30962)
* change how user invocation stacks are prepared, for more flexibility

* build darwin and persist artifacts for this branch

* changelog

* add implicit dependencies to @packages/extension so things build in the right order

* note about binary testing for error_utils and stack_utils

* changelog

* Update packages/driver/test/unit/cypress/err_utils.spec.ts

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

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-02-04 10:52:23 -05:00
Bill Glesias 2a57c8ba15 fix: make sure privileged commands can run when there is a space in the spec or support file name (#31001)
* fix: make sure privileged commands can run when there is a space in the spec or support file name

* update changelog
2025-02-03 10:35:21 -05:00
Jennifer Shehane 9222e864eb fix: actionability not retrying in after hooks where the test failed (#30831)
* fix: actions not running in after hooks that fail

* empty commit

* Add tests for actionability retries for click and type

* empty commit

* add changelog entry

* Remove done calls in tests

* changelog update to be more specific
2025-01-31 11:33:10 -05:00
Jennifer Shehane 99b449d0a8 dependency: bump mime dependency to 3.0 (#30966)
* dependency: bump mime dep

* changelog entry

* yarn lock update

* add pending to changelog

* index on mime-dep-update: ccff6a976e add pending to changelog

* index on mime-dep-update: ccff6a976e add pending to changelog

* another removal of package

* changelog update

* index on mime-dep-update: ccff6a976e add pending to changelog

* whoops wrong issue

* fix test that was just....wrong

* Revert "fix test that was just....wrong"

This reverts commit 73ed5b0867.

* nvm, application/javascript is obsolete

* app/js to text/js updates

* downgrade to mime 3.0.0

* back to application/javascript

* index on mime-dep-update: 23cbb7783b Merge branch 'mime-dep-update' of https://github.com/cypress-io/cypress into mime-dep-update

* index on mime-dep-update: 23cbb7783b Merge branch 'mime-dep-update' of https://github.com/cypress-io/cypress into mime-dep-update

* index on mime-dep-update: 23cbb7783b Merge branch 'mime-dep-update' of https://github.com/cypress-io/cypress into mime-dep-update

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: AtofStryker <bglesias@gmail.com>
2025-01-30 10:41:12 -05:00
Bill Glesias cbc28a6d38 chore: release 14.0.1 (#30963)
* release: 14.0.1

* chore: empty commit to pass the semantic pr job as we cannot amend a protected branch
2025-01-28 11:57:05 -05:00
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
Dave York 222da94e2d misc: suppress more GPU related warnings (#30861)
Closes Mesa/GLX related warnings shown when running Cypress #29521

The primary Cypress process can emit benign warnings related to Mesa/GLX when running in certain Linux environments or containers. These warnings are related to graphics drivers and X11 display settings, but are not necessary for Cypress to execute correctly. This PR suppresses these warnings from stdout, similar to other benign Electron warnings:

- `error: XDG_RUNTIME_DIR is invalid or not set in the environment.`
- `MESA: error: ZINK: failed to choose pdev`
- `glx: failed to create drisw screen`

1. Execute Cypress tests in run mode on a Linux machine or container with minimal graphics drivers installed
2. Execute Cypress tests in run mode in a Docker container using a basic Linux image (e.g. ubuntu:latest)
3. Verify the suppressed warnings no longer appear in the terminal output

Users will no longer see benign graphics-related warnings in their terminal output when running Cypress in Linux environments with minimal graphics support. This reduces noise in the terminal output while not affecting any actual test functionality.

- [x] Have tests been added/updated?
- [NA] Has a PR for user-facing changes been opened in cypress-documentation?
- [NA] Have API changes been updated in the type definitions?

fix linting
change word for CI

Update cli/CHANGELOG.md

Going with the suggesting.

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>

fix linting

update readme with another fixed issue

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-01-23 17:04:33 -05:00
Jennifer Shehane 5f831f70b1 chore: Remove duplicated 'about blank' fix from changelog (#30910) 2025-01-17 14:53:52 -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 90b017c1c1 chore: release Cypress 14.0.0 (#30883) 2025-01-16 08:53:56 -05:00
Bill Glesias 94d18c3b7a chore: update Cypress 14 release date to January 16th (#30880) 2025-01-15 16:03:05 -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
Jennifer Shehane 9fb270e7f2 merge develop 2025-01-07 11:47:40 -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 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