Mejoras a los feature department, trigger wizard y cases lists
This commit is contained in:
@@ -20,16 +20,17 @@ Background:
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
And the "dep_uid" property equals "12921473252d567506e6e63079240767"
|
||||
And the "dep_parent" property equals ""
|
||||
And the "dep_title" property equals "Sales Division"
|
||||
And the "dep_status" property equals "ACTIVE"
|
||||
And the "dep_manager" property equals ""
|
||||
And the "dep_manager" property equals "38102442252d5671a629009013495090"
|
||||
And the "dep_ldap_dn" property equals ""
|
||||
And the "dep_last" property equals "0"
|
||||
And the "dep_manager_username" property equals ""
|
||||
And the "dep_manager_lastname" property equals ""
|
||||
And the "dep_manager_username" property equals "dylan"
|
||||
And the "dep_manager_firstname" property equals "Dylan"
|
||||
And the "dep_manager_lastname" property equals "Burns"
|
||||
And the "has_children" property equals "0"
|
||||
|
||||
|
||||
Scenario: Create a new department in the workspace
|
||||
Given POST this data:
|
||||
|
||||
@@ -20,14 +20,16 @@ Background:
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
And the "dep_uid" property equals "12921473252d567506e6e63079240767"
|
||||
And the "dep_parent" property equals ""
|
||||
And the "dep_title" property equals "Sales Division"
|
||||
And the "dep_status" property equals "ACTIVE"
|
||||
And the "dep_manager" property equals ""
|
||||
And the "dep_manager" property equals "38102442252d5671a629009013495090"
|
||||
And the "dep_ldap_dn" property equals ""
|
||||
And the "dep_last" property equals "0"
|
||||
And the "dep_manager_username" property equals ""
|
||||
And the "dep_manager_lastname" property equals ""
|
||||
And the "dep_manager_username" property equals "dylan"
|
||||
And the "dep_manager_firstname" property equals "Dylan"
|
||||
And the "dep_manager_lastname" property equals "Burns"
|
||||
And the "has_children" property equals "0"
|
||||
|
||||
|
||||
|
||||
@@ -25,4 +25,13 @@ Scenario Outline: Create a new departments in the workspace with bad parameters
|
||||
| test_description | dep_title | dep_parent | dep_status | error_code | error_message |
|
||||
| without dep_title | | | ACTIVE | 400 | dep_title |
|
||||
| Invalid dep_parent | Department 2 | 28036030000000000000005009591640 | ACTIVE | 400 | dep_parent |
|
||||
| Invalid dep_status | Department 3 | | TRIGGER | 400 | dep_status |
|
||||
| Invalid dep_status | Department 3 | | TRIGGER | 400 | dep_status |
|
||||
|
||||
|
||||
|
||||
Scenario: Delete a department when have asigned user (negative tests)
|
||||
Given that I want to delete a resource with the key "15978182252d5674d210310076985235"
|
||||
And I request "department/15978182252d5674d210310076985235"
|
||||
Then the response status code should be 400
|
||||
And the response status message should have the following text "<cannot be deleted>"
|
||||
|
||||
Reference in New Issue
Block a user