Răsfoiți Sursa

wait for rendering

jam411 3 ani în urmă
părinte
comite
d4005da92b

+ 5 - 0
packages/app/test/cypress/integration/20-basic-features/access-to-page.spec.ts

@@ -48,7 +48,12 @@ context('Access to page', () => {
     cy.visit('/user/admin', {  });
     cy.visit('/user/admin', {  });
 
 
     cy.get('.grw-skelton').should('not.exist');
     cy.get('.grw-skelton').should('not.exist');
+    // for check download toc data
     cy.get('.toc-link').should('be.visible');
     cy.get('.toc-link').should('be.visible');
+
+    // eslint-disable-next-line cypress/no-unnecessary-waiting
+    cy.wait(2000); // wait for calcViewHeight and rendering
+
     cy.screenshot(`${ssPrefix}-user-admin`);
     cy.screenshot(`${ssPrefix}-user-admin`);
   });
   });