#1874 #1865 Fix for rgression issue

This commit is contained in:
Knut Sveidqvist
2021-01-28 07:52:17 +01:00
parent 177cd30854
commit fc5693067c
3 changed files with 51 additions and 16 deletions

View File

@@ -96,5 +96,13 @@ describe('Configuration', () => {
.should('exist')
.and('include', 'url(http://localhost');
});
it('should not taint the initial configuration when using multiple directives', () => {
const url = 'http://localhost:9000/regression/issue-1874.html';
cy.viewport(1440, 1024);
cy.visit(url);
cy.get('svg');
cy.percySnapshot();
});
});
});

View File

@@ -18,7 +18,7 @@
display: none;
}
.mermaid svg {
font-size: 36px !important;
font-size: 12px !important;
}
</style>
</head>
@@ -94,18 +94,45 @@ flowchart TD
C <-...-> E4
C ======> E5
</div>
<div class="mermaid2" style="width: 50%; height: 20%;">
graph TD
L1 --- L2
L2 --- C
M1 ---> C
R1 .-> R2
R2 <.-> C
C -->|Label 1| E1
C -- Label 2 ---> E2
C ----> E3
C -----> E4
C ======> E5
<div class="mermaid" style="width: 50%; height: 20%;">
graph TB
A
B
subgraph foo[Foo SubGraph]
C
D
end
subgraph bar[Bar SubGraph]
E
F
end
G
A-->B
B-->C
C-->D
B-->D
D-->E
E-->A
E-->F
F-->D
F-->G
B-->G
G-->D
style foo fill:#F99,stroke-width:2px,stroke:#F0F,color:darkred
style bar fill:#999,stroke-width:10px,stroke:#0F0,color:blue
</div>
<div class="mermaid" style="width: 50%; height: 20%;">
%%{init:{"theme":"base", "themeVariables": {"primaryColor":"#411d4e", "titleColor":"white", "darkMode":true}}}%%
flowchart LR
subgraph A
a --> b
end
subgraph B
i -->f
end
A --> B
</div>

View File

@@ -69,9 +69,9 @@ const getStyles = options =>
.cluster span {
color: ${options.titleColor};
}
.cluster div {
color: ${options.titleColor};
}
// .cluster div {
// color: ${options.titleColor};
// }
div.mermaidTooltip {
position: absolute;