Skip to content

Commit

Permalink
Update testing file
Browse files Browse the repository at this point in the history
  • Loading branch information
yari-dewalt committed Oct 21, 2024
1 parent 64bc7f4 commit be3da0b
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions cypress/platform/yari.html
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ <h2>Complex Relations with Theme</h2>
---
config:
theme: forest
look: handDrawn
look: handDrawns
layout: elk
---
classDiagram
direction RL
Expand All @@ -464,8 +465,8 @@ <h2>Complex Relations with Theme</h2>
-id : int
-name : string
}
Student "1" --o "1" IdCard : carries
Student "1" --o "1" Bike : rides
Student "1" o--o "1" IdCard : carries
Student "1" o--o "1" Bike : rides
</pre>
</div>
<div class="test">
Expand All @@ -490,6 +491,23 @@ <h2>Namespaces</h2>
}
</pre>
</div>
<div class="test">
<h2>Namespaces</h2>
<pre class="mermaid">
---
config:
layout: elk
---
classDiagram
namespace Namespace1 {
class C1
class C2
}
C1 --> C2
class C3
class C4
</pre>
</div>
<div class="test">
<h2>Full Example</h2>
<pre class="mermaid">
Expand Down Expand Up @@ -555,6 +573,7 @@ <h2>Full Example</h2>
---
config:
look: handDrawn
layout: elk
---
classDiagram
Class01 "1" <|--|> "*" AveryLongClass : Cool
Expand Down Expand Up @@ -591,7 +610,9 @@ <h2>Full Example</h2>
</div>

<script type="module">
import mermaid from '/mermaid.esm.mjs';
import mermaid from './mermaid.esm.mjs';
import layouts from './mermaid-layout-elk.esm.mjs';
mermaid.registerLayoutLoaders(layouts);
mermaid.parseError = function (err, hash) {
console.error('Mermaid error: ', err);
};
Expand Down Expand Up @@ -632,11 +653,11 @@ <h2>Full Example</h2>
grid-template-columns: 1fr;
}

#classId-Duck-24.styleClass > * > path {
fill: #ff0000;
stroke: #ffff00;
stroke-width: 4px;
stroke-dasharray: 2;
.styleClass > * > path {
fill: #ff0000 !important;
stroke: #ffff00 !important;
stroke-width: 4px !important;
stroke-dasharray: 2 !important;
}
</style>
</html>

0 comments on commit be3da0b

Please sign in to comment.