-
Notifications
You must be signed in to change notification settings - Fork 179
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
migrate e2e test for adding group permission #3683
migrate e2e test for adding group permission #3683
Conversation
61b2a57
to
706f3a0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3683 +/- ##
==========================================
- Coverage 84.23% 84.23% -0.01%
==========================================
Files 1459 1459
Lines 33728 33728
Branches 9354 9354
==========================================
- Hits 28412 28411 -1
- Misses 5316 5317 +1
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@gitdallas can you update the PR details to follow the same format as #3686 thank you ! |
/lgtm |
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.
@gitdallas Thanks for creating this test, really appreciated.
I've tried to execute this test against the latest Dashboard version, the test passed the first time but failed intermittently thereafter. Can you execute this test against the latest Dashboard code a few times and see if you see the same issue?
706f3a0
to
224bc2e
Compare
@antowaddle - it passed for me in CI, headless several times, and in the cypress browser several times.. but i noticed that it's not creating a dropdown menu for the name of the group, which it should... so changes are needed, and i may need some assistance figuring out the data here. maybe we can meet sometime tomorrow. |
@gitdallas Sure, no problem at all. Ping me when you are online and we can review. |
06fdbc2
to
3d76561
Compare
@antowaddle - figured it out, but had to use some more complex selectors as we were missing a testid. i've added it so perhaps we can update it later and/or use for future tests. |
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.
@gitdallas I pulled your branch, then launched the dashboard locally while connected to the e2e cluster. The test passes when launched locally via Cypress UI, but when I tried to launch it headlessly it fails.
Can you try please? npx cypress run --env grepTags=@ODS-2208 --browser chrome
I believe if we use multiple 'its' within a describe block, the tags in the tests should all be the same if projects are shared between the 'it' blocks.
Signed-off-by: gitdallas <[email protected]>
Signed-off-by: gitdallas <[email protected]>
3d76561
to
edef947
Compare
@antowaddle - very odd this would work in one but not the other, i changed how the selection is made and it seems to work now in both ways. |
Signed-off-by: gitdallas <[email protected]>
edef947
to
efcc670
Compare
...rc/__tests__/cypress/cypress/tests/e2e/dataScienceProjects/testProjectAdminPermissions.cy.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: gitdallas <[email protected]>
/lgtm /approved |
/approve |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: antowaddle, manosnoam The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
closes: RHOAIENG-17420
Description
migrating test that user can add group as admin for project
How Has This Been Tested?
How to run?
Go to odh-dashboard/frontend/src/tests/cypress and run the command npx cypress open . This will open the Cypress UI where testProjectAdminPermissions.cy.ts can be run.
Headless
Go to odh-dashboard/frontend/src/tests/cypress and run the command npx cypress run --spec "cypress/tests/e2e/dataScienceProjects/testProjectAdminPermissions.cy.ts" --browser chrome
or Execute 'npx cypress run --env grepTags=@ODS-2208'
Request review criteria:
Self checklist (all need to be checked):
After the PR is posted & before it merges:
main