Skip to content

Commit be80e80

Browse files
committed
lint
1 parent 292eb01 commit be80e80

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ in the
2929

3030
There are two API available for adding custom commands:
3131

32-
- [`Cypress.Commands.add()`](#Syntax) - use to add a custom command to use when writing tests
33-
- [`Cypress.Command.overwrite()`](#Overwrite-Existing-Commands) - use to override an existing built-in Cypress command or reserved internal function. **Caution:** this overrides it for Cypress as well and could impact how Cypress behaves.
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.
3438

3539
:::
3640

@@ -847,7 +851,8 @@ couple commands.
847851

848852
Don't do things like:
849853

850-
- **<Icon name="exclamation-triangle" color="red" />** `cy.clickButton(selector)`
854+
- **<Icon name="exclamation-triangle" color="red" />**
855+
`cy.clickButton(selector)`
851856
- **<Icon name="exclamation-triangle" color="red" />** `.shouldBeVisible()`
852857

853858
This first custom command is wrapping `cy.get(selector).click()`. Going down

0 commit comments

Comments
 (0)