diff --git a/cypress/support/commands/element_selectors.js b/cypress/support/commands/element_selectors.js index 753f7dbe95b..5f83961c740 100644 --- a/cypress/support/commands/element_selectors.js +++ b/cypress/support/commands/element_selectors.js @@ -15,7 +15,7 @@ Cypress.Commands.add( 'getFormFooterButtonByTypeWithText', ({ buttonType = 'button', buttonText } = {}) => { if (!buttonText) { - cy.logAndThrowError('buttonName is required'); + cy.logAndThrowError('buttonText is required'); } return cy.contains( `#main-content .bx--btn-set button[type="${buttonType}"]`,