Commit Graph

21359 Commits

Author SHA1 Message Date
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
github-actions[bot] 9155e05711 chore: updating v8 snapshot cache (#31461)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-08 09:03:57 -04:00
github-actions[bot] 34ced95ed5 chore: updating v8 snapshot cache (#31462)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-08 09:03:37 -04:00
github-actions[bot] 04126421cf chore: updating v8 snapshot cache (#31460)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-08 09:03:16 -04:00
Jennifer Shehane f16ff6cf0d chore: update snap-shot-core patch package file to match version (#31449)
* chore: update snap-shot-core patch package file to match version

* update circle cache

* experiment with removing .md from yarnclean

* add .md back to yarnclean

* bust circle cache

* remove .md files being cleaned from yarn to get around patch-package issue

* print size of cache

* try out the size of the .md

* remove md from yarnclean

* UPdate to version without removal of markdown files
2025-04-07 17:17:16 -04:00
Bill Glesias d691e19bdb chore: fix deprecation warnings and refactor react reporter to use functional components and hooks (#31284)
* chore: fix deprecation warnings and refactor react reporter to use functional components with hooks

* chore: update code to reflect feedback from code review

* fix issues with scrollIntoView() on updated component and refactor isOpen logic in collapsible to not attempt to sync state

* fix issues with tests after refactor

* see if event registration fixes windows flake
2025-04-07 10:37:19 -04:00
renovate[bot] 920128a1e5 chore(deps): update dependency patch-package to v8 (#31451)
* chore(deps): update dependency patch-package to v8

* empty commit

* add types to handle json-stable-stringify dep change

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-07 09:52:22 -04:00
Ryan Manuel 108eb7ea0d internal: (studio) make the protocol database accessible to studio (#31443)
* internal: (studio) make the protocol database accessible to studio

* PR comment
2025-04-06 15:04:26 -05:00
Cacie Prins 6bf7383dc1 refactor: lifts toPosix to its own file, removes circular dependency between stack_utils and source_map_utils (#30983)
* refactor: lifts toPosix to remove circular dependency between stack_utils and source_map_utils

* camelCase to snake_case

* rm duplicated file
2025-04-04 15:46:25 -04:00
github-actions[bot] bd67278178 chore: Update Chrome (beta) to 136.0.7103.17 (#31448)
* chore: Update Chrome (beta) to 136.0.7103.17

* empty commit

---------

Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-04 14:36:25 -04:00
github-actions[bot] 355b521537 chore: updating v8 snapshot cache (#31439)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-03 10:50:12 -04:00
github-actions[bot] e63504ee96 chore: updating v8 snapshot cache (#31438)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-03 10:49:54 -04:00
github-actions[bot] 70fe91ae17 chore: updating v8 snapshot cache (#31437)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-03 10:49:37 -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 6868b0aa37 chore: bump Firefox to 137 (#31431)
* chore: bump Firefox to 137

* use 137 version? weird.

* just kidding, major version only has 1 zero after it................
2025-04-02 14:53:27 -04:00
github-actions[bot] 17e2a26a92 chore: Update Chrome (stable) to 135.0.7049.52 (#31428)
* chore: Update Chrome (stable) to 135.0.7049.52

* empty commit

---------

Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
2025-04-02 14:53:07 -04:00
Cacie Prins f4bf3841f7 chore: migrates plugin system test to a v3 extension (#31434) 2025-04-02 13:50:24 -04:00
github-actions[bot] ef6b2e8d95 chore: updating v8 snapshot cache (#31426)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-02 10:24:40 -04:00
github-actions[bot] be5fba4b9e chore: updating v8 snapshot cache (#31425)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-02 10:24:30 -04:00
github-actions[bot] 30dadabb46 chore: updating v8 snapshot cache (#31424)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-02 10:24:23 -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
Matt Schile 79bc03e338 internal: (studio) emit cypress:created event (#31399) 2025-03-31 17:54:22 -06: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
github-actions[bot] b3cb7198b4 chore: Update v8 snapshot cache - windows (#31415)
* chore: updating v8 snapshot cache

* index on develop: f6c1237009 dependency: bump mocha from 7.1.0 to 7.1.1 (#31401)

* index on develop: f6c1237009 dependency: bump mocha from 7.1.0 to 7.1.1 (#31401)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-03-31 09:17:21 -04:00
github-actions[bot] 75e1c2d67a chore: Update v8 snapshot cache - linux (#31414)
* chore: updating v8 snapshot cache

* index on develop: f6c1237009 dependency: bump mocha from 7.1.0 to 7.1.1 (#31401)

* index on develop: f6c1237009 dependency: bump mocha from 7.1.0 to 7.1.1 (#31401)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-03-31 09:17:05 -04:00
github-actions[bot] 8c10fbb37f chore: Update v8 snapshot cache - darwin (#31413)
* chore: updating v8 snapshot cache

* index on develop: f6c1237009 dependency: bump mocha from 7.1.0 to 7.1.1 (#31401)

* index on develop: f6c1237009 dependency: bump mocha from 7.1.0 to 7.1.1 (#31401)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-03-31 09:16:47 -04: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
github-actions[bot] 14e17ae5c9 chore: updating v8 snapshot cache (#31404)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-03-27 20:43:05 -04:00
github-actions[bot] e7bdb697fd chore: updating v8 snapshot cache (#31403)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-03-27 20:42:35 -04:00
github-actions[bot] ac69b02554 chore: updating v8 snapshot cache (#31402)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-03-27 20:42:01 -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
github-actions[bot] 507dab8059 chore: Update Chrome (beta) to 135.0.7049.41 (#31393)
* chore: Update Chrome (beta) to 135.0.7049.41

* empty commit

---------

Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-27 11:42:38 -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
github-actions[bot] b60ac5ee7b chore: updating v8 snapshot cache (#31390)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-03-26 20:43:40 -04:00
github-actions[bot] 69f33b8b12 chore: updating v8 snapshot cache (#31389)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-03-26 20:43:10 -04:00
github-actions[bot] 34fa18ad48 chore: updating v8 snapshot cache (#31388)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-03-26 20:42:38 -04:00
semantic-release-bot 8d63d80771 chore: release @cypress/webpack-preprocessor-v6.0.4
[skip ci]
@cypress/webpack-preprocessor-v6.0.4
2025-03-26 15:55:45 -04:00
semantic-release-bot 4c295e0661 chore: release @cypress/webpack-batteries-included-preprocessor-v3.0.7
[skip ci]
@cypress/webpack-batteries-included-preprocessor-v3.0.7
2025-03-26 15:55:33 -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
Bill Glesias 5ecf43e45d chore: update firefox in CI from 135 to 136.0.3 (#31383) 2025-03-26 13:30:18 -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
Cacie Prins 4b140b7d35 docs: typescript migration guide (#31243)
* docs: typescript migration guide

* some edits, toc

* Link to Parameters utility type

* Update typescript.md

* Update guides/README.md

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

* Update guides/typescript.md

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

* Update guides/typescript.md

---------

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
2025-03-26 11:33:45 -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) v14.2.1 2025-03-25 20:33:33 -04:00
Jennifer Shehane b46d82bc67 chore: Update Studio Beta UI to be back to white background (#31379)
* chore: Update Studio Beta UI to be back to white background

* Add a test for the Studio header and visual snapshot

* update selector to be correct

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

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

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-03-25 19:40:00 -04:00