From 4ac6016f8e666f8ae29fc4dfb458e8fccdbbaa6d Mon Sep 17 00:00:00 2001 From: Wendy Nestor Date: Wed, 18 Jun 2014 15:43:07 -0400 Subject: [PATCH] Se descomento varios escenarios de los features calendar, pm group, pm user y roles --- .../calendar/negative_tests_calendar.feature | 10 +++++----- .../departments/basic_sequence_department.feature | 2 +- .../pm_group/negative_tests_pm_group.feature | 2 +- .../admin_setup/pm_user/negative_tests_pm_user.feature | 10 +++++----- .../admin_setup/roles/negative_tests_roles.feature | 10 +++++----- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/features/backend/admin_setup/calendar/negative_tests_calendar.feature b/features/backend/admin_setup/calendar/negative_tests_calendar.feature index 4c92af53c..2aa083afa 100644 --- a/features/backend/admin_setup/calendar/negative_tests_calendar.feature +++ b/features/backend/admin_setup/calendar/negative_tests_calendar.feature @@ -166,8 +166,8 @@ Scenario: Create a new Calendars (with work days less than 3) -#Scenario: Delete Calendar when it is assigned to a project "Test Process" -# Given that I want to delete a "Calendar" -# And I request "calendar/14606161052f50839307899033145440" -# Then the response status code should be 400 -# And the response status message should have the following text "cannot be deleted" \ No newline at end of file +Scenario: Delete Calendar when it is assigned to a project "Test Process" + Given that I want to delete a "Calendar" + And I request "calendar/14606161052f50839307899033145440" + Then the response status code should be 400 + And the response status message should have the following text "cannot be deleted" \ No newline at end of file diff --git a/features/backend/admin_setup/departments/basic_sequence_department.feature b/features/backend/admin_setup/departments/basic_sequence_department.feature index 74d23488b..f7a02b42d 100644 --- a/features/backend/admin_setup/departments/basic_sequence_department.feature +++ b/features/backend/admin_setup/departments/basic_sequence_department.feature @@ -38,7 +38,7 @@ Background: Then the response status code should be 200 And the response charset is "UTF-8" And the type is "array" - And the response has 7 record + And the response has 6 record Scenario: Create a new department in the workspace diff --git a/features/backend/admin_setup/pm_group/negative_tests_pm_group.feature b/features/backend/admin_setup/pm_group/negative_tests_pm_group.feature index 57f3abd48..0daa4ff0d 100644 --- a/features/backend/admin_setup/pm_group/negative_tests_pm_group.feature +++ b/features/backend/admin_setup/pm_group/negative_tests_pm_group.feature @@ -68,7 +68,7 @@ Feature: PM Group Negative Tests And the response status message should have the following text "already assigned" - # Scenario: Delete a pm_group when have asigned user (negative tests) "Credit Supervisors" + # Scenario: Delete a pm_group when have asigned user and this is assigned to a task (negative tests) "Credit Supervisors" # Given that I want to delete a "Group" # And I request "group/53254668952d56744764b08079100881" # Then the response status code should be 400 diff --git a/features/backend/admin_setup/pm_user/negative_tests_pm_user.feature b/features/backend/admin_setup/pm_user/negative_tests_pm_user.feature index 132051be6..de0c934a8 100644 --- a/features/backend/admin_setup/pm_user/negative_tests_pm_user.feature +++ b/features/backend/admin_setup/pm_user/negative_tests_pm_user.feature @@ -74,8 +74,8 @@ Feature: PM User Main Tests | Create with User exist | Peter | Vanko | peter | colosaqatest@gmail.com | | | | | | | | | 2016-02-15 | | ACTIVE | PROCESSMAKER_OPERATOR | sample | sample | 400 | string | exists | - # Scenario: Delete a pm_user when have asigned cases (negative tests) "amy" - # Given that I want to delete a "User" - # And I request "user/25286582752d56713231082039265791" - # Then the response status code should be 400 - # And the response status message should have the following text "cannot be deleted" \ No newline at end of file +Scenario: Delete a pm_user when have asigned cases (negative tests) "amy with 4 cases" + Given that I want to delete a "User" + And I request "user/25286582752d56713231082039265791" + Then the response status code should be 400 + And the response status message should have the following text "cannot be deleted" \ No newline at end of file diff --git a/features/backend/admin_setup/roles/negative_tests_roles.feature b/features/backend/admin_setup/roles/negative_tests_roles.feature index 1f43b8f76..a336b4f59 100644 --- a/features/backend/admin_setup/roles/negative_tests_roles.feature +++ b/features/backend/admin_setup/roles/negative_tests_roles.feature @@ -67,8 +67,8 @@ Scenario Outline: Assign Permission "PM_DASHBOARD" to Role (NEGATIVE TESTS) | Create rol without per_uid | 00000000000000000000000000000004 | | 400 | per_uid | - # Scenario: Delete a role when have asigned users (negative tests) "PROCESSMAKER_OPERATOR" - # Given that I want to delete a "Role" - # And I request "role/00000000000000000000000000000003" - # Then the response status code should be 400 - # And the response status message should have the following text "cannot be deleted" \ No newline at end of file +Scenario: Delete a role when have asigned users (negative tests) "PROCESSMAKER_OPERATOR" + Given that I want to delete a "Role" + And I request "role/00000000000000000000000000000003" + Then the response status code should be 400 + And the response status message should have the following text "cannot be deleted" \ No newline at end of file