Commit Graph

2716 Commits

Author SHA1 Message Date
Jennifer Shehane
f2a381ca55 Merge branch 'develop' into release/15.0.0 2025-08-08 12:58:43 -04:00
Adam Alston
39c175976f fix: return raw fixture when encoding is specified (#32155)
* fix: return raw fixture when encoding is specified

* revert: revert test change

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-08-08 12:28:37 -04:00
Bill Glesias
d1667d7d63 Merge branch 'release/15.0.0' into merge_develop_15 2025-08-07 15:49:56 -04:00
Bill Glesias
9ef239e68b fix: update bidi automation client to handle unspecified cookie option in firefox and keep behavior for firefox 139 and under as the 'default' sameSite value does not exist in this version 2025-08-06 16:04:55 -04:00
Bill Glesias
a3924071c1 Merge branch 'develop' into merge_develop_15 2025-08-05 16:23:25 -04:00
Bill Glesias
d18f66006e chore: fix AUT discovery if frame name is not present (#32154)
* chore: fix issues with AUT discovery if for any reason the name is not present

* Update packages/server/lib/browsers/cdp_automation.ts

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

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-08-05 13:45:36 -04:00
Jennifer Shehane
788dfd1c0b chore: bump firefox version we test against to 141 (#32078)
* chore: bump firefox version we test against to 141

* account for unspecified sameSite which is now available in firefox 140

* fix expected error string for invalid cookie

* override FORCE_FIREFOX_CDP firefox 141

* fix cdp override in ff 141+

* maybe fix cookeie system tests? seem to time out locally

* set family as well as name

* fix system tests fore ff 141

* fix ff deprecation

* rm erroneous err param

* assume firefox is modern in cookies driver e2e test

* Update system-tests/lib/system-tests.ts

* we do still run tests against firefox 134

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Cacie Prins <cacie@cypress.io>
2025-08-05 13:00:30 -04:00
Ryan Manuel
d12e94524a chore: (studio) ensure to strip out paths from all data when reporting errors in studio (#32135)
* fix: (studio) ensure to strip out paths from all data when reporting errors in prompt and studio

* disable with environment variable
2025-07-31 20:59:32 -05:00
Jennifer Shehane
036f22ba0b chore: add await to tests that are expecting 'to.be.rejectedWith' (#32106)
* chore: add await to tests that are expecting 'to.be.rejectedWith'

* wait for async operation to remove flake
2025-07-28 09:28:46 -04:00
Jennifer Shehane
5cad25c7ab Merge branch 'develop' into release/15.0.0 2025-07-25 09:44:01 -04:00
Cacie Prins
7825936902 chore(dep): upgrade cypress/request to 3.0.9 to address form-data vulnerabilities (#32096)
* chore(deps): upgrade @cypress/request

* changelog
2025-07-24 15:10:57 -04:00
Bill Glesias
9f48e243a4 fix: allow localhost hijacking and treat as secure if proxyServer is present (thanks to @mozfreddybmozfreddyb in https://github.com/cypress-io/cypress/pull/32056) (#32065) 2025-07-23 11:27:00 -04:00
Matt Schile
b47cb0ec21 internal: (studio) remove studioAiAvailable property (#32072) 2025-07-22 18:51:43 -06:00
Jennifer Shehane
87ad4ccc65 Replace utils._extend with Object.assign in http-proxy (#32073) 2025-07-22 14:20:19 -04:00
Adam Stone-Lord
f65ac036aa internal: (studio) wire up cloud studio AI enabled feature flag (#32055)
* internal: (studio) wire up cloud studio AI enabled feature flag

* actually pass props

* fix types
2025-07-21 11:21:57 -04:00
Adam Stone-Lord
b771060097 internal: (studio) only initialize cloud studio bundle when experimentalStudio is enabled in project config (#32018) 2025-07-15 13:46:48 -04:00
Bill Glesias
0eaea54519 breaking: make @cypress/vite-dev-server an ESM only package and support Vite 7 (#32001)
* chore: cut over mocha tests to vitest in @cypress/vite-dev-server

* breaking: make @cypress/vite-dev-server an ESM only package

* feat: support vite version 7 in @cypress/vite-dev-server

* build binaries

* test

* fix: file import issues on windows

* avoid optimized deps to suppress extraneous console logs

* does this work?

* chore: add unit tests for getVite as the implementation as changed quite a bit

* chore: update changelog

* fix vite optimize dependency messages being logged out to the console
even though log level is silent

* fix issues with correct vite being invoked

* chore: address issues from code review

* Downgrade react in vite 7 project to fix deprecation warnings
2025-07-14 16:03:37 -04:00
Mike McCready
7b7430c383 chore(deps): update get-windows-proxy to 1.6.3 (#32019) 2025-07-14 13:23:56 -04:00
Adam Stone-Lord
992f89417f internal: (studio) force test re-run if watchForFileChanges: false (#31982)
* internal: (studio) force test re-run if `watchForFileChanges: false`

* fix lint

* don't set function through addSocketListeners

* use common functions

* revert unnecessary changes

* update socket tests

* stablize tests

* try to fix test

* fix test
2025-07-10 10:19:15 -05:00
Jennifer Shehane
54ac4ae48c chore: Replace deprecated Electron API calls (#32003)
* Replace deprecated Electron API call

* replace deprecated 'removeExtension'
2025-07-08 15:22:05 -04:00
Cacie Prins
6b9f27c95d dependency: electron@36.4.0 (#31912)
* dependency: update Electron to 34

* setup workflows to run against binary branch and on all tests

* changelog entry

* node version did bump minorly

* Update base-internal image to match new node version

* fix typo

* changelog updates

* bumping to newest version just released today - hopefully solves glibc error

* fix cy in cy

* remove extra register_ts_node require

* updated lockfile

* upgrade better-sqlite3

* changelog

* update electron in top level package.json

* ts issue, update to use binary workflow for e35, update ancillary deps

* update gh issue templates

* bump missed image names and engines field

* node 22

* snapgen?

* ts issue, log errors even if err.stderr/stdout is null

* more logging

* defer http-proxy common.js due to regexp issue in v8 13.4.* - 13.8.91

* update images for node 22.15.1, use bullseye instead of buster for bettersqlite

* use bullseye image for glibc2.31 build of bettersqlite

* use electron-36 publish binary branch

* node-abi update, set http-proxy deferred in darwin

* update .node-version

* attempt to patch http-proxy to immediately defer  http-proxy/lib/http-proxy/common.js

* empty commit [run ci]

* better patch?

* changelog

* changelog

* Updates v8 snapshots to fix windows build (#31918)

* use node 22 in the v8 snapshot update workflow

* index on windows-v8-snapshots: a013464197 use node 22 in the v8 snapshot update workflow

* index on windows-v8-snapshots: a013464197 use node 22 in the v8 snapshot update workflow

* index on windows-v8-snapshots: a013464197 use node 22 in the v8 snapshot update workflow

* run workflows on windows/mac

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>

* update protocol system test snapshots (#31925)

* use snapshot to verify the error message on invalid json (#31926)

* chore: account for all node: internal stacks when trying to calculate the code frame. Accounts additionally for node:diagnostics_channel (#31935)

* Fixes electron 36 integrity checks (#31956)

* update the fs.readFileSync integrity check expectation

* maybe this fn is missing from the expected stack?

* more debug, change the stack up a little

* actual fn name is traceSync

* logging

* logging

* remove logging from integrity check

* maybe circle api changed?

* correct params

* inspect stack frames for differences

* have to manually serialize the stack frames

* change expectation

* update expected global keys

* additional allow list

* update key allow list

* increase zipfile size limit on non-windows builds

* revert logging changes

* Update scripts/binary/binary-integrity-check-source.js

* increase timeout to 120s for darwin fsevents/native module test (#31975)

* print out stdout for darwin test

* try and fix test

* update readme re: browsers-internal images, ensure module_api_spec binary test uses correct electron version

* Update .circleci/workflows.yml

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

* Update .circleci/workflows.yml

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

* trigger 15.0.0 binary pipeline rather than electron-36 specific one

* Update cli/CHANGELOG.md

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

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-07-07 13:03:13 -04:00
Ryan Manuel
a58a19eb3a Merge branch 'develop' into release/15.0.0 2025-07-03 21:12:15 -05:00
Tim Griesser
7a9185e6c0 fix: force CloudRequest to use 443 for https requests (#31992)
* chore: force CloudRequest to use 443 for https requests

* Update packages/network/lib/agent.ts

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

* Update CHANGELOG.md

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-07-03 21:12:01 -05:00
Adam Stone-Lord
e05de87b51 internal: (studio) show error and allow retry when studio cannot be initialized (#31951) 2025-07-03 12:07:44 -04:00
Ryan Manuel
8a6d1d666b Merge branch 'develop' into release/15.0.0 2025-07-02 10:10:59 -05:00
Ryan Manuel
954847c613 internal: (studio) add manifest for all of the cloud delivered files (#31923)
* internal: (studio) add manifest for all of the cloud delivered files

* fix tests and environment variables

* update strategy

* fix tests

* rework

* Apply suggestions from code review

* require manifest

* require manifest

* clean up

* refactor

* Update packages/server/lib/cloud/studio/StudioLifecycleManager.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor

* just use the string

* try and fix test

* try and fix test

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-01 22:21:39 -05:00
Matt Schile
b9e47e08ee internal: remove CYPRESS_ENABLE_CLOUD_STUDIO env (#31976) 2025-07-01 14:24:04 -06:00
Cacie Prins
30b07ec239 Merge branch 'develop' into release/15.0.0 2025-06-30 11:51:22 -04:00
Tim Griesser
ed8e7ea8a4 chore: continuing with request to axios changes (#31915) 2025-06-27 17:18:12 -04:00
Tim Griesser
4dd4e35378 chore: remove httpstat.us dependency, add utility route for cy-in-cy (#31961) 2025-06-27 13:44:33 -04:00
Jennifer Shehane
3eaf7400ad Merge branch 'develop' into release/15.0.0 2025-06-26 12:25:20 -04:00
Bill Glesias
40c81d0ec8 fix: proxy spec flake in firefox due to improper sweeping and correlation (#31651)
* fix: don't automatically remove requests when cdpRequestWillBeSentReceivedTimestamp is set to 0. Also, do not ass hashes to prerequest url as the urls do not have hashes when coming through the middleware

* Update packages/server/lib/browsers/bidi_automation.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-24 15:33:38 -04:00
Tim Griesser
31c3455b6d chore: normalize options passed via axios to the agent layer (#31905)
* fix: normalize options passed via axios to the agent layer

* improvements to testing, using debugging-proxy

* clean up & add test cases for authorization

* add follow-redirects as explicit dependency
2025-06-23 14:52:46 -04:00
Bill Glesias
b75850e37b feat: rework window bound commands to use automation clients (#31862)
* spike: cut over cy.url(), cy.hash(), cy.location(), cy.reload(), cy.go(), and cy.title() all to use the automation client to subvert the cross-origin boundary

refactor backend client

* chore: add unit tests for cy url, hash, location, title, reload, and go changes to make it easier to test minor behavior changes

bump cache

* fix issues with cy in cy tests. refactor aut discovery code as the frame tree gets stale on reload

* update comments from code review

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-06-17 16:33:56 -04:00
Jennifer Shehane
968dabbe45 Merge branch 'develop' into release/15.0.0 2025-06-17 13:51:52 -04:00
Adam Stone-Lord
ef1a73b1e0 internal: create cloud studio session ID to group telemetry and errors (#31833)
* internal: create cloud studio session ID to group telemetry and errors

* safely call updateSessionId
2025-06-12 11:43:22 -05:00
Jennifer Shehane
5f2adc370a Merge branch 'develop' into release/15.0.0 2025-06-11 13:45:33 -04:00
renovate[bot]
5eabf828bb chore(deps): update dependency cross-env to v7 (#31814)
* chore(deps): update dependency cross-env to v7

* empty commit

* add or remove the cross-env to each package depending on how its currently used

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-06-11 10:01:02 -04:00
Jennifer Shehane
b7aff4521a Merge branch 'develop' into release/15.0.0 2025-06-10 09:13:37 -04:00
Ryan Manuel
6a5bf0e6e2 internal: (studio) be more up front with protocol errors during studio development (#31848) 2025-06-07 09:13:41 -05:00
Ryan Manuel
430465a935 internal: (studio) add indication in the console in local development that watch mode has detected a change (#31824)
* internal: (studio) add indication in the console in local development that watch mode has detected a change

* rework

* PR comments
2025-06-07 09:00:44 -05:00
Ryan Manuel
4081664454 internal: (studio) add telemetry around time it takes to download the bundle and initialize studio fully (#31834)
* internal: (studio) add telemetry around time it takes to download the bundle and initialize studio fully

* fix tests
2025-06-06 14:37:49 -05:00
Ryan Manuel
fed81d47c8 internal: (studio) set up hot reloading for the studio bundle (#31796)
* internal: (studio) set up hot reloading for the studio bundle

* fix types

* floating promise

* Update packages/server/test/unit/cloud/get_cloud_metadata_spec.ts

* fix tests

* index on ryanm/internal/hot-reloading: b6a9137258 Update packages/server/test/unit/cloud/get_cloud_metadata_spec.ts

* index on ryanm/internal/hot-reloading: b6a9137258 Update packages/server/test/unit/cloud/get_cloud_metadata_spec.ts

* index on ryanm/internal/hot-reloading: b6a9137258 Update packages/server/test/unit/cloud/get_cloud_metadata_spec.ts

* fix tests

* fix binary

* fix tests

* minor tweaks

* code cleanup

* update guide

* PR comments

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-05-30 13:38:42 -05:00
Bill Glesias
8b8230b291 breaking: remove built-ins from @cypress/webpack-batteries-included-preprocessor (#31738)
* breaking: remove webpack built-ins shimmed in from webpack 4 to 5 upgrade as they should no longer be needed for most users

* Update npm/webpack-batteries-included-preprocessor/README.md

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

* Update cli/CHANGELOG.md

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

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-05-29 00:16:40 -04:00
github-actions[bot]
08b11b7c4a chore: Update Chrome (stable) to 137.0.7151.55 (#31794)
* chore: Update Chrome (stable) to 137.0.7151.55

* empty commit

* chore: enable chrome for testing for system tests as we need it to test extension loading in chrome

* Update system-tests/test/plugins_spec.js

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

* address comments from code review

---------

Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2025-05-29 00:16:12 -04:00
renovate[bot]
2e0a738678 chore(deps): update dependency chrome-har-capturer to v0.14.2 (#31775)
* chore(deps): update dependency chrome-har-capturer to v0.14.2

* empty commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-05-22 16:03:22 -04:00
renovate[bot]
5373dd9ff0 chore(deps): update dependency eol to v0.10.0 (#31774)
* chore(deps): update dependency eol to v0.10.0

* remove eol from server package - it is unused

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-05-22 12:56:20 -04:00
Jennifer Shehane
74daed48b7 Merge branch 'develop' into release/15.0.0 2025-05-21 11:57:04 -04:00
renovate[bot]
ff559dfd3a dependency: update dependency webdriver to v9.14.0 (#31689)
* fix(deps): update dependency webdriver to v9.13.0

* empty commit

* changelog entry

* update webdriver to 9.14.0 and update patches

* Update packages/server/patches/@wdio+protocols+9.14.0.patch

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2025-05-16 16:59:42 -04:00
Bill Glesias
713575b548 misc: throw error when chrome 137 branded is used when the @cypress/puppeteer is used in headed mode or if --load-extension is added to launch options via a user testing an extension (#31709) 2025-05-16 09:23:23 -04:00