Skip to content
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

Merged
merged 2 commits into from Nov 17, 2023
Merged

chore: Update @nextcloud/vue to 8.2.0 #41584

merged 2 commits into from Nov 17, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Nov 17, 2023

Summary

Required for accessibility.

Checklist

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Comment on lines +42 to +50
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()
Copy link
Contributor

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).

Copy link
Contributor Author

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).

@susnux susnux merged commit 688e635 into master Nov 17, 2023
41 checks passed
@susnux susnux deleted the chore/update-vue branch November 17, 2023 22:56
@blizzz blizzz mentioned this pull request Nov 20, 2023
5 tasks
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.

None yet

3 participants