Commit 45b8ff701768357e93d10a376b9351d2867a2bd3
Committed by
Rafael Manzo
1 parent
35562a74
Exists in
colab
and in
4 other branches
Added acceptance test for non numerical grade.
Signed-off-by: Daniel Miranda <danielkza2@gmail.com> Signed-off-by: Pedro Scocco <pedroscocco@gmail.com>
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
features/reading/edit.feature
| ... | ... | @@ -43,3 +43,16 @@ Feature: Reading Edit |
| 43 | 43 | When I fill the Label field with "Average" |
| 44 | 44 | And I press the Save button |
| 45 | 45 | Then I should see "There's already" |
| 46 | + | |
| 47 | + @kalibro_restart | |
| 48 | + Scenario: editing a reading with non numerical value | |
| 49 | + Given I am a regular user | |
| 50 | + And I am signed in | |
| 51 | + And I own a sample reading group | |
| 52 | + And I have a sample reading within the sample reading group | |
| 53 | + And I am at the Edit Reading page | |
| 54 | + When I fill the Label field with "macaco" | |
| 55 | + And I fill the Grade field with "z" | |
| 56 | + And I fill the Color field with "FFFFFF" | |
| 57 | + And I press the Save button | |
| 58 | + Then I should see "Grade is not a number" | ... | ... |