Skip to content

Commit

Permalink
Merge branch 'master' into #78-add-option-to-delete-group-withou-chil…
Browse files Browse the repository at this point in the history
…dren
  • Loading branch information
AlexanderZellober committed May 6, 2021
2 parents e61c9d0 + 4f37874 commit e60cdb3
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 18 deletions.
4 changes: 4 additions & 0 deletions app/domain-story-modeler/language/DomainStoryRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,10 @@ DomainStoryRenderer.prototype.drawConnection = function(p, element) {

makeDirty();

if (!element.businessObject.type) {
element.businessObject.type = type;
}

if (type === ACTIVITY) {
return this.drawActivity(p, element);
} else if (type === CONNECTION) {
Expand Down
10 changes: 7 additions & 3 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,21 +239,25 @@ <h3 id="headline">
<td>ctrl + A</td>
</tr>
<tr>
<td>Export DST</td>
<td>Export as .dst</td>
<td>ctrl + S</td>
</tr>
<tr>
<td>Import DST</td>
<td>Import from .dst</td>
<td>ctrl + L</td>
</tr>
<tr>
<td>Search for text (default browser funtion)</td>
<td>ctrl + F</td>
</tr>
<tr>
<td>Direct editing</td>
<td>Edit label</td>
<td>E</td>
</tr>
<tr>
<td>Copy/paste</td>
<td>ctrl + C, ctrl + V</td>
</tr>
<tr>
<td>Hand tool</td>
<td>H</td>
Expand Down
28 changes: 16 additions & 12 deletions test/spec/language/DomainStoryModelerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {

import { DST_TYPE } from '../../../app/domain-story-modeler/features/import/import';

import { jsonString, brokenJsonString, oldIntricateV_0_2_0_JsonString, oldIntricateV_0_3_0_JsonString, intricateV0_5_0_JsonString, intricateV0_6_0_JSONString, intricateConfig } from './dstJsons';
import { jsonString, jsonString2, brokenJsonString, oldIntricateV_0_2_0_JsonString, oldIntricateV_0_3_0_JsonString, intricateV0_5_0_JsonString, intricateV0_6_0_JSONString, intricateConfig } from './dstJsons';

const sinon = require('sinon');

Expand Down Expand Up @@ -252,7 +252,7 @@ describe('domainStory modeler', function() {
const jsonExport = JSON.stringify(newObject);

// then
expect(jsonExport).to.eql(jsonString);
expect(jsonExport).to.eql(jsonString2);
});
});

Expand Down Expand Up @@ -451,11 +451,13 @@ describe('domainStory modeler', function() {
}

jsonElements.forEach(element => {
let id = element.substring(
element.indexOf('id'),
element.indexOf('id') + 15
);
expect(intricateV0_5_0_JsonString.includes(id)).to.be.true;
if (element.includes('id')) {
let id = element.substring(
element.indexOf('id'),
element.indexOf('id') + 15
);
expect(intricateV0_5_0_JsonString.includes(id)).to.be.true;
}
});
});
});
Expand Down Expand Up @@ -543,11 +545,13 @@ describe('domainStory modeler', function() {
}

jsonElements.forEach(element => {
let id = element.substring(
element.indexOf('id'),
element.indexOf('id') + 15
);
expect(intricateV0_6_0_JSONString.includes(id)).to.be.true;
if (element.includes('id')) {
let id = element.substring(
element.indexOf('id'),
element.indexOf('id') + 15
);
expect(intricateV0_6_0_JSONString.includes(id)).to.be.true;
}
});
});
});
Expand Down
11 changes: 8 additions & 3 deletions test/spec/language/dstJsons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e60cdb3

Please sign in to comment.