Skip to content

Conversation

@asirvadAbrahamVarghese
Copy link
Contributor

Follow up work as discussed in #9689
Renaming:

  • getFormFooterButtonByTypeWithText -> getFormButtonByTypeWithText
  • validateFormFooterButtons -> validateFormButtons

@miq-bot add-label cypress
@miq-bot add-label refactoring
@miq-bot assign @jrafanie

##### element_selectors

* `cy.getFormFooterButtonByTypeWithText({ buttonType, buttonText, buttonWrapperClass })` - retrieves form footer button by its name and type. `buttonText` is the name or text content of the button. `buttonType` is the HTML button type (e.g., 'button', 'submit', 'reset'). Defaults to 'button'. `buttonWrapperClass` is the CSS class of the wrapper element containing the buttons. Defaults to 'bx--btn-set'. e.g. `cy.getFormFooterButtonByTypeWithText({buttonText: 'Cancel'});`, `cy.getFormFooterButtonByTypeWithText({buttonText: 'Submit', buttonType: 'submit'});`, `cy.getFormFooterButtonByTypeWithText({buttonText: 'Save', buttonWrapperClass: 'custom-wrapper'});`
* `cy.getFormButtonByTypeWithText({ buttonType, buttonText })` - retrieves form footer button by its name and type. `buttonText` is the name or text content of the button. `buttonType` is the HTML button type (e.g., 'button', 'submit', 'reset'). Defaults to 'button'. e.g. `cy.getFormButtonByTypeWithText({buttonText: 'Cancel'});`, `cy.getFormButtonByTypeWithText({buttonText: 'Submit', buttonType: 'submit'});`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

according to #9689 we wanted to generalize this to be form buttons not just in footers... maybe:

retrieves a form button, often found in form footers, by its name and type

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it makes sense, let's fix this in a followup.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me #9712

Copy link
Member

@jrafanie jrafanie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor comment can be addressed in a followup

@jrafanie jrafanie merged commit 5e881fe into ManageIQ:master Nov 3, 2025
19 checks passed
asirvadAbrahamVarghese added a commit to asirvadAbrahamVarghese/manageiq-ui-classic that referenced this pull request Nov 5, 2025
asirvadAbrahamVarghese added a commit to asirvadAbrahamVarghese/manageiq-ui-classic that referenced this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants