We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091695e commit f75d1b0Copy full SHA for f75d1b0
docs/api/cypress-api/custom-commands.mdx
@@ -315,6 +315,17 @@ Log? Read more about [Command Logging](#Command-Logging).
315
316
:::
317
318
+:::caution
319
+
320
+Note that `Cypress.Commands.add()` will throw an error when trying to add a
321
+custom command with the same name as an existing built-in Cypress command or
322
+reserved internal function. In order to override the behavior of an existing
323
+command, `Cypress.Commands.overwrite()` should be used instead. For more
324
+information, read the section
325
+[Overwrite Existing Commands](#Overwrite-Existing-Commands).
326
327
+:::
328
329
### Child Commands
330
331
Child commands are always chained off of a **parent** command, or another
0 commit comments