Skip to content

Commit 97a9b22

Browse files
test: remove deprecated keyboard.bindTo
1 parent 2c91cbe commit 97a9b22

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

test/spec/BpmnPropertiesPanelRenderer.spec.js

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -246,52 +246,6 @@ describe('<BpmnPropertiesPanelRenderer>', function() {
246246

247247
describe('keyboard bindings (undo/redo)', function() {
248248

249-
it('should bind', async function() {
250-
const diagramXml = require('test/fixtures/simple.bpmn').default;
251-
252-
const keyboardTarget = document.createElement('div');
253-
254-
const { modeler } = await createModeler(diagramXml, {
255-
keyboard: {
256-
bindTo: keyboardTarget
257-
}
258-
});
259-
260-
modeler.invoke(function(eventBus, elementRegistry, modeling) {
261-
262-
// given
263-
modeling.updateLabel(elementRegistry.get('Task_1'), 'FOOBAR');
264-
265-
const executeSpy = sinon.spy();
266-
const undoSpy = sinon.spy();
267-
268-
eventBus.on('commandStack.execute', executeSpy);
269-
eventBus.on('commandStack.reverted', undoSpy);
270-
271-
const panelParent = domQuery('.bio-properties-panel-container', propertiesContainer);
272-
273-
// when
274-
panelParent.dispatchEvent(createKeyEvent('z', {
275-
ctrlKey: true
276-
}));
277-
278-
// then
279-
// undo got executed
280-
expect(undoSpy).to.have.been.called;
281-
282-
// but when
283-
panelParent.dispatchEvent(createKeyEvent('y', {
284-
ctrlKey: true
285-
}));
286-
287-
// then
288-
// redo got executed
289-
expect(executeSpy).to.have.been.called;
290-
});
291-
292-
});
293-
294-
295249
it('should NOT bind with keyboard binding deactivated', async function() {
296250
const diagramXml = require('test/fixtures/simple.bpmn').default;
297251

0 commit comments

Comments
 (0)