Просмотр исходного кода

Merge pull request #6601 from weseek/support/fix-VRT-for-Mathjax-page

support: Update access-to-page.spec.ts for VRT normalization
Yuki Takei 3 лет назад
Родитель
Сommit
1521d9b3ef

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

@@ -28,6 +28,8 @@ context('Access to page', () => {
     cy.visit('/Sandbox/Math');
 
     cy.get('mjx-container').should('be.visible');
+    // eslint-disable-next-line cypress/no-unnecessary-waiting
+    cy.wait(2000); // wait for 2 seconds for MathJax.typesetPromise();
 
     cy.screenshot(`${ssPrefix}-sandbox-math`);
   });

+ 2 - 0
packages/app/test/cypress/integration/21-basic-features-for-guest/access-to-page.spec.ts

@@ -22,6 +22,8 @@ context('Access to page by guest', () => {
     cy.collapseSidebar(true, true);
 
     cy.get('mjx-container').should('be.visible');
+    // eslint-disable-next-line cypress/no-unnecessary-waiting
+    cy.wait(2000); // wait for 2 seconds for MathJax.typesetPromise();
 
     cy.screenshot(`${ssPrefix}-sandbox-math`);
   });