mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-13 02:24:31 +00:00
6a3bdd32ea
Lanes are going to be modeled via the parents context-pad only. This commit * removes lanes from the palette * adds lane actions to the context-pad Related to #379
34 lines
892 B
JavaScript
34 lines
892 B
JavaScript
'use strict';
|
|
|
|
var TestHelper = require('../../../TestHelper');
|
|
|
|
/* global bootstrapModeler, inject */
|
|
|
|
var modelingModule = require('../../../../lib/features/modeling'),
|
|
paletteModule = require('../../../../lib/features/palette'),
|
|
coreModule = require('../../../../lib/core');
|
|
|
|
var domQuery = require('min-dom/lib/query');
|
|
|
|
|
|
describe('features/palette', function() {
|
|
|
|
var diagramXML = require('../../../fixtures/bpmn/features/replace/01_replace.bpmn');
|
|
|
|
var testModules = [ coreModule, modelingModule, paletteModule ];
|
|
|
|
beforeEach(bootstrapModeler(diagramXML, { modules: testModules }));
|
|
|
|
|
|
it('should provide BPMN modeling palette', inject(function(canvas, palette) {
|
|
|
|
// when
|
|
var paletteElement = domQuery('.djs-palette', canvas._container);
|
|
var entries = domQuery.all('.entry', paletteElement);
|
|
|
|
// then
|
|
expect(entries.length).to.equal(10);
|
|
}));
|
|
|
|
});
|