diff --git a/content/api/cypress-api/custom-commands.md b/content/api/cypress-api/custom-commands.md index f77a95d466..06bf48a734 100644 --- a/content/api/cypress-api/custom-commands.md +++ b/content/api/cypress-api/custom-commands.md @@ -286,6 +286,12 @@ Log? Read more about [Command Logging](#Command-Logging). + + +Note that `Cypress.Commands.add()` will throw an error when trying to add a custom command with the same name as an existing built-in Cypress command or reserved internal function. In order to override the behavior of an existing command, `Cypress.Commands.overwrite()` should be used instead. For more information, read the section [Overwrite Existing Commands](#Overwrite-Existing-Commands). + + + ### Child Commands Child commands are always chained off of a **parent** command, or another