@@ -208,7 +208,6 @@ Cypress.Commands.add('validateFormFields', (fieldConfigs) => {
208208 * @param {string } buttonConfigs[].buttonText - The text of the button
209209 * @param {string } [buttonConfigs[].buttonType='button'] - The type of button (e.g., 'submit', 'reset')
210210 * @param {boolean } [buttonConfigs[].shouldBeDisabled=false] - Whether the button should be disabled
211- * @param {string } [buttonConfigs[].buttonWrapperClass='bx--btn-set'] - The CSS class of the wrapper element containing the buttons
212211 *
213212 * Example:
214213 * cy.validateFormFooterButtons([
@@ -223,7 +222,6 @@ Cypress.Commands.add('validateFormFields', (fieldConfigs) => {
223222 * { buttonText: 'Cancel' },
224223 * { buttonText: 'Reset', shouldBeDisabled: true },
225224 * { buttonText: 'Submit', buttonType: 'submit' },
226- * { buttonText: 'Save', buttonWrapperClass: 'custom-wrapper' }
227225 * ]);
228226 *
229227 * Both approaches work but using config-keys object(BUTTON_CONFIG_KEYS) is recommended to avoid typos and unknown keys
@@ -244,7 +242,6 @@ Cypress.Commands.add('validateFormFooterButtons', (buttonConfigs) => {
244242 const buttonType = config [ BUTTON_CONFIG_KEYS . BUTTON_TYPE ] || 'button' ;
245243 const shouldBeDisabled =
246244 config [ BUTTON_CONFIG_KEYS . SHOULD_BE_DISABLED ] || false ;
247- const buttonWrapperClass = config [ BUTTON_CONFIG_KEYS . BUTTON_WRAPPER_CLASS ] ;
248245
249246 if ( ! buttonText ) {
250247 cy . logAndThrowError (
@@ -256,7 +253,6 @@ Cypress.Commands.add('validateFormFooterButtons', (buttonConfigs) => {
256253 . getFormButtonByTypeWithText ( {
257254 buttonText,
258255 buttonType,
259- buttonWrapperClass,
260256 } )
261257 . should ( 'be.visible' ) ;
262258
0 commit comments