chore: add e2e test that shows db cleanup problem

This commit is contained in:
Faris Nabiev
2023-10-13 00:02:46 +03:00
parent df068dbde8
commit 18ea27ac58
3 changed files with 62 additions and 3 deletions

View File

@@ -930,4 +930,32 @@ context('Sequence diagram', () => {
});
});
});
context('db clear', () => {
it('should render diagram after fixing destroy participant error', () => {
renderGraph([
`sequenceDiagram
Alice->>Bob: Hello Bob, how are you ?
Bob->>Alice: Fine, thank you. And you?
create participant Carl
Alice->>Carl: Hi Carl!
create actor D as Donald
Carl->>D: Hi!
destroy Carl
Alice-xCarl: We are too many
destroy Bo
Bob->>Alice: I agree`,
`sequenceDiagram
Alice->>Bob: Hello Bob, how are you ?
Bob->>Alice: Fine, thank you. And you?
create participant Carl
Alice->>Carl: Hi Carl!
create actor D as Donald
Carl->>D: Hi!
destroy Carl
Alice-xCarl: We are too many
destroy Bob
Bob->>Alice: I agree`,
]);
});
});
});