-
Notifications
You must be signed in to change notification settings - Fork 365
Enhance form element selectors #9598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance form element selectors #9598
Conversation
45ed3f8
to
d59e2e5
Compare
d59e2e5
to
3b49046
Compare
3b49046
to
84dcf23
Compare
'getFormFooterButtonByTypeWithText', | ||
({ buttonType = 'button', buttonText } = {}) => { | ||
if (!buttonText) { | ||
cy.logAndThrowError('buttonName is required'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a follow up, we call the function WithText, perhaps buttonText would be a better term to use in the error message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please review the one followup typo/suggestion in the error output. Merging.
PR to enhance form elements selector commands to make it more readable as discussed in this thread
input#${inputId}]
,select#${selectId}]
==>input[id="${inputId}"]
,select[id="${selectId}"]
.When ids are separated by dots("endpoints.default.hostname"),
input#${inputId}]
,select#${selectId}]
these selectors fail.@miq-bot assign @GilbertCherrie
@miq-bot add-reviewer @elsamaryv
@miq-bot add-label cypress
@miq-bot add-label test
@miq-bot add-label refactoring