add tests for #6795

This commit is contained in:
Hashan Chandika
2025-07-27 14:53:28 +05:30
parent cf5b4b89a8
commit ac04172cf8
3 changed files with 49 additions and 0 deletions

View File

@@ -495,4 +495,21 @@ describe('Class diagram', () => {
cy.get('a').should('have.attr', 'target', '_blank').should('have.attr', 'rel', 'noopener');
});
});
describe('Include char sequence "graph" in text (#6795)', () => {
it('has a label with char sequence "graph"', () => {
imgSnapshotTest(
`
classDiagram
class Person {
+String name
-Int id
#double age
+Text demographicProfile
}
`,
{ flowchart: { defaultRenderer: 'elk' } }
);
});
});
});