diff --git a/features/backend/files_manager/basic_sequence_files_manager.feature b/features/backend/files_manager/basic_sequence_files_manager.feature index 57423c129..f96272762 100644 --- a/features/backend/files_manager/basic_sequence_files_manager.feature +++ b/features/backend/files_manager/basic_sequence_files_manager.feature @@ -15,7 +15,7 @@ Feature: Files Manager Resources Given I request "project/1265557095225ff5c688f46031700471/file-manager?path=public" Then the response status code should be 200 And the response charset is "UTF-8" - And the content type is "application/json" + /root/.jenkins/jobs/MichelangeloBE/workspace/shared/sites/michelangelo/mailTemplates/1265557095225ff5c688f46031 And the content type is "application/json" And the type is "array" Scenario: Get a list templates folder of process files manager @@ -42,11 +42,11 @@ Feature: Files Manager Resources And store "prf_uid" in session array as variable "prf_uid" Examples: - | test_description | file_name | path | content | http_code | type | i | - | into public folder | testbehat.txt | public/ | test | 200 | object | 0 | - | into mailtemplates folder | testbehat.txt | templates/ | test | 200 | object | 1 | - | into public subfolder | testbehat.txt | public/test_folder | test | 200 | object | 2 | - | into mailtemplates subfolder | testbehat.txt | templates/test_folder | test | 200 | object | 3 | + | test_description | file_name | path | content | http_code | type | i | + | into public folder | testbehat1.txt | public/ | test | 200 | object | 0 | + | into mailtemplates folder | testbehat1.txt | templates/ | test | 200 | object | 1 | + | into public subfolder | testbehat1.txt | public/test_folder | test | 200 | object | 2 | + | into mailtemplates subfolder | testbehat1.txt | templates/test_folder | test | 200 | object | 3 | Scenario Outline: Post files Given PUT this data: diff --git a/features/backend/step/main_step_update_move_position.feature b/features/backend/step/main_step_update_move_position.feature index e69de29bb..1ae891508 100644 --- a/features/backend/step/main_step_update_move_position.feature +++ b/features/backend/step/main_step_update_move_position.feature @@ -0,0 +1,49 @@ +@ProcessMakerMichelangelo @RestAPI +Feature: Step update position + Scenario: List all the Sub Processs (result 0 Sub Processs) + Given that I have a valid access_token + And I request "project/106912358530c9b14ac15d3001790900/activity/467397212530c9b18435b87094293840/step/693874302530c9ba1734ad0026525748/trigger/659748303530c9b85af4d26007619346/before" + 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: + """ + { + "st_type": "BEFORE", + "st_position": "1" + } + """ + And I request "project/106912358530c9b14ac15d3001790900/activity/467397212530c9b18435b87094293840/step/693874302530c9ba1734ad0026525748/trigger/659748303530c9b85af4d26007619346" + 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 + And I request "project/106912358530c9b14ac15d3001790900/activity/467397212530c9b18435b87094293840/step/693874302530c9ba1734ad0026525748/trigger/659748303530c9b85af4d26007619346/before" + 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: + """ + { + "st_type": "BEFORE", + "st_position": "3" + } + """ + And I request "project/106912358530c9b14ac15d3001790900/activity/467397212530c9b18435b87094293840/step/693874302530c9ba1734ad0026525748/trigger/659748303530c9b85af4d26007619346" + 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 + And I request "project/106912358530c9b14ac15d3001790900/activity/467397212530c9b18435b87094293840/step/693874302530c9ba1734ad0026525748/trigger/659748303530c9b85af4d26007619346/before" + 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"