We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fb49e20 + 2cc9f36 commit 4ead5c8Copy full SHA for 4ead5c8
docs/api/cypress-api/custom-commands.mdx
@@ -7,6 +7,15 @@ Cypress comes with its own API for creating custom commands and overwriting
7
existing commands. The built in Cypress commands use the very same API that's
8
defined below.
9
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
19
:::info
20
21
If you want your method to have builtin
0 commit comments