2014-02-21 14:40:30 -04:00
|
|
|
@ProcessMakerMichelangelo @RestAPI
|
|
|
|
|
Feature: Reorder Steps
|
|
|
|
|
|
|
|
|
|
Scenario: List all the Sub Processs (result 0 Sub Processs)
|
|
|
|
|
Given that I have a valid access_token
|
2014-02-27 16:53:18 -04:00
|
|
|
And I request "project/940481651530fa1f3803525098230380/activity/677485918530fa1f80ad463004640434/step/289467030530fa28077e6a2088432104"
|
2014-02-21 14:40:30 -04:00
|
|
|
Then the response status code should be 200
|
|
|
|
|
And the response charset is "UTF-8"
|
|
|
|
|
And the type is "object"
|
|
|
|
|
And that "step_position" is set to "1"
|
|
|
|
|
|
|
|
|
|
Scenario: Change order the step
|
|
|
|
|
Given that I have a valid access_token
|
|
|
|
|
And PUT this data:
|
|
|
|
|
"""
|
2014-02-24 11:20:35 -04:00
|
|
|
{
|
|
|
|
|
"step_position": "3"
|
|
|
|
|
}
|
2014-02-21 14:40:30 -04:00
|
|
|
"""
|
2014-02-27 16:53:18 -04:00
|
|
|
And I request "project/98002714453076320a06cb4009450121/activity/677485918530fa1f80ad463004640434/step/289467030530fa28077e6a2088432104"
|
2014-02-21 14:40:30 -04:00
|
|
|
Then the response status code should be 200
|
|
|
|
|
|
|
|
|
|
Scenario: List all the Sub Processs (result 0 Sub Processs)
|
|
|
|
|
Given that I have a valid access_token
|
2014-02-27 16:53:18 -04:00
|
|
|
And I request "project/940481651530fa1f3803525098230380/activity/677485918530fa1f80ad463004640434/step/289467030530fa28077e6a2088432104"
|
2014-02-21 14:40:30 -04:00
|
|
|
Then the response status code should be 200
|
|
|
|
|
And the response charset is "UTF-8"
|
|
|
|
|
And the type is "object"
|
|
|
|
|
And that "step_position" is set to "3"
|
|
|
|
|
|
|
|
|
|
Scenario: Change order the step
|
|
|
|
|
Given that I have a valid access_token
|
|
|
|
|
And PUT this data:
|
|
|
|
|
"""
|
2014-02-24 11:20:35 -04:00
|
|
|
{
|
|
|
|
|
"step_position": "1"
|
|
|
|
|
}
|
2014-02-21 14:40:30 -04:00
|
|
|
"""
|
2014-02-27 16:53:18 -04:00
|
|
|
And I request "project/98002714453076320a06cb4009450121/activity/677485918530fa1f80ad463004640434/step/289467030530fa28077e6a2088432104"
|
2014-02-21 14:40:30 -04:00
|
|
|
Then the response status code should be 200
|
|
|
|
|
|
|
|
|
|
Scenario: List all the Sub Processs (result 0 Sub Processs)
|
|
|
|
|
Given that I have a valid access_token
|
2014-02-27 16:53:18 -04:00
|
|
|
And I request "project/940481651530fa1f3803525098230380/activity/677485918530fa1f80ad463004640434/step/289467030530fa28077e6a2088432104"
|
2014-02-21 14:40:30 -04:00
|
|
|
Then the response status code should be 200
|
|
|
|
|
And the response charset is "UTF-8"
|
|
|
|
|
And the type is "object"
|
|
|
|
|
And that "step_position" is set to "1"
|