* Update cy.press signature to be Chainable
Since it's added via `Commands.add`, I believe `cy.press` should have a return type of `Chainable<null>` rather than `void`
* Update first_spec.cy.js
Updated test for chainable
* use addAll rather than add to avoid type check
* fix unit test
* Add cli entry
* update changelog
---------
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* 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>
* 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>
* 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
* 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
* 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>
* 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
* misc: Add some missing types + Convert js driver/query tests to ts
* changelog entry
* reuse partial
* Update cli/CHANGELOG.md
* Update call to querySelector to assign an identifier when checking for null
* feat: implement BiDi automation client base (without full extension cutover). [run ci]
* chore: implement suggestions from code review. [run ci]
* update error text to be in line with documentation
* address comments from code review
* address comments from code review
* make bidi, cdp, and both active protocols object enumerations to make the code easier to read
* address additional comments from code review
* fix errors from refactor
* update firefox warning
* misc: update a few cypress types + convert internal driver tests to TypeScript
* Update packages/driver/cypress/e2e/commands/actions/scroll.cy.ts
* add changelog entry
* bump circle cache?
* More type fixes
* fix some more
* Make the values numbers
* Update cli/CHANGELOG.md
Co-authored-by: Bill Glesias <bglesias@gmail.com>
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* chore: convert dimensions js to ts
* Update all $el params to accept any
* try jQuery<HTMLElement> for $el type
* update dimensions.offset call to handle possibly being undefined.
* change how user invocation stacks are prepared, for more flexibility
* build darwin and persist artifacts for this branch
* changelog
* add implicit dependencies to @packages/extension so things build in the right order
* note about binary testing for error_utils and stack_utils
* changelog
* Update packages/driver/test/unit/cypress/err_utils.spec.ts
Co-authored-by: Bill Glesias <bglesias@gmail.com>
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* fix: actions not running in after hooks that fail
* empty commit
* Add tests for actionability retries for click and type
* empty commit
* add changelog entry
* Remove done calls in tests
* changelog update to be more specific
* dependency: bump mime dep
* changelog entry
* yarn lock update
* add pending to changelog
* index on mime-dep-update: ccff6a976e add pending to changelog
* index on mime-dep-update: ccff6a976e add pending to changelog
* another removal of package
* changelog update
* index on mime-dep-update: ccff6a976e add pending to changelog
* whoops wrong issue
* fix test that was just....wrong
* Revert "fix test that was just....wrong"
This reverts commit 73ed5b0867.
* nvm, application/javascript is obsolete
* app/js to text/js updates
* downgrade to mime 3.0.0
* back to application/javascript
* index on mime-dep-update: 23cbb7783b Merge branch 'mime-dep-update' of https://github.com/cypress-io/cypress into mime-dep-update
* index on mime-dep-update: 23cbb7783b Merge branch 'mime-dep-update' of https://github.com/cypress-io/cypress into mime-dep-update
* index on mime-dep-update: 23cbb7783b Merge branch 'mime-dep-update' of https://github.com/cypress-io/cypress into mime-dep-update
---------
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: AtofStryker <bglesias@gmail.com>
* chore: add type linting + compilation checks to runner package
* empty commit
* A bunch of tslint fixes
* wow it is building
* Fix issue with CT not mounting correctly with comments within it
* Fix net-stubbing.ct.ts failures
* Fix tslint: disable comment
* move target into compilerOptions
* fix tslint disable comment
* update proxy-logging to undo changes
* standardize the tslint:disable comments
* fix comment
* fix the banner content not displaying and write a test for this situation
* fix ct reference
* put target to es2020
* actually set the property with replaced title
* Update packages/reporter/src/hooks/hook-model.ts
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* Fix eslint/tslint settings for system-tests with vue 3
* bump CI cache
* update types/react resolution
* add return
* lint fix
* tslint disable for empty blocks
* exclude dist files from ts linting
* update to exclude all dist folder
* exclude dist file
* change to await
* fix line numbers of stack trace with linting updating vue file
---------
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* init vitest unit test harness for @packages/driver
* unit tests with stack examples
* drop lines until __cypress/tests rather than just __cypress
* changelog
* changelog
* remove vitest globals (unnecessary) from driver tsconfig
* bump the number of junit reports expected from the unit tests job
* fix ts-check error in scroll.ts
* fix type definition for getInvocationDetails
* rm packageManager key on package.json
* remove junit reporter, as script that verifies result does not recognize it as valid
* change @ts-expect-error to @ts-ignore for .scroll, as this ts check is apparently flaky
* set expected mocha result back to 19
* add ct style stacks for cy in cy ct tests
* re-enable junit reporter, update mocha result verification to be more lenient about the order of xml fields
* persist binaries for this branch
* expect 20 junit reports again
* fix mocha v vitest verification?
* add binary system test to verify correct file paths for codepoints in protocol events
* fix invocation details system test filename
* add required config for binary tests
* build on darwin to fix binary system tests
* build linux-arm64 for this branch
* simplify binary test
* build windows binary
* rm binary system test
* Update cli/CHANGELOG.md
* remove experimentalSkipDomainInjection, add and deprecate injectDocumentDomain
* remove experimentalSkipDomainInjection, add injectDocumentDomain
* begin rethreading domain injection
* complete document domain transition
* move some cookie specs to separate test run
* origin and privileged commands with default docdom inject
* fix privileged channel when injecting document domain
* rm unnecessary .getOrigin abstraction in cors lib
* move remote-states in prep for refactor Replace Conditional with Polymorphism
* refactor remote states to strategy pattern
* cookie commands work as expected w cross origin bridge on different origins
* some origin tests updated
* run tests with document domain enabled
* run tests actually
* use correct config, swap conditional
* check-ts
* inject documetn domain for webkit tests
* do not exec injectDocumetnDomain in parallel
* fix ServerBase construction in tests to include cfg now
* pass cfg to ServerBase
* improved integration tests
* remove document domain checks for all server integration specs - will add injectDocumentDomain cases
* tests for injecting document domain when configured to
* square away server integration tests
* ensure cookies are set correctly, potentially
* errors pkg snapshots
* fix config tests
* fixing config tests
* somewhat improves tests for cors policies in packages/network
* fix ts err in server-base
* enable injectDocumentDomain for cy in cy tests
* fix Policy type ref
* refactor cypress-schematic ct spec to be less prone to timeouts
* run vite-dev-server tests with injectDocumentDomain
* rm document domain assertion from page_loading system test
* add system tests that test with injectDocumentDomain and others that test with cy.origin
* fix results_spec snapshot
* update experimentalSkipDomainInjection system test
* different behavior for certain net_stubbing tests based on injectDocumentDomain or not
* fix ts
* extract origin key logic from remote states, for now
* move server-base and response-middleware over to new pattern
* WIP - reentry
* fix build, remove console.log
* check-ts
* fix spec frame injection
* remove injection for localhost
* mostly fix vite-dev-server app integration tests
* fix codeframe in certain cases in chrome
* drop internal stack frames from stacks intended for determining code frame data
* some improvements to vite ct error codeframes
* fix proxy unit tests to use document domain injection util class
* rm .only
* fix all vite ct error specs
* rm console.log
* slight refactor to util class to make easier to test
* fix refactor - missing rename in files.js
* several tests do not set testingtype in config, so just check against component instead of checking for e2e
* revert changes to getInvocationDetails to see if that breaks tests
* re-enable stack stripping in invocation details for chrome
* new snapshots with more accurate invocation details
* test for same-site cross-origin cookie behavior
* ignore window.top ts errors
* revert forcing injectDocumentDomain in vite-dev-server cy config
* fix normalized whitespace for firefox "loading_failed" error
* always trim trailing wsp from stack before appending additional content
* force normalization of whitespace to three \n when adding additional stack details
* normalize wsp between stack and additional stack to "\n \n" in firefox
* remove stack_utils attempt at normalizing wsp
* various cleanup: remove commented console logs, add more detailed comments
* add on links to error messages
* remove experimentalSkipDomainInjection from exported type defs
* Update system-tests/test/experimental_skip_domain_injection_spec.ts
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* Update packages/driver/cypress/e2e/e2e/origin/cookie_misc.cy.ts
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* no need to coerce a boolean value to a booleanc
* export base config from primary cypress config in driver for use in inject-document-domain test subset
* lift experimentalSkipDomainInjection breaking option to root
* rollback config/options changes
* rm invalid comment
* use hostname instead of origin to create cookie from automation cookie
* clarify stack regex in results_spec
* lint
* take a stab at the changelog entries for this
* Update cli/CHANGELOG.md
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* Update cli/CHANGELOG.md
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* reenable locally-failing test
* changelog
* snapshot updatesfor experimental skip domain injection err msg
* remove packageManager declaration in package.json
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>