stable
Clone or download
Part of story #12187 configure workflow pre & post actions at target state level How to test: - Browse a workflow in simple mode. - When there are multiple transitions in a column, no confirmation will be asked. - When you click on the last transition of a column, a confirmation popover will be shown. - When you confirm, the transition will be deleted. - No functional change for workflow in advanced mode (a confirmation is always asked). Reverts cfbe029c75bda3a5e0d8f9f31696ddeaa34c376b We need to mock "tlp" which is "external" as per our webpack config. We therefore need to include tlp mocks before each test. Furthermore it reduces the number of "wait until bundle finished: noop" messages and does not break when we add new files. Change-Id: Ib5d6b57e40d6b70187baa9e1814c7e05383d4452
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/www/scripts/workflow-transitions/karma.conf.js | +3 | −3 | Go to diff View file |
A | plugins/tracker/www/scripts/workflow-transitions/src/app.spec.js | +43 | −0 | Go to diff View file |
A | plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionDeleter.spec.js | +187 | −0 | Go to diff View file |
A | plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionDeleter.vue | +135 | −0 | Go to diff View file |
M | plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionMatrixContent.spec.js | +15 | −80 | Go to diff View file |
M | plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionMatrixContent.vue | +11 | −54 | Go to diff View file |