UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 5321d82b authored by Jimmy Bourque's avatar Jimmy Bourque
Browse files

Add explicit wait prior to validating user deletion

parent 5b9ba433
No related branches found
No related tags found
1 merge request!245Cypress updates
Pipeline #2778284 failed
......@@ -89,6 +89,10 @@ describe('Create Gitlab Project and Cleanup Resources Created', () => {
cy.get('input[name="username"]').type(`${Cypress.env('gitlab_first_name')} ${Cypress.env('gitlab_last_name')}`)
cy.contains('span', 'Delete user and contributions').click({force: true})
//Wait for user deletion to complete before validating user no longer exists
//Unfortunately, there is no API call to listen to here so it has to be an explicit wait
cy.wait(3000)
//Validate user is gone
cy.visit(`${Cypress.env('url')}/admin/users?search_query=${Cypress.env('gitlab_email')}&sort=name_asc`)
cy.should('contains', "No users found")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment