Add wait statements to highlight tests
This commit is contained in:
parent
9f1399583f
commit
f0fb84da87
|
|
@ -291,6 +291,8 @@ describe('Highlights', () => {
|
|||
});
|
||||
cy.visit('/module/my-module');
|
||||
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
|
||||
markText();
|
||||
|
||||
const highlightedText = 'es ist ein';
|
||||
|
|
@ -331,6 +333,8 @@ describe('Highlights', () => {
|
|||
|
||||
cy.visit('/module/my-module');
|
||||
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
|
||||
markText();
|
||||
});
|
||||
|
||||
|
|
@ -345,6 +349,7 @@ describe('Highlights', () => {
|
|||
});
|
||||
|
||||
cy.visit('/module/my-module');
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
|
||||
markText();
|
||||
cy.getByDataCy('highlight-note').click();
|
||||
|
|
@ -358,6 +363,7 @@ describe('Highlights', () => {
|
|||
operations,
|
||||
});
|
||||
cy.visit('/module/my-module');
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
|
||||
markText();
|
||||
const highlightedText = 'es ist ein';
|
||||
|
|
@ -375,6 +381,7 @@ describe('Highlights', () => {
|
|||
operations: getOperations('ChapterNode'),
|
||||
});
|
||||
cy.visit('/module/my-module');
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
|
||||
markText('chapter-intro');
|
||||
const highlightedText = 'is is some';
|
||||
|
|
@ -393,6 +400,7 @@ describe('Highlights', () => {
|
|||
operations,
|
||||
});
|
||||
cy.visit('/module/my-module');
|
||||
cy.wait('@ModuleDetailsQuery');
|
||||
|
||||
markText('module-intro');
|
||||
const highlightedText = 'troducing';
|
||||
|
|
|
|||
Loading…
Reference in New Issue