Commit c41f265fa4d8b4a749a146219cc547d29ccc4592
Committed by
Rafael Manzo
1 parent
63b8d886
Exists in
colab
and in
4 other branches
Acceptance tests for the project validations on creation
Showing
1 changed file
with
22 additions
and
1 deletions
Show diff stats
features/project/create.feature
| ... | ... | @@ -18,4 +18,25 @@ Feature: Project Creation |
| 18 | 18 | And I fill the Description field with "Web Service to collect metrics" |
| 19 | 19 | When I press the Create Project button |
| 20 | 20 | Then I should see Kalibro |
| 21 | - And I should see Web Service to collect metrics | |
| 22 | 21 | \ No newline at end of file |
| 22 | + And I should see Web Service to collect metrics | |
| 23 | + | |
| 24 | + @kalibro_restart | |
| 25 | + Scenario: project creation with already taken name | |
| 26 | + Given I am a regular user | |
| 27 | + And I am signed in | |
| 28 | + And I have a project named "Kalibro" | |
| 29 | + And I am at the New Project page | |
| 30 | + And I fill the Name field with "Kalibro" | |
| 31 | + And I fill the Description field with "Web Service to collect metrics" | |
| 32 | + When I press the Create Project button | |
| 33 | + Then I should see There's already | |
| 34 | + | |
| 35 | + @kalibro_restart | |
| 36 | + Scenario: project creation with blank name | |
| 37 | + Given I am a regular user | |
| 38 | + And I am signed in | |
| 39 | + And I am at the New Project page | |
| 40 | + And I fill the Name field with " " | |
| 41 | + And I fill the Description field with "Web Service to collect metrics" | |
| 42 | + When I press the Create Project button | |
| 43 | + Then I should see Name can't be blank | |
| 23 | 44 | \ No newline at end of file | ... | ... |