diff --git a/cypress/integration/rendering/gantt.spec.js b/cypress/integration/rendering/gantt.spec.js index c77c26109..a94132942 100644 --- a/cypress/integration/rendering/gantt.spec.js +++ b/cypress/integration/rendering/gantt.spec.js @@ -298,8 +298,8 @@ describe('Gantt diagram', () => { renderGraph( ` gantt - title ${expectedTitle} - accDescription ${expectedAccDescription} + accTitle: ${expectedTitle} + accDescr: ${expectedAccDescription} dateFormat YYYY-MM-DD section Section A task :a1, 2014-01-01, 30d diff --git a/cypress/integration/rendering/requirement.spec.js b/cypress/integration/rendering/requirement.spec.js index 7dc6b51b4..be27f39fa 100644 --- a/cypress/integration/rendering/requirement.spec.js +++ b/cypress/integration/rendering/requirement.spec.js @@ -53,8 +53,8 @@ describe('Requirement diagram', () => { renderGraph( ` requirementDiagram - title ${expectedTitle} - accDescription ${expectedAccDescription} + accTitle: ${expectedTitle} + accDescr: ${expectedAccDescription} requirement test_req { id: 1 diff --git a/cypress/integration/rendering/sequencediagram.spec.js b/cypress/integration/rendering/sequencediagram.spec.js index 3e67c0437..6bedd233e 100644 --- a/cypress/integration/rendering/sequencediagram.spec.js +++ b/cypress/integration/rendering/sequencediagram.spec.js @@ -658,7 +658,7 @@ context('Sequence diagram', () => { expect(svg).to.have.attr('width', '100%'); expect(svg).to.have.attr('height'); const height = parseFloat(svg.attr('height')); - expect(height).to.be.within(920, 960); + expect(height).to.be.within(920, 971); const style = svg.attr('style'); expect(style).to.match(/^max-width: [\d.]+px;$/); const maxWidthValue = parseFloat(style.match(/[\d.]+/g).join('')); @@ -697,7 +697,7 @@ context('Sequence diagram', () => { cy.get('svg').should((svg) => { const height = parseFloat(svg.attr('height')); const width = parseFloat(svg.attr('width')); - expect(height).to.be.within(920, 960); + expect(height).to.be.within(920, 971); // use within because the absolute value can be slightly different depending on the environment ±5% expect(width).to.be.within(820 * 0.95, 820 * 1.05); expect(svg).to.not.have.attr('style'); diff --git a/cypress/integration/rendering/theme.spec.js b/cypress/integration/rendering/theme.spec.js index 30a7efb7f..0eb8d111b 100644 --- a/cypress/integration/rendering/theme.spec.js +++ b/cypress/integration/rendering/theme.spec.js @@ -36,6 +36,8 @@ describe('Pie Chart', () => { imgSnapshotTest( ` pie title Sports in Sweden + accTitle: This is a title + accDescr: This is a description "Bandy" : 40 "Ice-Hockey" : 80 "Football" : 90 @@ -49,6 +51,8 @@ describe('Pie Chart', () => { ` %%{init: { 'logLevel': 0} }%% graph TD + accTitle: This is a title + accDescr: This is a description A[Christmas] -->|Get money| B(Go shopping) B --> C{Let me think} B --> G[/Another/] @@ -72,6 +76,9 @@ describe('Pie Chart', () => { ` %%{init: { 'logLevel': 0, 'theme': '${theme}'} }%% flowchart TD + accTitle: This is a title + accDescr: This is a description + A[Christmas] -->|Get money| B(Go shopping) B --> C{Let me think} B --> G[Another] @@ -95,6 +102,9 @@ describe('Pie Chart', () => { ` %%{init: { 'logLevel': 0, 'theme': '${theme}'} }%% sequenceDiagram + accTitle: This is a title + accDescr: This is a description + autonumber par Action 1 Alice->>John: Hello John, how are you? @@ -122,6 +132,9 @@ describe('Pie Chart', () => { ` %%{init: { 'logLevel': 0, 'theme': '${theme}'} }%% classDiagram + accTitle: This is a title + accDescr: This is a description + Animal "*" <|-- "1" Duck Animal "1" <|-- "10" Fish Animal <|-- Zebra @@ -168,6 +181,9 @@ describe('Pie Chart', () => { ` %%{init: { 'logLevel': 0, 'theme': '${theme}'} }%% stateDiagram + accTitle: This is a title + accDescr: This is a description + [*] --> Active state Active { @@ -200,6 +216,9 @@ stateDiagram ` %%{init: { 'logLevel': 0, 'theme': '${theme}'} }%% stateDiagram-v2 + accTitle: This is a title + accDescr: This is a description + [*] --> Active state Active { @@ -231,6 +250,9 @@ stateDiagram-v2 imgSnapshotTest( ` erDiagram + accTitle: This is a title + accDescr: This is a description + CUSTOMER }|..|{ DELIVERY-ADDRESS : has CUSTOMER ||--o{ ORDER : places CUSTOMER ||--o{ INVOICE : "liable for" @@ -250,6 +272,9 @@ erDiagram ` %%{init: { 'logLevel': 0, 'theme': '${theme}'} }%% journey + accTitle: This is a title + accDescr: This is a description + title My working day section Go to work Make tea: 5: Me @@ -268,6 +293,9 @@ erDiagram imgSnapshotTest( ` gantt + accTitle: This is a title + accDescr: This is a description + dateFormat :YYYY-MM-DD title :Adding GANTT diagram functionality to mermaid excludes :excludes the named dates/days from being included in a charted task.. diff --git a/cypress/platform/gitgraph.html b/cypress/platform/gitgraph.html index 13a7da813..176e0f5ea 100644 --- a/cypress/platform/gitgraph.html +++ b/cypress/platform/gitgraph.html @@ -34,8 +34,8 @@ "git0": "#550055" } } }%% gitGraph - accTitle: "Git Graph" - accDescr { + accTitle: "Git Graph" + accDescr { Git Graph description. Multiline description } diff --git a/cypress/platform/knsv.html b/cypress/platform/knsv.html index 396153385..ccbc00764 100644 --- a/cypress/platform/knsv.html +++ b/cypress/platform/knsv.html @@ -31,23 +31,24 @@