Add wait condition to survey test
This commit is contained in:
parent
32e49b26e8
commit
7193c08311
|
|
@ -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.');
|
||||
|
|
|
|||
Loading…
Reference in New Issue