Add activity spec code
[sdc/sdc-workflow-designer.git] / workflow-bdd / features / ActivitySpecStatus.feature
1 Feature: Activity Spec Status
2
3   Scenario: Invalid Status Transition
4     When I want to set the input data to file "resources/json/createActivitySpec.json"
5     Then I want to update the input property "name" with a random value
6     When I want to create an ActivitySpec
7     Then I want to check property "id" exists
8     And I want to check property "versionId" exists
9
10     When I want to get the ActivitySpec for the current item
11     Then I want to check property "status" for value "Draft"
12
13     Then I want the following to fail with response status code 422
14     When I want to call action "DEPRECATE" on this ActivitySpec item
15
16     Then I want the following to fail with response status code 422
17     When I want to call action "DELETE" on this ActivitySpec item
18
19     When I want to call action "CERTIFY" on this ActivitySpec item
20     Then I want the following to fail with response status code 422
21     When I want to call action "CERTIFY" on this ActivitySpec item