mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
test: add waits in user test (#2907) [skip ci]
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user