@@ -246,52 +246,6 @@ describe('<BpmnPropertiesPanelRenderer>', function() {
246
246
247
247
describe ( 'keyboard bindings (undo/redo)' , function ( ) {
248
248
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
-
295
249
it ( 'should NOT bind with keyboard binding deactivated' , async function ( ) {
296
250
const diagramXml = require ( 'test/fixtures/simple.bpmn' ) . default ;
297
251
0 commit comments