File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,15 @@ Cypress comes with its own API for creating custom commands and overwriting
7
7
existing commands. The built in Cypress commands use the very same API that's
8
8
defined below.
9
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
+
10
19
:::info
11
20
12
21
If you want your method to have builtin
@@ -25,19 +34,6 @@ in the
25
34
26
35
:::
27
36
28
- :::caution
29
-
30
- There are two API available for adding custom commands:
31
-
32
- - [ ` Cypress.Commands.add() ` ] ( #Syntax ) - use to add a custom command to use when
33
- writing tests
34
- - [ ` Cypress.Command.overwrite() ` ] ( #Overwrite-Existing-Commands ) - use to
35
- override an existing built-in Cypress command or reserved internal function.
36
- ** Caution:** this overrides it for Cypress as well and could impact how
37
- Cypress behaves.
38
-
39
- :::
40
-
41
37
## Syntax
42
38
43
39
``` javascript
You can’t perform that action at this time.
0 commit comments