-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
chore: Update @nextcloud/vue
to 8.2.0
#41584
Conversation
ee590b5
to
af102d9
Compare
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
af102d9
to
9b9133c
Compare
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
cy.get('li[data-cy-settings-new-group-name]').within(() => { | ||
// see that the group name is "" | ||
cy.get('input[placeholder="Group name"]').should('exist').and('have.value', '') | ||
cy.get('input').should('exist').and('have.value', '') | ||
// set the group name to foo | ||
cy.get('input[placeholder="Group name"]').type(groupName) | ||
cy.get('input').type(groupName) | ||
// see that the group name is foo | ||
cy.get('input[placeholder="Group name"]').should('have.value', groupName) | ||
cy.get('input').should('have.value', groupName) | ||
// submit the group name | ||
cy.get('input[placeholder="Group name"] ~ button').click() | ||
cy.get('input ~ button').click() |
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.
To fix the test, only removing [role="menu"]
seems to be required. Then there is no need in data-cy
attribute, which uses test less semantic and more coupled on implementation (manually marked place).
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.
It would depend on internal implementation (class action-item__popper
) which is bad.
So this flags the action where to look on a non implementation dependent way (we set the attribute in our code so we do not rely on the implementation of the action, except for the li element but this is required due to a bug with actions (the attribute will be assigned on the li tag and also forwarded to the input tag).
Summary
Required for accessibility.
Checklist