* chore: convert server/lib/plugins files from JS to TS
* consolidate error types
* update anys to unknowns where we don't know the args
* add module esports
* forgot to push this I guess
* Update so this isn't always true
* add some utils to a JS file
* remove duplicate ts file
* remove dead code
* remove module.exports = API
* chore: fix exports of run events and adapt CJS tests importing TS modules to use the default export
* fix another preprocessor default call
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* feat: extend Cypress.Keyboard.Keys and cy.press to support all keyboard keys
* Update cli/types/cypress.d.ts
* reference urls for codepoints
* type defs for expanded keys; tests
* changelog
* rm modifier keys temporarily - see WIP @ feat/key-press-modifier-keys
* Add pr link to changelog
* reduce repetition with key codes; remove unsupported capslock keycode
* only "key" special function keys in Cypress.Keyboard.Keys - otherwise, support any single character even if multiple codepoints
* do not refocus on f6 - f6 behavior keyup is indeterminate, so do not assert in that special case
* clean up keyboard key types, clean up duplicate def from merge
* various cleanup - wip - need multi-codepoint fix
* support multi-codepoint characters
* properly dispatch each part of a multipart utf-8 character
* fix import
* fix dtslint
* tscheck
* fix spacing
* Apply suggestions from code review
* changelog
* changelog
* ensure input actions are released in bidi; add test for keypress and input events for firefox
* fix keypress & input events in chrome
* consistent debug
* rm debug logging from input fixture
* some typos, changelog version
* fix toSupportedKey guard fn to properly reject non-strings
* add Space as named key, remove warnings re legacy firefox
* fix space
* support single-digit number keys
* remove support for F-keys
* add test cmd to types pkg
* rm failing vitest project config
* fix changelog
* clean up types a bit for single digit numbers
* more updates
---------
Co-authored-by: Cacie Prins <cacie@cypress.io>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
* wip: system test to reproduce
* system test for alsa stderr
* split cypress from 3rd party stderr at parent process to electron child
* rm garbage warning regexes
* fix newline behavior when parsing internal stderr
* migrate left over console errors
* clean up system test name
* fix typed import
* extract stderr splitting to separate pkg so runner can use @packages/error
* rm new err log from packherd-quire
* handle backpressure
* docs
* some unit tests & coverage for stderr-filtering
* unit tests
* no longer test regexp specific output in spawn unit tests
* filter enabled debug namespaces rather than just cypress namespacesc
* revise stream splitting et al
* try to fix v8 snapshot build??
* fix console.log assertion
* add missing eslint config
* rm unused spies
* fix regexp for optional leading wsp and ansi on debug entries
* update unit tests because sinon
* lint
* colon..
* build stderr-filtering before checking if binary exists
* adds TagStream transform stream, fixes stderr from child proc config
* add build-prod script for stderr-filtering
* changelog
* properly handle backpressure in prefixed content transform stream
* use standard tsconfig?
* better tsconfig
* Add pkgStderrFiltering to monorepoPaths
* add \"files\" manifest
* pipe all stderr to stderr when CYPRESS_INTERNAL_DEBUG_ELECTRON is enabled
* rm explicit build of stderr-filtering in check-if-binary-exists step
* ensure all dependencies of scripts/ are built before scripts are executed in the check-if-binary-exists command
* fix dev version ref
* swap logic
* add stdin piping
* fix exec name on the run-on-dependencies command to be more useful
* use correct env
* rm obsolete type refs
* simplify stderr-filtering public iface, pipe cy-in-cy stderr through filtering tx
* bust cache
* fix mocks
* fix v8-snapshot
* move stderrfiltering to dev pkg in cli
* skip integrity check in ci, if they are out of date things should fail anyway
* copypasta over a portion of stderr-filtering to cli, since cli cannot import @packages
* Delete issues.md
* rm special filtering for cy in cy
* rm too narrow rules file
---------
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* breaking: update execa from 1.0.0 to 4.1.0 which breaks the yielded cy.exec() object from yielding property code and instead yields exitCode
* fix launchpad tests on linux
* Update cli/CHANGELOG.md
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* feat: updating studio-server initialization with renderer APIs
* Updating gen types
* Adding unit tests, adjusting types
* Removing electron dep to better follow existing patterns in server; parallelizing browser state reset during studio initialization
* Deferring StudioElectron creation until Studio AI init
* Fixing unit test
* Clean up debug logs
* PR updates
* add support for studioFirstUseInstructionsDismissed
* add support for setting global or project saved state
* add get:app:state socket event
* handle getSavedState errors
* check that config is initialized
* 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>
* 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>
* 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>
* 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
* 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
* 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>
* 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>
* 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
* 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>
* 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>