-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add tests for groups component #1733
Conversation
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.
Just two minor things to tweak and this is good to go!
// Check that children are hidden | ||
cy.get('#groups-list li ul').should('not.exist') | ||
}) | ||
it('Loads members on group 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.
This is a redundant test that checks the sub-condition of the previous test. I'd say remove it for better maintainability.
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.
In the previous test, we are testing clicks on the triangle button and in this test we are testing clicks on actual group link, so they are testing slightly different things
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.
Ok, in that case I take back my comment!
Co-authored-by: joelit <joeli.takala@helsinki.fi>
Quality Gate passedIssues Measures |
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
Reasons for creating this PR
Groups component does not currently have any Cypress tests, this PR adds them.
Link to relevant issue(s), if any
Description of the changes in this PR
Addresses requirement 6 in #1704
Checklist
.sr-only
class, color contrast)