Skip to content

Commit 346e801

Browse files
AtofStrykerjennifer-shehanegithub-actions[bot]cypress-bot[bot]cacieprins
authored
chore: merge develop into cypress release 15 branch (#31464)
* 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 * chore: updating v8 snapshot cache (#31424) Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * chore: updating v8 snapshot cache (#31425) Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * chore: updating v8 snapshot cache (#31426) Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * chore: migrates plugin system test to a v3 extension (#31434) * 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 <[email protected]> Co-authored-by: Cacie Prins <[email protected]> * 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................ * dependency: update server to mocha 7.2.0 (#31432) * dependency: update server to mocha 7.2.0 * Add PR to changelog * chore: updating v8 snapshot cache (#31437) Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * chore: updating v8 snapshot cache (#31438) Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * chore: updating v8 snapshot cache (#31439) Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * 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 <[email protected]> * 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 * internal: (studio) make the protocol database accessible to studio (#31443) * internal: (studio) make the protocol database accessible to studio * PR comment * 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 <[email protected]> * 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 * 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 * chore: updating v8 snapshot cache (#31460) Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * chore: updating v8 snapshot cache (#31462) Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * chore: updating v8 snapshot cache (#31461) Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * 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 <[email protected]> * docs: update contributing requirements for corepack (#31463) * chore: remove `du` check (#31465) * chore: use different args for `du` in win * rm du command for build * chore: release 14.3.0 (#31467) --------- Co-authored-by: Jennifer Shehane <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> Co-authored-by: Cacie Prins <[email protected]> Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com> Co-authored-by: Ryan Manuel <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mike McCready <[email protected]>
1 parent 25f0fd0 commit 346e801

File tree

96 files changed

+1908
-1273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1908
-1273
lines changed

.circleci/cache-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Bump this version to force CI to re-create the cache from scratch.
22

3-
3-18-2024:4:25
3+
4-7-2025-v1

.circleci/workflows.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2.1
22

3-
chrome-stable-version: &chrome-stable-version "134.0.6998.165"
4-
chrome-beta-version: &chrome-beta-version "135.0.7049.41"
5-
firefox-stable-version: &firefox-stable-version "136.0.3"
3+
chrome-stable-version: &chrome-stable-version "135.0.7049.52"
4+
chrome-beta-version: &chrome-beta-version "136.0.7103.17"
5+
firefox-stable-version: &firefox-stable-version "137.0"
66

77
orbs:
88
browser-tools: circleci/[email protected]
@@ -38,7 +38,7 @@ mainBuildFilters: &mainBuildFilters
3838
- /^release\/\d+\.\d+\.\d+$/
3939
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
4040
- 'update-v8-snapshot-cache-on-develop'
41-
- 'renovate/webdriverio-monorepo'
41+
- 'chore/fix_react_18_deprecation_warnings'
4242

4343
# usually we don't build Mac app - it takes a long time
4444
# but sometimes we want to really confirm we are doing the right thing
@@ -49,7 +49,7 @@ macWorkflowFilters: &darwin-workflow-filters
4949
- equal: [ develop, << pipeline.git.branch >> ]
5050
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
5151
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
52-
- equal: [ 'renovate/webdriverio-monorepo', << pipeline.git.branch >> ]
52+
- equal: [ 'chore/fix_react_18_deprecation_warnings', << pipeline.git.branch >> ]
5353
- matches:
5454
pattern: /^release\/\d+\.\d+\.\d+$/
5555
value: << pipeline.git.branch >>
@@ -60,7 +60,7 @@ linuxArm64WorkflowFilters: &linux-arm64-workflow-filters
6060
- equal: [ develop, << pipeline.git.branch >> ]
6161
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
6262
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
63-
- equal: [ 'renovate/webdriverio-monorepo', << pipeline.git.branch >> ]
63+
- equal: [ 'chore/fix_react_18_deprecation_warnings', << pipeline.git.branch >> ]
6464
- matches:
6565
pattern: /^release\/\d+\.\d+\.\d+$/
6666
value: << pipeline.git.branch >>
@@ -83,7 +83,8 @@ windowsWorkflowFilters: &windows-workflow-filters
8383
- equal: [ develop, << pipeline.git.branch >> ]
8484
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
8585
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
86-
- equal: [ 'renovate/webdriverio-monorepo', << pipeline.git.branch >> ]
86+
- equal: [ 'chore/fix_react_18_deprecation_warnings', << pipeline.git.branch >> ]
87+
- equal: [ 'cacie/fix-du', << pipeline.git.branch >> ]
8788
- matches:
8889
pattern: /^release\/\d+\.\d+\.\d+$/
8990
value: << pipeline.git.branch >>
@@ -157,7 +158,7 @@ commands:
157158
name: Set environment variable to determine whether or not to persist artifacts
158159
command: |
159160
echo "Setting SHOULD_PERSIST_ARTIFACTS variable"
160-
echo 'if ! [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "bump-win-version-info" ]]; then
161+
echo 'if ! [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "chore/fix_react_18_deprecation_warnings" ]]; then
161162
export SHOULD_PERSIST_ARTIFACTS=true
162163
fi' >> "$BASH_ENV"
163164
# You must run `setup_should_persist_artifacts` command and be using bash before running this command
@@ -497,9 +498,9 @@ commands:
497498
default: cy-doc
498499
steps:
499500
- run: pwd
500-
- run:
501-
name: print global yarn cache path
502-
command: echo $(yarn global bin)
501+
##- run:
502+
## name: print global yarn cache path and size
503+
## command: du -sh $(yarn global bin)
503504
- run:
504505
name: print yarn version
505506
command: yarn versions
@@ -776,6 +777,7 @@ commands:
776777
- windows-install-chrome:
777778
browser: <<parameters.browser>>
778779
- run:
780+
name: Run <<parameters.package>> UI tests
779781
command: |
780782
echo Current working directory is $PWD
781783
echo Total containers $CIRCLE_NODE_TOTAL

.yarnclean

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,4 @@ wercker.yml
4444
.flowconfig
4545
.documentup.json
4646
.yarn-metadata.json
47-
.travis.yml
48-
49-
# misc
50-
*.md
47+
.travis.yml

CONTRIBUTING.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ We try to tag all issues with a `pkg/` or `npm/` tag describing the appropriate
201201
You must have the following installed on your system to contribute locally:
202202

203203
- [`Node.js`](https://nodejs.org/en/) (See the root [.node-version](.node-version) file for the required version. You can find a list of tools on [node-version-usage](https://github.com/shadowspawn/node-version-usage) to switch the version of [`Node.js`](https://nodejs.org/en/) based on [.node-version](.node-version).)
204-
- [`Yarn v1 Classic`](https://yarnpkg.com/en/docs/install). If you have [`Node.js`](https://nodejs.org/en/) experimental [corepack](https://nodejs.org/docs/latest/api/corepack.html) enabled, installation of the Yarn package manager will be handled automatically. Attempting to install Yarn globally with npm will fail if [corepack](https://nodejs.org/docs/latest/api/corepack.html) is enabled.
204+
- [`Yarn v1 Classic`](https://yarnpkg.com/en/docs/install) (See also [Corepack](#corepack) below.)
205205
- [`python`](https://www.python.org/downloads/) (since we use `node-gyp`. See their [repo](https://github.com/nodejs/node-gyp) for Python version requirements.)
206206

207207
#### Debian/Ubuntu
@@ -216,6 +216,10 @@ For Ubuntu `24.04` and above, refer also to the [Ubuntu 24.04 Release notes](htt
216216

217217
Currently no additional instructions for installation requirements.
218218

219+
#### Corepack
220+
221+
The Cypress repo is compatible with Corepack and contains a `packageManager` field in the root [package.json](./package.json) file to automatically install Yarn. Cypress does not however require you to enable Corepack. It is classed as experimental and not suitable for production by the Node.js organization. Refer to the repo [corepack](https://github.com/nodejs/corepack#readme) for instructions, known issues and workarounds.
222+
219223
### Getting Started
220224

221225
The project utilizes [yarn workspaces](https://yarnpkg.com/lang/en/docs/workspaces/) and leverages [lerna](https://lerna.js.org/) to orchestrate running within the context of one or more packages. While it is not as important to understand lerna or yarn workspaces, it **is important** to note that running scripts or installing new dependencies should always happen from the repo's root directory.

cli/CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ _Released 07/01/2025 (PENDING)_
88
- Removed support for Node.js 18 and Node.js 23. Addresses [#31302](https://github.com/cypress-io/cypress/issues/31302).
99
- Removed support for [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol) with the [firefox](https://www.mozilla.org/) browser. Addresses [#31189](https://github.com/cypress-io/cypress/issues/31189).
1010

11-
## 14.2.2
11+
## 14.3.0
1212

13-
_Released 4/8/2025 (PENDING)_
13+
_Released 4/8/2025_
14+
15+
**Features:**
16+
17+
- The [`cy.press()`](https://on.cypress.io/api/press) command is now available. It supports dispatching native Tab keyboard events to the browser. Addresses [#31050](https://github.com/cypress-io/cypress/issues/31050). Addresses [#299](https://github.com/cypress-io/cypress/issues/299). Addressed in [#31398](https://github.com/cypress-io/cypress/pull/31398).
1418

1519
**Bugfixes:**
1620

@@ -25,7 +29,7 @@ _Released 4/8/2025 (PENDING)_
2529

2630
**Dependency Updates:**
2731

28-
- Upgraded `mocha` from `7.0.1` to `7.1.2`. Addressed in [#31416](https://github.com/cypress-io/cypress/pull/31416).
32+
- Upgraded `mocha` from `7.0.1` to `7.2.0`. Addressed in [#31423](https://github.com/cypress-io/cypress/pull/31423) and [#31432](https://github.com/cypress-io/cypress/pull/31432).
2933
- Upgraded `webdriver` from `9.7.3` to `9.11.0`. Addressed in [#31315](https://github.com/cypress-io/cypress/pull/31315).
3034
- Upgraded `win-version-info` from `5.0.1` to `6.0.1`. Addressed in [#31358](https://github.com/cypress-io/cypress/pull/31358).
3135

cli/types/cypress.d.ts

Lines changed: 108 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -578,99 +578,7 @@ declare namespace Cypress {
578578
*/
579579
stop(): void
580580

581-
Commands: {
582-
/**
583-
* Add a custom command
584-
* @see https://on.cypress.io/api/commands
585-
*/
586-
add<T extends keyof Chainable>(name: T, fn: CommandFn<T>): void
587-
588-
/**
589-
* Add a custom parent command
590-
* @see https://on.cypress.io/api/commands#Parent-Commands
591-
*/
592-
add<T extends keyof Chainable>(name: T, options: CommandOptions & { prevSubject: false }, fn: CommandFn<T>): void
593-
594-
/**
595-
* Add a custom child command
596-
* @see https://on.cypress.io/api/commands#Child-Commands
597-
*/
598-
add<T extends keyof Chainable, S = any>(name: T, options: CommandOptions & { prevSubject: true }, fn: CommandFnWithSubject<T, S>): void
599-
600-
/**
601-
* Add a custom child or dual command
602-
* @see https://on.cypress.io/api/commands#Validations
603-
*/
604-
add<T extends keyof Chainable, S extends PrevSubject>(
605-
name: T, options: CommandOptions & { prevSubject: S | ['optional'] }, fn: CommandFnWithSubject<T, PrevSubjectMap[S]>,
606-
): void
607-
608-
/**
609-
* Add a custom command that allows multiple types as the prevSubject
610-
* @see https://on.cypress.io/api/commands#Validations#Allow-Multiple-Types
611-
*/
612-
add<T extends keyof Chainable, S extends PrevSubject>(
613-
name: T, options: CommandOptions & { prevSubject: S[] }, fn: CommandFnWithSubject<T, PrevSubjectMap<void>[S]>,
614-
): void
615-
616-
/**
617-
* Add one or more custom commands
618-
* @see https://on.cypress.io/api/commands
619-
*/
620-
addAll<T extends keyof Chainable>(fns: CommandFns): void
621-
622-
/**
623-
* Add one or more custom parent commands
624-
* @see https://on.cypress.io/api/commands#Parent-Commands
625-
*/
626-
addAll<T extends keyof Chainable>(options: CommandOptions & { prevSubject: false }, fns: CommandFns): void
627-
628-
/**
629-
* Add one or more custom child commands
630-
* @see https://on.cypress.io/api/commands#Child-Commands
631-
*/
632-
addAll<T extends keyof Chainable, S = any>(options: CommandOptions & { prevSubject: true }, fns: CommandFnsWithSubject<S>): void
633-
634-
/**
635-
* Add one or more custom commands that validate their prevSubject
636-
* @see https://on.cypress.io/api/commands#Validations
637-
*/
638-
addAll<T extends keyof Chainable, S extends PrevSubject>(
639-
options: CommandOptions & { prevSubject: S | ['optional'] }, fns: CommandFnsWithSubject<PrevSubjectMap[S]>,
640-
): void
641-
642-
/**
643-
* Add one or more custom commands that allow multiple types as their prevSubject
644-
* @see https://on.cypress.io/api/commands#Allow-Multiple-Types
645-
*/
646-
addAll<T extends keyof Chainable, S extends PrevSubject>(
647-
options: CommandOptions & { prevSubject: S[] }, fns: CommandFnsWithSubject<PrevSubjectMap<void>[S]>,
648-
): void
649-
650-
/**
651-
* Overwrite an existing Cypress command with a new implementation
652-
* @see https://on.cypress.io/api/commands#Overwrite-Existing-Commands
653-
*/
654-
overwrite<T extends keyof Chainable>(name: T, fn: CommandFnWithOriginalFn<T>): void
655-
656-
/**
657-
* Overwrite an existing Cypress command with a new implementation
658-
* @see https://on.cypress.io/api/commands#Overwrite-Existing-Commands
659-
*/
660-
overwrite<T extends keyof Chainable, S extends PrevSubject>(name: T, fn: CommandFnWithOriginalFnAndSubject<T, PrevSubjectMap[S]>): void
661-
662-
/**
663-
* Add a custom query
664-
* @see https://on.cypress.io/api/custom-queries
665-
*/
666-
addQuery<T extends keyof Chainable>(name: T, fn: QueryFn<T>): void
667-
668-
/**
669-
* Overwrite an existing Cypress query with a new implementation
670-
* @see https://on.cypress.io/api/custom-queries
671-
*/
672-
overwriteQuery<T extends keyof Chainable>(name: T, fn: QueryFnWithOriginalFn<T>): void
673-
}
581+
Commands: Commands
674582

675583
/**
676584
* @see https://on.cypress.io/cookies
@@ -775,6 +683,9 @@ declare namespace Cypress {
775683
*/
776684
Keyboard: {
777685
defaults(options: Partial<KeyboardDefaultsOptions>): void
686+
Keys: {
687+
TAB: 'Tab',
688+
},
778689
}
779690

780691
/**
@@ -829,6 +740,100 @@ declare namespace Cypress {
829740
onSpecWindow: (window: Window, specList: string[] | Array<() => Promise<void>>) => void
830741
}
831742

743+
interface Commands {
744+
/**
745+
* Add a custom command
746+
* @see https://on.cypress.io/api/commands
747+
*/
748+
add<T extends keyof Chainable>(name: T, fn: CommandFn<T>): void
749+
750+
/**
751+
* Add a custom parent command
752+
* @see https://on.cypress.io/api/commands#Parent-Commands
753+
*/
754+
add<T extends keyof Chainable>(name: T, options: CommandOptions & { prevSubject: false }, fn: CommandFn<T>): void
755+
756+
/**
757+
* Add a custom child command
758+
* @see https://on.cypress.io/api/commands#Child-Commands
759+
*/
760+
add<T extends keyof Chainable, S = any>(name: T, options: CommandOptions & { prevSubject: true }, fn: CommandFnWithSubject<T, S>): void
761+
762+
/**
763+
* Add a custom child or dual command
764+
* @see https://on.cypress.io/api/commands#Validations
765+
*/
766+
add<T extends keyof Chainable, S extends PrevSubject>(
767+
name: T, options: CommandOptions & { prevSubject: S | ['optional'] }, fn: CommandFnWithSubject<T, PrevSubjectMap[S]>,
768+
): void
769+
770+
/**
771+
* Add a custom command that allows multiple types as the prevSubject
772+
* @see https://on.cypress.io/api/commands#Validations#Allow-Multiple-Types
773+
*/
774+
add<T extends keyof Chainable, S extends PrevSubject>(
775+
name: T, options: CommandOptions & { prevSubject: S[] }, fn: CommandFnWithSubject<T, PrevSubjectMap<void>[S]>,
776+
): void
777+
778+
/**
779+
* Add one or more custom commands
780+
* @see https://on.cypress.io/api/commands
781+
*/
782+
addAll<T extends keyof Chainable>(fns: CommandFns): void
783+
784+
/**
785+
* Add one or more custom parent commands
786+
* @see https://on.cypress.io/api/commands#Parent-Commands
787+
*/
788+
addAll<T extends keyof Chainable>(options: CommandOptions & { prevSubject: false }, fns: CommandFns): void
789+
790+
/**
791+
* Add one or more custom child commands
792+
* @see https://on.cypress.io/api/commands#Child-Commands
793+
*/
794+
addAll<T extends keyof Chainable, S = any>(options: CommandOptions & { prevSubject: true }, fns: CommandFnsWithSubject<S>): void
795+
796+
/**
797+
* Add one or more custom commands that validate their prevSubject
798+
* @see https://on.cypress.io/api/commands#Validations
799+
*/
800+
addAll<T extends keyof Chainable, S extends PrevSubject>(
801+
options: CommandOptions & { prevSubject: S | ['optional'] }, fns: CommandFnsWithSubject<PrevSubjectMap[S]>,
802+
): void
803+
804+
/**
805+
* Add one or more custom commands that allow multiple types as their prevSubject
806+
* @see https://on.cypress.io/api/commands#Allow-Multiple-Types
807+
*/
808+
addAll<T extends keyof Chainable, S extends PrevSubject>(
809+
options: CommandOptions & { prevSubject: S[] }, fns: CommandFnsWithSubject<PrevSubjectMap<void>[S]>,
810+
): void
811+
812+
/**
813+
* Overwrite an existing Cypress command with a new implementation
814+
* @see https://on.cypress.io/api/commands#Overwrite-Existing-Commands
815+
*/
816+
overwrite<T extends keyof Chainable>(name: T, fn: CommandFnWithOriginalFn<T>): void
817+
818+
/**
819+
* Overwrite an existing Cypress command with a new implementation
820+
* @see https://on.cypress.io/api/commands#Overwrite-Existing-Commands
821+
*/
822+
overwrite<T extends keyof Chainable, S extends PrevSubject>(name: T, fn: CommandFnWithOriginalFnAndSubject<T, PrevSubjectMap[S]>): void
823+
824+
/**
825+
* Add a custom query
826+
* @see https://on.cypress.io/api/custom-queries
827+
*/
828+
addQuery<T extends keyof Chainable>(name: T, fn: QueryFn<T>): void
829+
830+
/**
831+
* Overwrite an existing Cypress query with a new implementation
832+
* @see https://on.cypress.io/api/custom-queries
833+
*/
834+
overwriteQuery<T extends keyof Chainable>(name: T, fn: QueryFnWithOriginalFn<T>): void
835+
}
836+
832837
type CanReturnChainable = void | Chainable | Promise<unknown>
833838
type ThenReturn<S, R> =
834839
R extends void ? Chainable<S> :
@@ -1742,6 +1747,16 @@ declare namespace Cypress {
17421747
*/
17431748
pause(options?: Partial<Loggable>): Chainable<Subject>
17441749

1750+
/**
1751+
* Send a native sequence of keyboard events: keydown & press, followed by keyup, for the provided key.
1752+
* Supported keys index the Cypress.Keyboard.Keys record.
1753+
*
1754+
* @example
1755+
* cy.press(Cypress.Keyboard.Keys.TAB) // dispatches a keydown and press event to the browser, followed by a keyup event.
1756+
* @see https://on.cypress.io/press
1757+
*/
1758+
press(key: typeof Cypress.Keyboard.Keys[keyof typeof Cypress.Keyboard.Keys], options?: Partial<Loggable & Timeoutable>): void
1759+
17451760
/**
17461761
* Get the immediately preceding sibling of each element in a set of the elements.
17471762
*

cli/types/tslint.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"jsdoc-format": false,
2525
// for now keep the Cypress NPM module API
2626
// in its own file for simplicity
27-
"no-single-declare-module": false
27+
"no-single-declare-module": false,
28+
// This is detecting necessary qualifiers as unnecessary
29+
"no-unnecessary-qualifier": false
2830
},
2931
"linterOptions": {
3032
"exclude": [

0 commit comments

Comments
 (0)