Skip to content

Commit

Permalink
test(e2e): wait for marker_unique_id.html e2e test
Browse files Browse the repository at this point in the history
Sometimes, Cypress takes the screenshot for marker_unique_id.html early,
before mermaid has finished rendering the diagrams.

Fixes: 924c9e9

Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
  • Loading branch information
aloisklink and sidharthv96 committed Sep 17, 2023
1 parent 4201e47 commit 335ba40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/platform/marker_unique_id.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ <h1>Example</h1>
</pre>
<script type="module">
import mermaid from './mermaid.esm.mjs';
mermaid.initialize({ startOnLoad: true, logLevel: 0 });
mermaid.initialize({ startOnLoad: false, logLevel: 0 });
await mermaid.run();

if (window.Cypress) {
window.rendered = true;
Expand Down

0 comments on commit 335ba40

Please sign in to comment.