-
Notifications
You must be signed in to change notification settings - Fork 167
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
added user management cypress test #2728
added user management cypress test #2728
Conversation
feed4eb
to
cfae327
Compare
projectDetails.findElyraInvalidVersionAlert().should('not.exist'); | ||
notebookRow.findOutdatedElyraInfo().should('be.visible'); | ||
projectDetails.findElyraInvalidVersionAlert().should('be.visible'); | ||
projectDetails.findUnsupportedPipelineVersionAlert().should('not.exist'); | ||
}); |
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.
The tests where failing continuously , fixed the flaky test
7c12a17
to
5849712
Compare
frontend/src/__tests__/cypress/cypress/e2e/userManagement/userManagement.cy.ts
Show resolved
Hide resolved
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
/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.
You stumbled upon an invalid state -- which IS possible for the page to load in that state. We should have a test for an invalid admin/allowed group to make sure the page is not submittable when loaded in that state.
However, your mock is starting in an invalid state, and I think you need to make it start in a valid state and then manipulate it into an invalid state (using props to the mock or modifying the mock after it is returned from the function).
frontend/src/__tests__/cypress/cypress/e2e/userManagement/userManagement.cy.ts
Outdated
Show resolved
Hide resolved
frontend/src/__tests__/cypress/cypress/e2e/userManagement/userManagement.cy.ts
Outdated
Show resolved
Hide resolved
frontend/src/__tests__/cypress/cypress/e2e/userManagement/userManagement.cy.ts
Outdated
Show resolved
Hide resolved
frontend/src/__tests__/cypress/cypress/e2e/userManagement/userManagement.cy.ts
Show resolved
Hide resolved
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.
Not quite what I asked for, but covers the needed tests.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne 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: https://issues.redhat.com/browse/RHOAIENG-3813
Closes: https://issues.redhat.com/browse/RHOAIENG-5310
Description
added cypress test for user management
How Has This Been Tested?
npm run test
Test Impact
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main