Commit c4677b12be3742536502ca94de869f3c65956404
Committed by
Rafael Manzo
1 parent
afb225b9
Exists in
colab
and in
4 other branches
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 | 87 | When I press the Save button |
88 | 88 | Then I should be at the New Range page |
89 | 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 | 93 | Scenario: With an invalid beginning (not a number) |
94 | 94 | Given I am a regular user |
95 | 95 | And I am signed in |
... | ... | @@ -103,6 +103,7 @@ Feature: Create Kalibro Range |
103 | 103 | And I fill the Comments field with "My Comment" |
104 | 104 | And I set the select field "Reading" as "My Reading" |
105 | 105 | When I press the Save button |
106 | + And I take a picture of the page | |
106 | 107 | Then I should be at the New Range page |
107 | 108 | And I should see "1 error prohibited this KalibroRange from being saved" |
108 | 109 | And I should see "Beginning is not a number" |
... | ... | @@ -140,7 +141,9 @@ Feature: Create Kalibro Range |
140 | 141 | And I set the select field "Reading" as "My Reading" |
141 | 142 | When I press the Save button |
142 | 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 | 148 | @kalibro_configuration_restart @javascript |
146 | 149 | Scenario: Should create a kalibro range with [-INF, INF] threshold | ... | ... |