diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000000..bbda16a663 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [knsv] +#patreon: # Replace with a single Patreon username +#open_collective: # Replace with a single Open Collective username +#ko_fi: # Replace with a single Ko-fi username +#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +#liberapay: # Replace with a single Liberapay username +#issuehunt: # Replace with a single IssueHunt username +#otechie: # Replace with a single Otechie username +#custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/cypress/integration/rendering/current.spec.js b/cypress/integration/rendering/current.spec.js index 1ed1c9d5cd..bd4eb888b5 100644 --- a/cypress/integration/rendering/current.spec.js +++ b/cypress/integration/rendering/current.spec.js @@ -2,19 +2,20 @@ import { imgSnapshotTest } from '../../helpers/util'; describe('State diagram', () => { - it('should render a flowchart full of circles', () => { + it('should render a state with states in it', () => { imgSnapshotTest( ` - stateDiagram - State1: The state with a note - note right of State1 - Important information! You\ncan write - notes with multiple lines... - Here is another line... - And another line... - end note + stateDiagram + state PersonalizedCockpit { + Other + state Parent { + C + } + } `, - {} + { + logLevel: 0, + } ); }); }); diff --git a/cypress/integration/rendering/stateDiagram.spec.js b/cypress/integration/rendering/stateDiagram.spec.js index e4231261e8..0ab68713ef 100644 --- a/cypress/integration/rendering/stateDiagram.spec.js +++ b/cypress/integration/rendering/stateDiagram.spec.js @@ -106,6 +106,22 @@ describe('State diagram', () => { ); cy.get('svg'); }); + it('should render a note with multiple lines in it', () => { + imgSnapshotTest( + ` + stateDiagram + State1: The state with a note + note right of State1 + Important information! You\ncan write + notes with multiple lines... + Here is another line... + And another line... + end note + `, + {} + ); + }); + it('should render a states with descriptions including multi-line descriptions', () => { imgSnapshotTest( ` @@ -276,4 +292,33 @@ describe('State diagram', () => { ); cy.get('svg'); }); + it('should render a state with states in it', () => { + imgSnapshotTest( + ` + stateDiagram + state PilotCockpit { + state Parent { + C + } + } + `, + { + logLevel: 0, + } + ); + }); + it('Simplest compone state', () => { + imgSnapshotTest( + ` + stateDiagram + state Parent { + C + } + `, + { + logLevel: 0, + } + ); + }); + }); diff --git a/cypress/platform/current.html b/cypress/platform/current.html index c586863d94..a1d3f0774e 100644 --- a/cypress/platform/current.html +++ b/cypress/platform/current.html @@ -8,12 +8,18 @@

info below

-
graph TB - a --> b - a --> c - a --> d -
- +
+
stateDiagram + [*] --> State1 + State1 --> State2 : Transition 1 + State1 --> State3 : Transition 2 + State1 --> State4 : Transition 3 + State1 --> State5 : Transition 4 + State2 --> State3 : Transition 5 + State1 --> [*] +
+
+