-
Notifications
You must be signed in to change notification settings - Fork 81
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 test for Group Management #240
Conversation
99ceef6
to
a2e3657
Compare
@hendersonreed please review. Thanks :) |
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.
Verified that it runs on my machine in both FF and Chromium!
cy.contains(name).should('exist'); | ||
cy.addAllPermissions(name); | ||
[ 'namespaces', 'collections', 'users', 'groups', 'remotes' ].forEach(permGroup => cy.get(`.pf-l-flex.pf-m-align-items-center.${permGroup} [placeholder="No permission"]`).should('not.exist'));; | ||
cy.removePermissions(name, [{ |
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.
Should we just use removeAllPermissions
here?
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.
Fixed :)
Looks good to me! They continue to pass on my machine as well. |
Backport to stable-4.2: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 2a66eaa on top of patchback/backports/stable-4.2/2a66eaa5d50055c0e763f663bd6f26dcd65b63bd/pr-240 Backporting merged PR #240 into master
🤖 @patchback |
* Add test for Group Management * Add permissions to a group * Add waiting for delete of a user/group to end and check that it ends with 204 * Admin user can add and remove users from a group * Remove use of .click({force: true}) and fix it to make it work * Add some waits and checks * Use removeAllPermissions and use variable for types of permission (cherry picked from commit 2a66eaa)
* Add test for Group Management * Add permissions to a group * Add waiting for delete of a user/group to end and check that it ends with 204 * Admin user can add and remove users from a group * Remove use of .click({force: true}) and fix it to make it work * Add some waits and checks * Use removeAllPermissions and use variable for types of permission (cherry picked from commit 2a66eaa)
…port multiple test PRs (#354) * Add test for Group Management (#240) * Add test for Group Management * Add permissions to a group * Add waiting for delete of a user/group to end and check that it ends with 204 * Admin user can add and remove users from a group * Remove use of .click({force: true}) and fix it to make it work * Add some waits and checks * Use removeAllPermissions and use variable for types of permission (cherry picked from commit 2a66eaa) * Add test for AAH-160 (#301) The change in commands.js was simply a missing parenthesis, and the change in package.json is just whitespace (seems like it was automated, I don't remember making that change.) (cherry picked from commit 564c41e) Co-authored-by: ZitaNemeckova <znemecko@redhat.com> Co-authored-by: Henderson Hummel <hhummel@redhat.com>
TODO: