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
Automate end-to-end permission testing #1383
Automate end-to-end permission testing #1383
Conversation
@kaankabalak please update all the new files to have year as 2022 in the license header. |
Will do @prakashsvmx |
Done |
I have just realized that we had some UI changes after I have rebased the branch, I will update the tests shortly. You can hold off reviewing the PR until then. @dvaldivia @prakashsvmx @bexsoft @Alevsk @jinapurapu @adfost @cniackz |
2242811
to
7b4e075
Compare
@dvaldivia @prakashsvmx @bexsoft @Alevsk @jinapurapu @adfost @cniackz I have fixed the tests that were failing after recent UI changes, therefore you can now review the sections that involve the tests. However, I will need some help making sure the action runs smoothly. |
86bd745
to
9d31160
Compare
43f260a
to
904e9e9
Compare
Fixed the conflict @dvaldivia |
A fix to this will be sent in future PRs after investigation
Seems like a test is randomly failing only on GitHub Actions, will investigate this and send a fix for this in a future PR. |
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
165a1f7
to
22c6e00
Compare
This PR sets up and uses the TestCafe framework to automate end-to-end permission testing.
To summarize, these tests involve the creation of users and policies via
mc
and uses them to try out various permission related operations. Therefore it requires multiple commands to initialize and clean them up.The entirety of the process can be run using the
env bash /portal-ui/tests/scripts/permissions.sh
command; provided that:npm i -g testcafe
command)console
directoryyarn build
command)Fixes miniohq/engineering#254