stable

Clone or download

Read-only

request #14057 Add Cypress test for Workflow Simple mode

No functional change expected. When I needed to add "data-test" attributes, I sometimes noticed missing unit tests so I took the opportunity to add them as well. The test should create a workflow on the "Status" field, click on transitions, configure a state with pre-conditions and a post-action, delete one transition and then delete the entire workflow. Change-Id: Ie53ee748009388f7fcc7b5ffea9407ae0e9bd388

Modified Files

Name
M plugins/tracker/include/Tracker/TrackerManager.class.php +1 −1 Go to diff View file
A plugins/tracker/www/scripts/workflow-transitions/src/components/ConfigureStateButton.test.js +53 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/ConfigureStateButton.vue +1 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/FirstConfiguration/FirstConfigurationSections.test.js +1 −1 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/FirstConfiguration/FirstConfigurationSections.vue +5 −7 Go to diff View file
A plugins/tracker/www/scripts/workflow-transitions/src/components/Header/ChangeFieldConfirmationModal.test.js +50 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/Header/ChangeFieldConfirmationModal.vue +19 −9 Go to diff View file
A plugins/tracker/www/scripts/workflow-transitions/src/components/Header/WorkflowFieldChange.test.js +72 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/Header/WorkflowFieldChange.vue +3 −5 Go to diff View file
A plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/Empty/EmptyPostAction.test.js +38 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/Empty/EmptyPostAction.vue +1 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/FilledPreConditionsSection.test.js +25 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/FilledPreConditionsSection.vue +4 −4 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/PostAction/FrozenFieldsAction.test.js +7 −1 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/PostAction/FrozenFieldsAction.vue +8 −6 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/PostAction/PostAction.test.js +6 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/PostAction/PostAction.vue +1 −1 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/PostActionsSection.test.js +14 −2 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/PostActionsSection.vue +1 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/PreConditionsSection.vue +1 −1 Go to diff View file
A plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/TransitionModal.test.js +138 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/TransitionModal.vue +4 −0 Go to diff View file
M plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionsMatrixSection.vue +2 −2 Go to diff View file
A src/www/scripts/user-group-constants.js +21 −0 Go to diff View file
A tests/e2e/_fixtures/tracker_project/project.xml +154 −0 Go to diff View file
A tests/e2e/_fixtures/tracker_project/users.xml +35 −0 Go to diff View file
M tests/e2e/full/cypress/integration/check_permissions_spec.js +1 −4 Go to diff View file
A tests/e2e/full/cypress/integration/tracker_workflow_spec.js +120 −0 Go to diff View file
M tests/e2e/full/cypress/support/commands.js +5 −0 Go to diff View file
M tests/e2e/full/tuleap/setup.sh +1 −0 Go to diff View file