Merge branch 'develop' into bug/4912_gitgraph-merge-routing-colouring

This commit is contained in:
Nikolay Rozhkov
2023-11-13 23:14:42 +03:00
committed by GitHub
54 changed files with 401 additions and 393 deletions

View File

@@ -501,4 +501,16 @@ describe('Class diagram', () => {
B : -methods()
`);
});
it('should handle notes with anchor tag having target attribute', () => {
renderGraph(
`classDiagram
class test { }
note for test "<a href='https://mermaid.js.org/' target="_blank"><code>note about mermaid</code></a>"`
);
cy.get('svg').then((svg) => {
cy.get('a').should('have.attr', 'target', '_blank').should('have.attr', 'rel', 'noopener');
});
});
});