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

Merge pull request #7081 from weseek/fix/111106-math-page-vrt

fix: blackout toc for sandbox math vrt fot guest
Shun Miyazawa 3 лет назад
Родитель
Сommit
9817f7b89e

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

@@ -29,7 +29,10 @@ context('Access to page by guest', () => {
     cy.collapseSidebar(true, true);
     cy.collapseSidebar(true, true);
 
 
     cy.get('.math').should('be.visible');
     cy.get('.math').should('be.visible');
-    cy.screenshot(`${ssPrefix}-sandbox-math`);
+
+    cy.screenshot(`${ssPrefix}-sandbox-math`, {
+      blackout: ['.revision-toc', '[data-hide-in-vrt=true]']
+    });
   });
   });
 
 
   it('/Sandbox with edit is successfully loaded', () => {
   it('/Sandbox with edit is successfully loaded', () => {