Commit Graph

1735 Commits

Author SHA1 Message Date
Matt Schile
9f86cecdd7 perf: ensure the pausing event listeners are removed (#31596) 2025-04-29 11:29:32 -06:00
Yashodhan
e8a7c3f5f8 fix: prevent overwriting of video files (#30673)
* fix: use getPath to prevent video file overwrite

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* chore: update changelog

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* test: add system e2e for the retain videos fix

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Update cli/CHANGELOG.md

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

* Update types for screenshots to be in util/fs

* Fix changelog entry placement

* fix extension type

* more types fixes

* fix: add required field in getPath call to satisfy ts

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* fix: sync Data interface from develop branch

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* fix: update SavedDetails type to better definition

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* update changelog

* break out type import into unique line to allow mksnapshot to work

* fix: minor comment fixes

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* fix: change videoPath fn signature as per comment

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* fix: convert the test to async/await

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Update CHANGELOG.md

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
Co-authored-by: AtofStryker <bglesias@gmail.com>
2025-04-29 10:01:48 -04:00
Adam Stone-Lord
a5ba8c497c internal: (studio) initialize cloud studio asynchronously (#31469)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Matt Schile <mschile@cypress.io>
2025-04-29 09:37:44 -04:00
Jennifer Shehane
78f935d7dc misc: update URL bar to not flash white when urlIsLoading (#31557)
* misc: update URL bar to not flash white when urlIsLoading

* update run mode also

* add changelog

* fix changelog
2025-04-23 12:08:57 -04:00
Bill Glesias
b2a2c90242 chore: release 14.3.2 (#31565) 2025-04-22 15:13:38 -04:00
Ryan Manuel
0cd12eb642 fix: ensure debugging your ci failures message displays (#31563)
* fix: ensure having trouble debugging your ci failures message displays

* bump cache version

* index on ryanm/fix/having-trouble-debugging-your-ci-failures-minimal: 55804945c1 fix: ensure having trouble debugging your ci failures message displays

* index on ryanm/fix/having-trouble-debugging-your-ci-failures-minimal: 55804945c1 fix: ensure having trouble debugging your ci failures message displays

* index on ryanm/fix/having-trouble-debugging-your-ci-failures-minimal: 55804945c1 fix: ensure having trouble debugging your ci failures message displays

* fix test

* Update tooling/v8-snapshot/package.json

* Delete cli/vue2/README.md

* Delete cli/vue2/package.json

* Update ci_failure_spec_ts.js

* rename

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-22 12:51:08 -05:00
Bill Glesias
b47c3be0dd fix: auto scroll behavior (#31541)
* chore: add React.FC props and display names so components don't show up as anonymous in react dev tools

* fix: make sure newly added <Command> components call the auto scroll handler in the <Test> component

* Update cli/CHANGELOG.md

* Update packages/driver/cypress/support/utils.ts

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-18 15:50:56 -04:00
Bill Glesias
8e97a0d736 chore: release 14.3.1 (#31538)
* chore: release 14.3.1

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-17 12:53:03 -04:00
Jennifer Shehane
191fa02d1b chore: replace mocha.opts with .mocharc.js for packages that are mocha version 6+ (#31518)
* chore: replace mocha.opts with .mocharc.js for packages that are mocha version 6+

* move the mocharc file into the package root

* fix mocha reporter config location

* fix route to reporter-config

* store artifacts for unit tests

* move cli mocharc file to root of package

* remove storing artifacts

* remove js extension from errors mocharc
2025-04-17 10:39:15 -04:00
Cacie Prins
a50012b892 perf: reduce the initial timeout for proxy connections, make configurable (#31283)
* use cached preflight response on subsequent cloud requests that require a preflight

* introduce env var to skip initial proxy-api request

* rename env to CYPRESS_INTERNAL prefix

* change noproxy timeout default to 5 seconds

* fix

* rm internal

* changelog

* Update packages/server/test/unit/cloud/api/api_spec.js

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

* Update packages/server/lib/cloud/api/index.ts

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

* fix ts

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-04-17 10:00:46 -04:00
Cacie Prins
ab98b4940e fix: Back out of axios switchover for the createInstance cloud API request (#31486)
* use old create instance method for proxy support

* changelog

* conform legacy createInstance to the newer signature

* link to proxy env issue as todo

* changelog

* system test snapshots

* fix snap
2025-04-16 14:45:19 -04:00
Jennifer Shehane
eb5fe56a24 misc: suppress Failed to adjust OOM score of renderer errors from terminal (#31521)
* misc: suppress Failed to adjust OOM score of renderer errors from terminal

* changelog entry
2025-04-15 16:38:34 -04:00
Mike McCready
a40c14819d misc: correct documentation system-requirements link in error message (#31513) 2025-04-15 11:53:54 -04:00
Cacie Prins
9a51a0ff45 fix: activate main tab before detecting iframe focus in firefox/bidi implementation of cy.press() (#31481)
* activate main window before attempting to detect aut iframe active element

* add todo about refactor

* changelog

* system test for issue 31466

* no infinite max depth

* changelog

* changelog

* simplify

* additional test, better window switching logic
2025-04-14 16:13:13 -04:00
Jennifer Shehane
705580f369 misc: update some of the dark gray UI to be darker gray for better co… (#31475)
* misc: update some of the dark gray UI to be darker gray for better contrast

* Changelog entry

* add Pending to changelog

* Update other areas of the reporter to be darker gray

* update reporter section variable color
2025-04-10 12:46:32 -04:00
Bill Glesias
83e0d3c794 chore: release 14.3.0 (#31467) 2025-04-08 13:38:31 -04:00
Cacie Prins
cfdeb7af14 feat: cy.press() (#31398)
* wip - cy.press() command

* cy command for dispatching key press/down/up events

* unit tests and failure cases for cy.press()

* Cypress.Keyboard.Keys definition; fix command log message

* add keys to the internal keyboard type

* auto-focus in cdp

* ensure aut iframe is focused before dispatching key events in bidi browsers

* update tests for cdp focus

* fixed tests for bidi

* lint

* fix type ref in .d.ts

* linting

* skip press() driver test in ff below v135

* try all contexts for frame before failing due to missing/invalid context id

* ensure error is error before accessing props

* skip press driver test in webkit

* changelog

* debug automation middleware invocation for firefox flake

* debug

* cache update

* use bidi automation middleware from connectToNewSpec rather than constructor

* more comprehensive logging

* debug socket base, additional debug in automation

* install firefox automation middleware on setup as well as connectToNewSpec

* unit tests for firefox-utils

* proper calledWith

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-08 09:23:18 -04:00
Jennifer Shehane
ec53844713 dependency: update server to mocha 7.2.0 (#31432)
* dependency: update server to mocha 7.2.0

* Add PR to changelog
2025-04-02 15:46:04 -04:00
Jennifer Shehane
4ed0186a0e dependency: upgrade mocha to 7.2.0 (#31423)
* dependency: upgrade mocha to 7.2.0

* changelog entry

* remove the it.only from the mocha patch changelog that is triggering our stop-only check from passing

* skip patches folder with stop-only check

* remove extra bracket

* Update protocol_spec to reflect new mocha line number for error stack trace
2025-04-02 10:22:14 -04:00
Jennifer Shehane
a459591c4a dependency: update mocha from 7.1.1 to 7.1.2 (#31416)
* dependency: update mocha from 7.1.1 to 7.1.2

* changelog entry
2025-04-01 10:35:29 -04:00
Ryan Manuel
b6a64604ba fix: workaround for the electron animation bug (#31391)
* fix: workaround for the electron animation bug

* fix bug

* Update packages/server/test/unit/browsers/electron_spec.js

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

* try something

* try something

* try something

* try something

* fix

* fix

* fix

* refactor and ensure still broken

* and the fix

* Update packages/server/test/unit/browsers/electron_spec.js

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

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

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

* Update CHANGELOG.md

* refactor

* Update cli/CHANGELOG.md

* Update cli/CHANGELOG.md

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

* fix build

* Update packages/server/test/unit/browsers/electron_spec.js

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Matt Schile <mschile@cypress.io>
2025-03-31 08:50:14 -05:00
Jennifer Shehane
f6c1237009 dependency: bump mocha from 7.1.0 to 7.1.1 (#31401)
* dependency: bump mocha from 7.1.0 to 7.1.1

* changelog entry

* Update lower number of duration check
2025-03-28 15:29:33 -04:00
Jennifer Shehane
1419234a95 dependency: minor bump mocha dep (#31387)
* dependency: minor bump mocha dep

* update patch package

* changelog entry
2025-03-27 17:22:34 -04:00
renovate[bot]
2d4702979b dependency: update dependency webdriver to v9.11.0 (#31315)
* fix(deps): update dependency webdriver to v9.11.0

* empty commit

* add changelog entry

* run some more tests

* add a comment for the postinstall running in the server

* bump circleci cache

* put patch-package back

* bump cache

* chore: update patches and add tests in test static assets

* fix changelog

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: AtofStryker <bglesias@gmail.com>
2025-03-27 13:14:43 -04:00
renovate[bot]
18e3698ae1 chore(deps): update dependency snap-shot-it to v7.9.10 (#31386)
* chore(deps): update dependency snap-shot-it to v7.9.10

* empty commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-27 10:53:52 -04:00
Jennifer Shehane
835025da36 chore: fix changelog duplication (#31396) 2025-03-27 10:26:00 -04:00
Cecil King
33cf18e409 fix: allow version 10 of the babel-loader peer dependency (#31218)
* fix: allow version 10 of the babel-loader peer dependency

* empty commit

* adjust babel-loader dependency

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

* upgrade babel-loader version

* chore: test babel loader

* chore: add changelog entry (only necessary due to touching the packages directory)

* chore: add changelog entry (only necessary due to touching the packages directory)

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-03-26 14:57:38 -04:00
Bill Glesias
45da70a4e2 fix: set cdpRequestWillBeSentReceivedTimestamp within firefox bidi to avoid downstream impacts (#31377)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-26 14:03:23 -04:00
Cacie Prins
5d8bf8570a misc: automation implementation / prerequisite for cy.press() (#31366)
* cdp command impl for tab dispatch

* misc: add automation command to cdp for forthcoming tab key

* changelog

* skip non chromium browsers for press() driver test

* fix test

* misc: bidi automation impl for key press

* amend types

* log, but do not fail, if key:press is not supported

* rm extraneous debugs

* rm more debug

* changelog

* comments

* revert to keyDown from rawKeyDown, remove delay

* expand changelog to include bidi

* changelog

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-26 11:42:59 -04:00
Jennifer Shehane
5e8e8d3f81 dependency: bump win-version-info from 5.0.1 to 6.0.1 (#31358)
* dependency: bump win-version-info from 5.0.1 to 6.0.1

* changelog entry

* run in more workflows

* Most changelog entry
2025-03-26 10:20:59 -04:00
Jennifer Shehane
c460bfc4a4 misc: Update error message around injectDocumentDomain to mention future version of Cypress instead of Cypress 15 (#31375)
* misc: Update error message around injectDocumentDomain to mention future version of Cypress instead of Cypress 15

* changelog entry
2025-03-26 10:18:00 -04:00
Bill Glesias
a9ad8b136f chore: bump release date as app release is delayed (#31380) 2025-03-25 20:33:33 -04:00
Bill Glesias
e05287d9a4 chore: release 14.2.1 (#31374) 2025-03-25 13:22:09 -04:00
Bill Glesias
7bdf1e9870 fix: change default options for sourceMaps inside WBIP (#31270)
* fix: change default options for sourceMaps inside WBIP

* add better error handling to @cypress/webpack-preprocessor when using typescript 5

* chore: update snapshots for protocol spec

* move options downstream into @cypress/webpack-preprocessor and see what fails

* address comments from code review
2025-03-24 16:34:48 -04:00
Jennifer Shehane
4670b13053 misc: display AUT bar in dark mode (#31360)
* misc: display AUT bar in dark mode

* changelog entry

* a few missed updates

* Fix the playground tests

* Update tests to be more sensible

* Ensure bg-white is not set for the runner ui bakcground of aut
2025-03-24 15:52:17 -04:00
Bill Glesias
fc964b94b8 fix: remove prerequests from automation client when bidi continue request errors (#31328)
* fix: make sure to remove prerequests when bidi interceptor is removed and requests are still in flight from the previous spec/tab [run ci]

* fix changelog
2025-03-20 22:38:24 -04:00
renovate[bot]
a566242f7f dependency: update dependency semver to v7.7.1 (#31341)
* fix(deps): update dependency semver to v7.7.1

* changelog

* caret dep

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-20 13:58:02 -04:00
renovate[bot]
74ad53ab96 dependency: update dependency resolve to v1.22.10 (#31333)
* fix(deps): update dependency resolve to v1.22.10

* fix(deps): update dependency resolve to v1.22.10

* caret dep for resolve

* changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-20 11:29:01 -04:00
Sam Tsai
b303c4c6c5 fix: pass --no-experimental-require-module for node 20.19.0+ versions (#31308)
* fix: add new node 20 version

* docs: improve comments and update test node version

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-19 16:25:08 -04:00
renovate[bot]
e0efbd8599 dependency: update dependency micromatch to v4.0.8 (#31330)
* fix(deps): update dependency micromatch to v4.0.8

* caret dep

* changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-19 16:23:53 -04:00
Jennifer Shehane
60069bbd60 dependency: bump cross-fetch to 4.1.0 (#31327)
* dependency: bump cross-fetch to 4.1.0

* changelog entry
2025-03-19 13:07:30 -04:00
renovate[bot]
f35da771c8 dependency: update dependency @cypress/request to ^3.0.8 (#31311)
* fix(deps): update dependency @cypress/request to ^3.0.8

* add changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-18 12:36:57 -04:00
Alex Schwartz
9d66bf5c45 dependency: update dependency systeminformation to 5.22.8 (#31281)
* fix: nodejs 22 deprecation when building

* Update CHANGELOG.md

* update other locations (#11)

* Update package.json

* Update package.json

* Update yarn.lock

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update cli/CHANGELOG.md

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-03-14 10:46:03 -04:00
Ryan Manuel
0daf7e639f chore: support studio lifecycle in protocol (#31239)
* update url with studio params

* updates

* spec updates

* adding tests

* updating changelog

* skip adding visit log during start

* update url support

* cy origin tests

* fix tests

* updates

* update origin test

* chore: support studio lifecycle in protocol

* merge changes

* fix types

* fix tests

* fix tests

* fix tests

* fix more tests

* fix more tests

* fix more tests

* fix test

* fix bugs

* fix tests

* attempt to fix test

* further fixes

* improve cloud studio enablement

* refactoring

* remove new dom link

* fix last test

* Update packages/app/cypress/e2e/studio/studio.cy.ts

* Update packages/server/lib/project-base.ts

* Update packages/proxy/lib/http/request-middleware.ts

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

* PR comments

* fix build

* fix build

* update

* Update packages/server/lib/project-base.ts

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

* fix unit test

* rework save logic

---------

Co-authored-by: Matthew Schile <mschile@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-13 20:30:29 -05:00
Bill Glesias
27d8fb0468 chore: release 14.2.0 (#31271) 2025-03-12 13:13:58 -04:00
Jennifer Shehane
830dacb51c misc: Move browser dropdown within AUT URL bar (#31216)
* 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!

* misc: begin reworking the browser dropdown

* Update UIs for dropdowns to work right in both modes

* changelog entry

* remove assertions about browser dropdown being visible in tiny widths

* update changelog entry

* Add zindex of 5 for the aut-panel so it doesn't ever cover the reporter-panel

* Just pass zindex to style - apparently tailwind css option doesn't want to work........

* Update aut height to new height

* Move zindex to input instead of main aut-url container to prevent screenshotting from breaking.

* Add a comment, maybe it will help someone one day

* set z-index back to 51 to be above studio URL panel, but runner to 60 to be above that also

* zindex

* more z index changes!!1

* revert the resizable panel changes - make zindex of input dynamic!

* Fix browser dropdown in AutomationMissing UI
2025-03-11 09:44:20 -04:00
Matt Schile
b9103af3fd misc: (studio) add support for url routing (#31205)
* update url with studio params

* updates

* spec updates

* adding tests

* updating changelog

* skip adding visit log during start

* update url support

* cy origin tests

* fix tests

* updates

* update origin test

* add a wait

* update

* pr updates

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-10 21:36:18 -06:00
Jennifer Shehane
667e319638 feat: Add Cypress.stop types to document its availability more publicly (#31225)
* misc: Add types for Cypress.stop

* Add changelog entry

* fix title of section in changelog
2025-03-07 12:43:12 -05:00
Jennifer Shehane
6bd522bb74 misc: convert server/lib/modes files to ts + add more cli options to Cloud terminal error outputs (#31211)
* chore: convert server/lib/modes files to ts

* update snapshots

* add back require

* fix call to errors.warning

* Add changelog entry.
2025-03-06 12:39:24 -05:00
renovate[bot]
78b372ae00 dependency: update dependency simple-git to v3.27.0 (#31198)
* fix(deps): update dependency simple-git to v3.27.0

* set dependency to caret

* yarn lock

* changelog entry

* new day, new cache

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-02-28 16:01:25 -05:00