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

This commit is contained in:
Ryan Cohen
2022-08-15 19:50:42 +09:00
committed by GitHub
parent 22ec058431
commit ebd22ffcea
2 changed files with 7 additions and 0 deletions

View File

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

View File

@@ -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)