test: add waits in user test (#2907) [skip ci]

pull/2911/head
Ryan Cohen 2 years ago committed by GitHub
parent 22ec058431
commit ebd22ffcea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,4 +12,8 @@ export default defineConfig({
USER_EMAIL: 'friend@seerr.dev',
USER_PASSWORD: 'test1234',
},
retries: {
runMode: 2,
openMode: 0,
},
});

@ -41,6 +41,8 @@ describe('User List', () => {
cy.get('[data-testid=modal-ok-button').click();
cy.wait('@user');
// Wait a little longer for the user list to fully re-render
cy.wait(1000);
cy.get('[data-testid=user-list-row]').contains(testUser.emailAddress);
});
@ -59,6 +61,7 @@ describe('User List', () => {
cy.get('[data-testid=modal-ok-button').should('contain', 'Delete').click();
cy.wait('@user');
cy.wait(1000);
cy.get('[data-testid=user-list-row]')
.contains(testUser.emailAddress)

Loading…
Cancel
Save