From c4677b12be3742536502ca94de869f3c65956404 Mon Sep 17 00:00:00 2001 From: Diego Araújo Date: Thu, 5 Feb 2015 15:51:30 -0200 Subject: [PATCH] WIP: Working on KalibroRange's create acceptance tests. --- features/kalibro_range/create.feature | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/features/kalibro_range/create.feature b/features/kalibro_range/create.feature index b37ca94..d8deead 100644 --- a/features/kalibro_range/create.feature +++ b/features/kalibro_range/create.feature @@ -87,9 +87,9 @@ Feature: Create Kalibro Range When I press the Save button Then I should be at the New Range page And I should see "1 error prohibited this KalibroRange from being saved" - And I should see "[666.0, 42.0[ is not a valid range" + And I should see "End The End value should be greater than the Beginning value." - @kalibro_configuration_restart + @kalibro_configuration_restart @javascript Scenario: With an invalid beginning (not a number) Given I am a regular user And I am signed in @@ -103,6 +103,7 @@ Feature: Create Kalibro Range And I fill the Comments field with "My Comment" And I set the select field "Reading" as "My Reading" When I press the Save button + And I take a picture of the page Then I should be at the New Range page And I should see "1 error prohibited this KalibroRange from being saved" And I should see "Beginning is not a number" @@ -140,7 +141,9 @@ Feature: Create Kalibro Range And I set the select field "Reading" as "My Reading" When I press the Save button Then I should be at the New Range page - And I should see "Beginning There is already a KalibroRange with beginning 2.0! Please, choose another one." + And I should see "2 errors prohibited this KalibroRange from being saved" + And I should see "Beginning Should be unique within a Metric Configuration" + And I should see "Beginning There is already a KalibroRange within these boundaries! Please, choose another interval." @kalibro_configuration_restart @javascript Scenario: Should create a kalibro range with [-INF, INF] threshold -- libgit2 0.21.2