Wait for image to be rendered

This commit is contained in:
Sidharth Vinod
2024-03-23 15:57:29 +05:30
parent 63e3b1af52
commit fa1605e7e7
2 changed files with 7 additions and 3 deletions

View File

@@ -21,7 +21,11 @@ sequenceDiagram
mermaid.initialize({
theme: 'base',
themeVariables: {},
startOnLoad: true,
startOnLoad: false,
});
await mermaid.run();
if (window.Cypress) {
window.rendered = true;
}
</script>
</html>