Add wait condition to survey test

This commit is contained in:
Ramon Wenger 2024-05-15 14:11:01 +02:00
parent 32e49b26e8
commit 7193c08311
1 changed files with 4 additions and 2 deletions

View File

@ -151,9 +151,9 @@ describe('Survey', () => {
});
it('should display a matrix correctly', () => {
// todo: fix bitbucket hickup and re-enable
cy.visit('/survey/U3VydmV5Tm9kZTox');
cy.wait('@SurveyQuery');
cy.wait('@ModuleSolutions');
cy.get('h1').should('contain', 'Titel Übung');
@ -168,6 +168,8 @@ describe('Survey', () => {
});
cy.visit('/survey/U3VydmV5Tm9kZTox');
cy.wait('@SurveyQuery');
cy.wait('@ModuleSolutions');
cy.get('#sv-nav-complete > .sv-action__content > .button').scrollIntoView().click();
cy.get('.survey__panel-title').should('not.exist');
cy.get('.survey__body > p').should('have.text', 'Sie haben die Übung abgeschlossen.');