From 0540c55c4a9a40d839cf406536e0fd99591c46ac Mon Sep 17 00:00:00 2001 From: Maciej Barelkowski Date: Tue, 27 Feb 2024 18:04:32 +0100 Subject: [PATCH] test: remove redundant tests --- .../zeebe/OutputPropagationProps.spec.js | 241 ------------------ 1 file changed, 241 deletions(-) diff --git a/test/spec/provider/zeebe/OutputPropagationProps.spec.js b/test/spec/provider/zeebe/OutputPropagationProps.spec.js index 4605cbbb1..463d09b2f 100644 --- a/test/spec/provider/zeebe/OutputPropagationProps.spec.js +++ b/test/spec/provider/zeebe/OutputPropagationProps.spec.js @@ -325,247 +325,6 @@ describe('provider/zeebe - OutputPropagationProps', function() { describe('integration', function() { - describe('remove zeebe:outputParameters', function() { - - describe('when toggling on with zeebe:outputParameters and zeebe:inputParameters', function() { - - let callActivity; - - - describe('zeebe:propagateAllChildVariables explicitly set', function() { - - beforeEach(inject(async function(elementRegistry, selection) { - - // given - callActivity = elementRegistry.get('CallActivity_6'); - - // when - await act(() => { - selection.select(callActivity); - }); - - const slider = domQuery('[data-entry-id=propagateAllChildVariables] .bio-properties-panel-toggle-switch__slider', container); - - clickInput(slider); - })); - - - it('should execute', function() { - - // then - const outputParameters = getOutputParameters(callActivity); - - expect(outputParameters).to.have.length(0); - }); - - - it('should undo', inject(function(commandStack) { - - // when - commandStack.undo(); - - // then - const outputParameters = getOutputParameters(callActivity); - - expect(outputParameters).to.exist; - expect(outputParameters).to.have.length(1); - })); - - - it('should undo/redo', inject(function(commandStack) { - - // when - commandStack.undo(); - commandStack.redo(); - - // then - const outputParameters = getOutputParameters(callActivity); - - expect(outputParameters).to.have.length(0); - })); - - }); - - - describe('zeebe:propagateAllChildVariables not explicitly set (legacy bpmn:CallActivity)', function() { - - beforeEach(inject(async function(selection, elementRegistry) { - - // given - callActivity = elementRegistry.get('CallActivity_4'); - - // when - await act(() => { - selection.select(callActivity); - }); - - const slider = domQuery('[data-entry-id=propagateAllChildVariables] .bio-properties-panel-toggle-switch__slider', container); - - clickInput(slider); - })); - - - it('should execute', function() { - - // then - const outputParameters = getOutputParameters(callActivity); - - expect(outputParameters).to.have.length(0); - }); - - - it('should undo', inject(function(commandStack) { - - // when - commandStack.undo(); - - // then - const outputParameters = getOutputParameters(callActivity); - - expect(outputParameters).to.exist; - expect(outputParameters).to.have.length(1); - })); - - - it('should undo/redo', inject(function(commandStack) { - - // when - commandStack.undo(); - commandStack.redo(); - - // then - const outputParameters = getOutputParameters(callActivity); - - expect(outputParameters).to.have.length(0); - })); - - }); - - }); - - }); - - - describe('remove zeebe:IoMapping', function() { - - describe('when toggling on with outputParameters', function() { - - let shape; - - describe(' explicitly set', function() { - - beforeEach(inject(async function(selection, elementRegistry) { - - // given - shape = elementRegistry.get('CallActivity_6'); - - // when - await act(() => { - selection.select(shape); - }); - - const slider = domQuery('[data-entry-id=propagateAllChildVariables] .bio-properties-panel-toggle-switch__slider', container); - - clickInput(slider); - })); - - - it('should execute', function() { - - // then - const inputOutput = getIoMapping(shape); - expect(inputOutput).not.to.exist; - }); - - - it('should undo', inject(function(commandStack) { - - // when - commandStack.undo(); - - // then - const outputParameters = getOutputParameters(shape); - expect(outputParameters).to.exist; - expect(outputParameters.length).to.equal(1); - - const inputOutput = getIoMapping(shape); - expect(inputOutput).to.exist; - })); - - - it('should undo/redo', inject(function(commandStack) { - - // when - commandStack.undo(); - commandStack.redo(); - - // then - const inputOutput = getIoMapping(shape); - expect(inputOutput).not.to.exist; - })); - - }); - - - describe(' not explicitly set (legacy callActivity)', function() { - - beforeEach(inject(async function(selection, elementRegistry) { - - // given - shape = elementRegistry.get('CallActivity_4'); - - // when - await act(() => { - selection.select(shape); - }); - - const slider = domQuery('[data-entry-id=propagateAllChildVariables] .bio-properties-panel-toggle-switch__slider', container); - - clickInput(slider); - })); - - - it('should execute', function() { - - // then - const inputOutput = getIoMapping(shape); - expect(inputOutput).not.to.exist; - }); - - - it('should undo', inject(function(commandStack) { - - // when - commandStack.undo(); - - // then - const outputParameters = getOutputParameters(shape); - expect(outputParameters).to.exist; - expect(outputParameters.length).to.equal(1); - - const inputOutput = getIoMapping(shape); - expect(inputOutput).to.exist; - })); - - - it('should undo/redo', inject(function(commandStack) { - - // when - commandStack.undo(); - commandStack.redo(); - - // then - const inputOutput = getIoMapping(shape); - expect(inputOutput).not.to.exist; - })); - - }); - - }); - - }); - - describe('set zeebe:propagateAllChildVariables to false', function() { describe('when adding output parameters', function() {