From 71cf898f5cf5a90713f5470df86e959b81c88b80 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Thu, 18 Jan 2024 20:32:05 +0530 Subject: [PATCH] Wait for diagram to sync --- cypress/e2e/util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/e2e/util.ts b/cypress/e2e/util.ts index b6e29a3d..41904040 100644 --- a/cypress/e2e/util.ts +++ b/cypress/e2e/util.ts @@ -29,6 +29,7 @@ export const verifyFileSizeGreaterThan = ( extension: string, size: number ) => { + cy.get('#view').should('not.have.class', 'outOfSync'); cy.task('readAndDeleteFile', { folder: downloadsFolder, fileNamePattern: `mermaid-${fileType}-.*.${extension}`,