Skip to content

Commit

Permalink
Fix label position
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Sep 30, 2020
1 parent b4596d7 commit d718e98
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 142 deletions.
55 changes: 7 additions & 48 deletions test/e2e/mxGraph.model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,45 +753,23 @@ describe('mxGraph model', () => {

// activity
// Task
expectModelContainsShape('task_id', {
kind: ShapeBpmnElementKind.TASK,
font: {
isBold: false,
isItalic: false,
isStrikeThrough: false,
isUnderline: true,
name: 'Arial',
size: 11.0,
},
label: 'Task',
});
expectModelContainsShape('task_id', { kind: ShapeBpmnElementKind.TASK, label: 'Task' });
expectModelContainsShape('task_with_loop_id', {
kind: ShapeBpmnElementKind.TASK,
font: {
isBold: false,
isItalic: false,
isStrikeThrough: false,
isUnderline: true,
name: 'Arial',
size: 11.0,
},
label: 'Task With Loop',
markers: [ShapeBpmnMarkerKind.LOOP],
});
expectModelContainsShape('task_with_sequential_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK,
font: {
isBold: false,
isItalic: false,
isStrikeThrough: false,
isUnderline: true,
name: 'Arial',
size: 11.0,
},
label: 'Task With Sequential Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_SEQUENTIAL],
});
expectModelContainsShape('task_with_parallel_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK,
label: 'Task With Parallel Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_PARALLEL],
});
expectModelContainsShape('task_with_flows_id', {
kind: ShapeBpmnElementKind.TASK,
font: {
isBold: false,
Expand All @@ -801,27 +779,23 @@ describe('mxGraph model', () => {
name: 'Arial',
size: 11.0,
},
label: 'Task With Parallel Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_PARALLEL],
label: 'Task with Flows',
});

// Service Task
expectModelContainsShape('service_task_id', { kind: ShapeBpmnElementKind.TASK_SERVICE, font: expectedBoldFont, label: 'Service Task' });
expectModelContainsShape('service_task_with_loop_id', {
kind: ShapeBpmnElementKind.TASK_SERVICE,
font: expectedBoldFont,
label: 'Service Task With Loop',
markers: [ShapeBpmnMarkerKind.LOOP],
});
expectModelContainsShape('service_task_with_sequential_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_SERVICE,
font: expectedBoldFont,
label: 'Service Task With Sequential Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_SEQUENTIAL],
});
expectModelContainsShape('service_task_with_parallel_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_SERVICE,
font: expectedBoldFont,
label: 'Service Task With Parallel Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_PARALLEL],
});
Expand All @@ -830,19 +804,16 @@ describe('mxGraph model', () => {
expectModelContainsShape('user_task_id', { kind: ShapeBpmnElementKind.TASK_USER, font: expectedBoldFont, label: 'User Task' });
expectModelContainsShape('user_task_with_loop_id', {
kind: ShapeBpmnElementKind.TASK_USER,
font: expectedBoldFont,
label: 'User Task With Loop',
markers: [ShapeBpmnMarkerKind.LOOP],
});
expectModelContainsShape('user_task_with_sequential_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_USER,
font: expectedBoldFont,
label: 'User Task With Sequential Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_SEQUENTIAL],
});
expectModelContainsShape('user_task_with_parallel_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_USER,
font: expectedBoldFont,
label: 'User Task With Parallel Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_PARALLEL],
});
Expand Down Expand Up @@ -893,19 +864,16 @@ describe('mxGraph model', () => {
expectModelContainsShape('send_task_id', { kind: ShapeBpmnElementKind.TASK_SEND, font: expectedBoldFont, label: 'Send Task' });
expectModelContainsShape('send_task_with_loop_id', {
kind: ShapeBpmnElementKind.TASK_SEND,
font: expectedBoldFont,
label: 'Send Task With Loop',
markers: [ShapeBpmnMarkerKind.LOOP],
});
expectModelContainsShape('send_task_with_sequential_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_SEND,
font: expectedBoldFont,
label: 'Send Task With Sequential Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_SEQUENTIAL],
});
expectModelContainsShape('send_task_with_parallel_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_SEND,
font: expectedBoldFont,
label: 'Send Task With Parallel Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_PARALLEL],
});
Expand All @@ -914,19 +882,16 @@ describe('mxGraph model', () => {
expectModelContainsShape('manual_task_id', { kind: ShapeBpmnElementKind.TASK_MANUAL, font: expectedBoldFont, label: 'Manual Task' });
expectModelContainsShape('manual_task_with_loop_id', {
kind: ShapeBpmnElementKind.TASK_MANUAL,
font: expectedBoldFont,
label: 'Manual Task With Loop',
markers: [ShapeBpmnMarkerKind.LOOP],
});
expectModelContainsShape('manual_task_with_sequential_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_MANUAL,
font: expectedBoldFont,
label: 'Manual Task With Sequential Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_SEQUENTIAL],
});
expectModelContainsShape('manual_task_with_parallel_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_MANUAL,
font: expectedBoldFont,
label: 'Manual Task With Parallel Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_PARALLEL],
});
Expand All @@ -935,19 +900,16 @@ describe('mxGraph model', () => {
expectModelContainsShape('script_task_id', { kind: ShapeBpmnElementKind.TASK_SCRIPT, font: expectedBoldFont, label: 'Script Task' });
expectModelContainsShape('script_task_with_loop_id', {
kind: ShapeBpmnElementKind.TASK_SCRIPT,
font: expectedBoldFont,
label: 'Script Task With Loop',
markers: [ShapeBpmnMarkerKind.LOOP],
});
expectModelContainsShape('script_task_with_sequential_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_SCRIPT,
font: expectedBoldFont,
label: 'Script Task With Sequential Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_SEQUENTIAL],
});
expectModelContainsShape('script_task_with_parallel_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_SCRIPT,
font: expectedBoldFont,
label: 'Script Task With Parallel Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_PARALLEL],
});
Expand All @@ -956,19 +918,16 @@ describe('mxGraph model', () => {
expectModelContainsShape('business_rule_task_id', { kind: ShapeBpmnElementKind.TASK_BUSINESS_RULE, font: expectedBoldFont, label: 'Business Rule Task' });
expectModelContainsShape('business_rule_task_with_loop_id', {
kind: ShapeBpmnElementKind.TASK_BUSINESS_RULE,
font: expectedBoldFont,
label: 'Business Rule Task With Loop',
markers: [ShapeBpmnMarkerKind.LOOP],
});
expectModelContainsShape('business_rule_task_with_sequential_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_BUSINESS_RULE,
font: expectedBoldFont,
label: 'Business Rule Task With Sequential Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_SEQUENTIAL],
});
expectModelContainsShape('business_rule_task_with_parallel_multi_instance_id', {
kind: ShapeBpmnElementKind.TASK_BUSINESS_RULE,
font: expectedBoldFont,
label: 'Business Rule Task With Parallel Multi-instance',
markers: [ShapeBpmnMarkerKind.MULTI_INSTANCE_PARALLEL],
});
Expand Down
Loading

0 comments on commit d718e98

Please sign in to comment.