Răsfoiți Sursa

blackout #Headers

Yuken Tezuka 3 ani în urmă
părinte
comite
eed6cad708

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

@@ -21,9 +21,10 @@ context('Access to page', () => {
     // hide fab
     cy.getByTestid('grw-fab-container').invoke('attr', 'style', 'display: none');
 
-    // eslint-disable-next-line cypress/no-unnecessary-waiting
-    cy.wait(2000); // wait for 2 seconds for Header style
-    cy.screenshot(`${ssPrefix}-sandbox-headers`);
+    // black out Headers: https://github.com/weseek/growi/pull/6649
+    cy.screenshot(`${ssPrefix}-sandbox-headers`, {
+      blackout: ['#Headers'],
+    });
   });
 
   it('/Sandbox/Math is successfully loaded', () => {