bpmn-js/test/spec/import/elements/GroupsSpec.js
Niklas Kiefer 89886d7c12 feat(ElementFactory): add #isFrame property on group creation
This allows basic support for diagram-js frame elements.

Closes #959
Closes #960
2019-05-07 14:36:32 +02:00

35 lines
610 B
JavaScript

import {
bootstrapModeler,
inject
} from 'test/TestHelper';
describe('import - groups', function() {
describe('should import groups', function() {
it('with frame property set', function(done) {
var xml = require('./Groups.bpmn');
// given
bootstrapModeler(xml)(function(err) {
// when
inject(function(elementRegistry) {
// then
var groupElement = elementRegistry.get('Group_1');
expect(groupElement).to.exist;
expect(groupElement.isFrame).to.be.true;
done(err);
})();
});
});
});
});