From 087848aab7989f91f03297657c8fa76acc575bab Mon Sep 17 00:00:00 2001 From: Yomi Colledge Date: Fri, 18 Jun 2010 21:29:43 +0100 Subject: [PATCH] Removed all duplicate steps --- .../plain/feature_form_validation.feature | 15 ---------- .../plain/project_form_validation.feature | 28 ------------------- features/plain/step_form_validation.feature | 8 ------ .../plain/stories_form_validation.feature | 7 ----- 4 files changed, 58 deletions(-) diff --git a/features/plain/feature_form_validation.feature b/features/plain/feature_form_validation.feature index b321fe4b..ea393fdc 100644 --- a/features/plain/feature_form_validation.feature +++ b/features/plain/feature_form_validation.feature @@ -2,21 +2,6 @@ Feature: Feature forms should have client side validations In order to improve the performance of the salad As a system feature I want to allow for validation of the feature forms - - Scenario Outline: Feature fields that need validation should display the appropriate error message and error class - Given I can view the features page - When I click new features - And we fill in the feature with '' - Then submit the form - And I should see "Please enter at least characters." within "" - And the "" "" "" should have an error class - - Examples: Form fields and their error messages - | model | property | value | number | selector | input_type | - | feature | title | to | 6 | li#feature_title_input | input | - | feature | in_order | to do | 7 | li#feature_in_order_input | input | - | feature | as_a | use | 4 | li#feature_as_a_input | input | - | feature | i_want | not | 7 | li#feature_i_want_input | input | Scenario: A feature must be unique Given I can view the features page diff --git a/features/plain/project_form_validation.feature b/features/plain/project_form_validation.feature index d1e0fe5f..4ddbb100 100644 --- a/features/plain/project_form_validation.feature +++ b/features/plain/project_form_validation.feature @@ -2,34 +2,6 @@ Feature: Must be able to deal with our projects validations on our forms In order for us to save on resources As a user I want the form to be validated on the back end - - Scenario: A projects title should be no less than 3 letters long - Given I can view the projects page - When I click new projects - And we fill in the project title with 'so' - Then submit the form - And the error message should be "Please enter at least 3 characters." - - Scenario: A projects aim should be no less than 6 characters long - Given I can view the projects page - When I click new projects - And we fill in the project aim with 'somit' - Then submit the form - And the error message should be "Please enter at least 6 characters." - - Scenario: A JS error is displayed if a projects description is less than 12 characters long - Given I can view the projects page - When I click new projects - And we fill in the project description with 'too short' - Then submit the form - And the error message should be "Please enter at least 12 characters." - - Scenario: A projects location must be a valid project location on their system - Given I can view the projects page - When I click new projects - And we fill in the project location with '/blah/' - Then submit the form - And the error message should be "Must be a valid project location on your system." Scenario: A project must be unique Given I can view the projects page diff --git a/features/plain/step_form_validation.feature b/features/plain/step_form_validation.feature index f346deeb..a6ae5a01 100644 --- a/features/plain/step_form_validation.feature +++ b/features/plain/step_form_validation.feature @@ -3,14 +3,6 @@ Feature: Step needs basic validations As a system feature I want to be able to do basic validation oon a step - Scenario: A step need to be a minimum of 12 characters - Given I can view the steps page - When I click new steps - Then the new step form should be displayed - When we fill in the step title with 'Given' - Then submit the form - And the error message should be "Please enter at least 12 characters." - Scenario: A story invalid if it does not have 'Given' as a prefix Given I can view the steps page When I click new steps diff --git a/features/plain/stories_form_validation.feature b/features/plain/stories_form_validation.feature index ce793d01..5b425f94 100644 --- a/features/plain/stories_form_validation.feature +++ b/features/plain/stories_form_validation.feature @@ -3,13 +3,6 @@ Feature: Stories need to be validated As a system process I want to validate story attributes - Scenario: An invalid scenario should have a related error message - Given I can view the stories page - When I use the "New Story" link - And we fill in the story scenario with 'this' - Then submit the form - And the error message should be "Please enter at least 7 characters." - Scenario: If a story is not unique we need to display a error Given I can view the stories page When I use the "New Story" link