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
77existing commands. The built in Cypress commands use the very same API that's
88defined 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
1221If you want your method to have builtin
@@ -25,19 +34,6 @@ in the
2534
2635:::
2736
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-
4137## Syntax
4238
4339``` javascript
You can’t perform that action at this time.
0 commit comments