Skip to content

Commit f404b5e

Browse files
committed
elevate note and treat as text
1 parent be80e80 commit f404b5e

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

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

Lines changed: 9 additions & 13 deletions
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
@@ -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

0 commit comments

Comments
 (0)