Skip to content

Commit 5ccc6d6

Browse files
Dropped buttonWrapperClass arg from validateFormButtons command
1 parent dc613d3 commit 5ccc6d6

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

cypress/support/commands/constants/command_constants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export const BUTTON_CONFIG_KEYS = {
3131
BUTTON_TEXT: 'buttonText',
3232
BUTTON_TYPE: 'buttonType',
3333
SHOULD_BE_DISABLED: 'shouldBeDisabled',
34-
BUTTON_WRAPPER_CLASS: 'buttonWrapperClass',
3534
};
3635

3736
/* ========================================================== */

cypress/support/commands/form_elements_validation_commands.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)