diff --git a/features/plain/feature_form_validation.feature b/features/plain/feature_form_validation.feature index d533e96e..b321fe4b 100644 --- a/features/plain/feature_form_validation.feature +++ b/features/plain/feature_form_validation.feature @@ -2,34 +2,21 @@ 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: All validation should have an error class - Given I can view the features page - When I click new features - And we fill in the with '' - Then submit the form - And the "" "" "" should have an error class - - Examples: Models and their properties - | model | value | property | input_type | - | feature | to | title | input | - | feature | to do | in_order | input | - | feature | use | as_a | input | - | feature | not | i_want | input | - - Scenario Outline: Feature fields that need validation should display the appropriate error message + + 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 - | property | value | number | selector | - | title | to | 6 | li#feature_title_input | - | in_order | to do | 7 | li#feature_in_order_input | - | as_a | use | 4 | li#feature_as_a_input | - | i_want | not | 7 | li#feature_i_want_input | + | 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