Skip to content

Commit

Permalink
test(e2e): wait for marker_unique_id.html e2e test
Browse files Browse the repository at this point in the history
Sometimes, Cypress takes the screenshot for marker_unique_id.html early,
before mermaid has finished rendering the diagrams.

Fixes: 924c9e9
  • Loading branch information
aloisklink committed Sep 15, 2023
1 parent 4201e47 commit df216f7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions cypress/integration/rendering/marker_unique_id.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@ import { urlSnapshotTest } from '../../helpers/util.ts';

describe('Marker Unique IDs Per Diagram', () => {
it('should render a blue arrow tip in second digram', () => {
urlSnapshotTest('http://localhost:9000/marker_unique_id.html', {
logLevel: 1,
flowchart: { htmlLabels: false },
});
urlSnapshotTest(
'http://localhost:9000/marker_unique_id.html',
{
logLevel: 1,
flowchart: { htmlLabels: false },
},
undefined,
($svg) => {
expect($svg).to.have.length(4);
}
);
});
});

0 comments on commit df216f7

Please sign in to comment.