* Add localSettings field to OpenBrowser query
* Add wasBrowserSetInCLI as OpenBrowserList prop
* Emit launch on mount if --browser was passed
* Add entry to cli changelog
* Correct typo in changelog
* Add link to issue addressed
* Add pull request title
* Check if browser is already open before launch
* Moved features section to top of file
* Add reference to PR in changelog
* Correct unintended completion
* Add features to top of changelog
* Change prop name for convention
* Add isValidBrowser
checkes whether a cliBrowser is valid or not and
returns a boolean
* Add isValidBrowser to schema
* Use isValid browser
creates a function launchIfBrowserSetInCli that
will launch the browser if a valid browser flag
was passed to the cli
* Add to changelog.md
* Add global launch count to keep track project launch
* Make global count available to the launchPad
* Add description for globalLaunchCount
* Add globalCounnt to schema
* Remove unused import and remove unused prop
* Use launch function
* Import document and use query
* Add to changelog
* Add to existing features section
* Add to changelog
* Update changelog.md
* Add setter for launchCount and add tests
* Update changelog
* Remove extra bugfix title
* Update changelog
* Update changelog
* Update changelog
* Update changelog
* Update Changelog
* Update changelog
* Update Changelog
* Update changelog
* Fix changelog for line break error
* Update changelog
* Refactor to create single field for launching browser
* Update schema
* Refactor function to make use of single field
* Change launch count in beforeEach hook instead
* Clean up await in function
* Update changelog
* Add additional optional chaining for resiliency
* Use more precise browser launching query to fix silent bug
* Assert that launchProject hasn't been called when browser not found
* Update changelog
* Update cli/CHANGELOG.md
---------
Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* add failing system binary test [run ci]
* fix: leverage the --no-experimental-detect-module when node 22.7.0 and above is detected [run ci]
* Update cli/CHANGELOG.md
* use environment variable to mock stubbing out of typescript install in order to unit test as mocking the module seems near impossible to do correctly given the context [run ci]
* update changelog to include mention of experimental-detect-module
* make sure node version is set before comparing versions
* Revert "update changelog to include mention of experimental-detect-module"
This reverts commit 5ef8ef0e4c.
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* correctly determine current browser family from cy config in app event manager
* changelog
* rm unnecessary ts-ignore
* add type declaration to catch improper params to isBrowserFamily
* add check for msMatchesSelector so jquery does not add unload listener in chrome
add check for msMatchesSelector in jquery patch so unload is only added in ie
* run windows workflow on this branch
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* Add changelog entry
* Update check in "_moveCursorUpOrDown" to trigger "stepUp" and "stepDown" on supported input types
* Update "validateTyping" function to validate {upArrow} and {downArrow} arguments for cy.type() for input[type=date]
* Remove "datetime" entry from valid input types
* Update chars validation for inputs that support "stepUp" and "stepDown"
* Add missing input types to dom.html
* Add tests of {upArrow} and {downArrow} for all supporting input types
* Update CHANGELOG
* Fix CHANGELOG line position
* Fix link to issue in CHANGELOG entry
* Fix typo in CHANGELOG
* Fix typo in CHANGELOG entry
* Merge develop
* Update changelog
* Add assertions for {upArrow} and {downArrow} arguments of cy.type() action that check if "change" and "input" events are triggered
* Fix changelog to include ref to issue
* Update packages/driver/cypress/e2e/commands/actions/type.cy.js
* update changelog
* Actually this is a feature release
* Fix test cases that fail on CI environment.
* Fix failing test case in type.cy.js test suite
* Refactor 'type.cy.js' test suite to skip tests for input type "month" and "week" for Webkit and Firefox browsers due to missing support
* add new release to changelog
* Prevent tests for input[type=range] from running on webkit browsers
* Update changelog
* Fix changelog
* Suppress tests for certain types of input when running on Webkit browsers
* Update use of check of webkit browser for consistency
* Update packages/driver/cypress/e2e/commands/actions/type.cy.js
* Update packages/driver/cypress/e2e/commands/actions/type.cy.js
* Update packages/driver/cypress/e2e/commands/actions/type.cy.js
* Update packages/driver/cypress/e2e/commands/actions/type.cy.js
* Update cli/CHANGELOG.md
Fix typo in CHANGELOG header
Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
---------
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
* fix: resolve files outside the project directory to the bundled directory via the directory path difference [run ci]
* update common ancestor code
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* feat: implement JIT component experiment [run ci]
* don't update the dev server unnecessarily if the run is cancelled [run ci]
* fix system test flake
* Update cli/types/cypress.d.ts
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* Update system-tests/projects/experimental-JIT/webpack/cypress/support/component-index.html
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* Update system-tests/projects/experimental-JIT/vite/cypress/support/component-index.html
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* chore: ignore node_modules for webpack dev server
* be sure to end span when throwing error
---------
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* Refactor connection logic to cri-connection
CDPConnection class instantiates a persistent event emitter, and creates
a CDP Client instance via connect(). When this client emits a disconnect
event, the CDPConnection will automatically attempt to reconnect, if the
connection was not intentionally closed and the connection is created with
the reconnect flag. It only listens to 'event' and 'disconnect' events itself,
making it easy to unsubscribe from events in the event of a disconnection,
helping ease mental load when considering potential memory leaks.
Because it uses its own persistent event emitter, event listeners added
to the CDPConnection do not need to be re-added when the client reconnects.
The CriClient itself no longer handles reconnection logic: it only reacts to
connection state changes in order to re-send failed commands and enablements
when the CDPConnection restores the CDPClient.
* changelog
* clean up event listeners before reconnecting
* changelog
* changelog
* changelog
* unit tests
* lift out of the remote-interface dir
* complete lift from /remote-interface
* further fix imports
* import
* fix disconnect behavior to make integration test pass
* Update packages/server/test/integration/cdp_spec.ts comment
* fix snapgen
* improve debug
* further debug improvements
* do not attach crash handlers on browser level cri clients, add tests
* adds bindingCalled listeners discretely, rather than relying on 'event', which does not trigger for them
* back out of main `event` listener, use discrete listeners, add integration test for service worker bindingCalled
* Revert "back out of main `event` listener, use discrete listeners, add integration test for service worker bindingCalled"
This reverts commit 4855120d42.
* changelog
* adds integration test for various ways to add cdp event listeners
* note in changelog this is a cypress server fix
* ensure enablement promises resolve after reconnect
* Update cli/CHANGELOG.md
Co-authored-by: Matt Schile <mschile@cypress.io>
---------
Co-authored-by: Matt Schile <mschile@cypress.io>
* misc: allow HiDPI Screen running wayland to use cypress window/browser
* Added changelog entry
* Fix changelog entry release date to pending
* Changed release changelog entry to actual date
* Added issue number to the changelog entry
* fix tests
* update changelog
---------
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* fix: remove IE code that is calling deprecated unload event
* Add changelog entry
* Add new logic around checks on whether to add unload handler
* missing important things here
* revert previous changes
* patch with new reqs for edge
* commit missing line
* Put back some code
* Update cli/CHANGELOG.md
* build binary to test fix
* update workflow
* fix: rethrow stalled network request error correctly
* no longer timeout from stream monitor on failure to start - allow OS to handle
* changelog
* fix system error detection
* fix test for system error throw
* Update cli/CHANGELOG.md
* Update packages/server/test/unit/cloud/network/put_fetch_spec.ts
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* rm noop try-catch
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* misc: update postinstall cypress open instructions
* add spacing line
* prepend dashes to command list
* update semver for change
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* fix: make sure string_decoder is shipped with wbip
* fix: remove pnp-webpack-plugin as it isnt needed with webpack 5
* chore: update enhanced-resolve to 5.17.0 in the yarn-lock and remove the need for you 5.15 patch as the issue we were patching was fixed in 5.16
* build binary [run ci]
* resolve to process lib installed by cypress and not the users home directory
* add changelog entry [run ci]
* build binaries [run ci]
* add binary system test
skip system test install for yarn 4 as it is an exception case [run ci]
adapt dep installer to handle yarn 4.1.1 [run ci]
rebase this out [run ci]
try this [run ci]
temp [run ci]
* update circle cache [run ci]
* fix conditional for yarn install [run ci]
* Update system-tests/projects/yarn-v4.1.1-pnp-dep-resolution/README.md
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* update from yarn 4.1.1 to 4.3.1
* update docker image name
---------
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* unit and integration tests that reproduce websocket disconnected unhandled exception
* WIP: command queue
* complete command queue and retry refactor
* cri-client changes pass tests; modify certain tests for readability and accuracy
* removes unnecessary logic from command queue, adds unit tests for command queue
* rm unused cdp state - this should be reserved for future refactor
* small edits to cri-client: better error handling, more comprehensive comments
* comment re: queue property
* rearrange cri client member methods for readability
* further edits
* Changelog
* Update cli/CHANGELOG.md
Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
* fix continuous retry on close
* split heavier debugs to verbose
---------
Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* Update jquery to 3.4.1
* refactor use of half scroll pixels with some explanation
* remove layer coords from tests + comment out non-working page& value in chromium
* Fix scrollTo calculation to match previous implementation
* add changelog entry
* patch jquery to use old calculations for width/height to avoid breaking change
* revert scrollTo changes since jquery height/width calc is patched
* Add issue to changelog
* Make it a dev patch since it's a dev dependency
* WIP - system test snapshots
* bolster error output for response body potential on upload network errors
* edit error output for readability
* changelog
* Update packages/server/lib/cloud/artifacts/upload_artifacts.ts
Co-authored-by: Matt Schile <mschile@cypress.io>
* fix partial rename
* fix system test for single upload error vs aggregate
---------
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* custom async retry for any async fn
* "proxied" fetch for PUT, throwing http errors
* cleans up put_fetch return types & parsing
* move protocol upload logic to put_protocol_artifact, rm upload_stream
* changelog
* changelog
* manually fix wsp in snapshot
* reorganizes a little, properly tests retryable logic
* removes 408 as a non-retriable error in unit test
* make expectation to be resolved more clear
* rm unnecessary type coercion
* changelog
* Update cli/CHANGELOG.md
* asyncRetry only throws Aggregate errors if there is more than one attempt
* Update packages/server/test/unit/cloud/network/is_retryable_error_spec.ts
Co-authored-by: Matt Schile <mschile@cypress.io>
* Update packages/server/test/unit/cloud/network/is_retryable_error_spec.ts
---------
Co-authored-by: Matt Schile <mschile@cypress.io>