Add wait statements to bookmark tests
This commit is contained in:
parent
2949240b8a
commit
9f1399583f
|
|
@ -87,6 +87,7 @@ describe('Bookmarks', () => {
|
|||
|
||||
it('should bookmark instrument', () => {
|
||||
cy.visit('/instrument/an-instrument');
|
||||
cy.wait('@InstrumentQuery');
|
||||
|
||||
cy.getByDataCy('content-component').first().as('contentComponent');
|
||||
|
||||
|
|
@ -110,10 +111,12 @@ describe('Bookmarks', () => {
|
|||
});
|
||||
|
||||
cy.get('[data-cy=modal-save-button]').click();
|
||||
cy.wait('@InstrumentQuery');
|
||||
});
|
||||
|
||||
it('should bookmark module', () => {
|
||||
cy.visit('/module/lohn-und-budget/');
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
cy.getByDataCy('module-bookmark-actions').as('moduleBookmark');
|
||||
|
||||
cy.get('@moduleBookmark').within(() => {
|
||||
|
|
@ -136,10 +139,12 @@ describe('Bookmarks', () => {
|
|||
});
|
||||
|
||||
cy.get('[data-cy=modal-save-button]').click();
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
});
|
||||
|
||||
it('should bookmark chapter', () => {
|
||||
cy.visit('/module/lohn-und-budget/');
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
|
||||
cy.getByDataCy('chapter-bookmark-actions').as('chapterBookmark');
|
||||
|
||||
|
|
@ -163,10 +168,12 @@ describe('Bookmarks', () => {
|
|||
});
|
||||
|
||||
cy.get('[data-cy=modal-save-button]').click();
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
});
|
||||
|
||||
it('should bookmark content block', () => {
|
||||
cy.visit('/module/lohn-und-budget/');
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
|
||||
cy.getByDataCy('content-component').contains('Das folgende Interview').parent().parent().as('interviewContent');
|
||||
|
||||
|
|
@ -190,5 +197,6 @@ describe('Bookmarks', () => {
|
|||
});
|
||||
|
||||
cy.get('[data-cy=modal-save-button]').click();
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue