Fix number of queries to wait for

This commit is contained in:
Ramon Wenger 2024-05-15 11:39:41 +02:00
parent b74ff20e50
commit 62e9ef4fc9
1 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ describe('Snapshot', () => {
cy.mockGraphqlOps(operations(true)); cy.mockGraphqlOps(operations(true));
cy.visit('module/miteinander-reden/'); cy.visit('module/miteinander-reden/');
cy.getByDataCy('snapshot-menu').should('be.visible'); cy.getByDataCy('snapshot-menu').should('be.visible');
waitNTimes(4); waitNTimes(3);
}); });
it('Menu is not visible for student', () => { it('Menu is not visible for student', () => {
@ -227,7 +227,7 @@ describe('Snapshot', () => {
.within(() => { .within(() => {
cy.get('.snapshots__snapshot').should('have.length', 1); cy.get('.snapshots__snapshot').should('have.length', 1);
}); });
waitNTimes(7); waitNTimes(6);
}); });
it('Applies Snapshot', () => { it('Applies Snapshot', () => {
@ -239,7 +239,7 @@ describe('Snapshot', () => {
cy.getByDataCy('module-title').should('exist'); cy.getByDataCy('module-title').should('exist');
cy.getByDataCy('snapshot-header').should('not.exist'); cy.getByDataCy('snapshot-header').should('not.exist');
waitNTimes(9); waitNTimes(8);
}); });
it('Renames Snapshot', () => { it('Renames Snapshot', () => {