Commit c4677b12be3742536502ca94de869f3c65956404

Authored by Diego Camarinha
Committed by Rafael Manzo
1 parent afb225b9

WIP: Working on KalibroRange's create acceptance tests.

Signed off by: Daniel Alves <danpaulalves@gmail.com>
Showing 1 changed file with 6 additions and 3 deletions   Show diff stats
features/kalibro_range/create.feature
@@ -87,9 +87,9 @@ Feature: Create Kalibro Range @@ -87,9 +87,9 @@ Feature: Create Kalibro Range
87 When I press the Save button 87 When I press the Save button
88 Then I should be at the New Range page 88 Then I should be at the New Range page
89 And I should see "1 error prohibited this KalibroRange from being saved" 89 And I should see "1 error prohibited this KalibroRange from being saved"
90 - And I should see "[666.0, 42.0[ is not a valid range" 90 + And I should see "End The End value should be greater than the Beginning value."
91 91
92 - @kalibro_configuration_restart 92 + @kalibro_configuration_restart @javascript
93 Scenario: With an invalid beginning (not a number) 93 Scenario: With an invalid beginning (not a number)
94 Given I am a regular user 94 Given I am a regular user
95 And I am signed in 95 And I am signed in
@@ -103,6 +103,7 @@ Feature: Create Kalibro Range @@ -103,6 +103,7 @@ Feature: Create Kalibro Range
103 And I fill the Comments field with "My Comment" 103 And I fill the Comments field with "My Comment"
104 And I set the select field "Reading" as "My Reading" 104 And I set the select field "Reading" as "My Reading"
105 When I press the Save button 105 When I press the Save button
  106 + And I take a picture of the page
106 Then I should be at the New Range page 107 Then I should be at the New Range page
107 And I should see "1 error prohibited this KalibroRange from being saved" 108 And I should see "1 error prohibited this KalibroRange from being saved"
108 And I should see "Beginning is not a number" 109 And I should see "Beginning is not a number"
@@ -140,7 +141,9 @@ Feature: Create Kalibro Range @@ -140,7 +141,9 @@ Feature: Create Kalibro Range
140 And I set the select field "Reading" as "My Reading" 141 And I set the select field "Reading" as "My Reading"
141 When I press the Save button 142 When I press the Save button
142 Then I should be at the New Range page 143 Then I should be at the New Range page
143 - And I should see "Beginning There is already a KalibroRange with beginning 2.0! Please, choose another one." 144 + And I should see "2 errors prohibited this KalibroRange from being saved"
  145 + And I should see "Beginning Should be unique within a Metric Configuration"
  146 + And I should see "Beginning There is already a KalibroRange within these boundaries! Please, choose another interval."
144 147
145 @kalibro_configuration_restart @javascript 148 @kalibro_configuration_restart @javascript
146 Scenario: Should create a kalibro range with [-INF, INF] threshold 149 Scenario: Should create a kalibro range with [-INF, INF] threshold