mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
chore: Split newshape test
This commit is contained in:
3
cypress/integration/rendering/newShapes.classic.spec.ts
Normal file
3
cypress/integration/rendering/newShapes.classic.spec.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { newShapeTest } from './newShapes';
|
||||
|
||||
newShapeTest('classic');
|
@@ -0,0 +1,3 @@
|
||||
import { newShapeTest } from './newShapes';
|
||||
|
||||
newShapeTest('handDrawn');
|
@@ -1,6 +1,5 @@
|
||||
import { imgSnapshotTest } from '../../helpers/util.ts';
|
||||
|
||||
const looks = ['classic', 'handDrawn'] as const;
|
||||
const directions = [
|
||||
'TB',
|
||||
//'BT',
|
||||
@@ -58,7 +57,7 @@ const newShapesSets = [
|
||||
newShapesSet6,
|
||||
];
|
||||
|
||||
looks.forEach((look) => {
|
||||
export const newShapeTest = (look: 'classic' | 'handDrawn') => {
|
||||
directions.forEach((direction) => {
|
||||
newShapesSets.forEach((newShapesSet) => {
|
||||
describe(`Test ${newShapesSet.join(', ')} in ${look} look and dir ${direction}`, () => {
|
||||
@@ -143,4 +142,6 @@ looks.forEach((look) => {
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// cspell:ignore clazz
|
Reference in New Issue
Block a user