Skip to content

Commit 4ead5c8

Browse files
authored
Merge branch 'main' into gha/ubuntu-22
2 parents fb49e20 + 2cc9f36 commit 4ead5c8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/api/cypress-api/custom-commands.mdx

+9
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ Cypress comes with its own API for creating custom commands and overwriting
77
existing commands. The built in Cypress commands use the very same API that's
88
defined below.
99

10+
There are two API available for adding custom commands:
11+
12+
- [`Cypress.Commands.add()`](#Syntax) - use to add a custom command to use when
13+
writing tests
14+
- [`Cypress.Command.overwrite()`](#Overwrite-Existing-Commands) - use to
15+
override an existing built-in Cypress command or reserved internal function.
16+
**Caution:** this overrides it for Cypress as well and could impact how
17+
Cypress behaves.
18+
1019
:::info
1120

1221
If you want your method to have builtin

0 commit comments

Comments
 (0)