Commit 18a0588ca8bee207e1c12d67d6e4f1e29c71be86
Committed by
Rafael Manzo
1 parent
a48fe5f3
Exists in
colab
and in
4 other branches
Acceptance test for project creation
Showing
2 changed files
with
15 additions
and
0 deletions
Show diff stats
features/project.feature
@@ -17,6 +17,17 @@ Feature: Project | @@ -17,6 +17,17 @@ Feature: Project | ||
17 | Then I should not see New Project | 17 | Then I should not see New Project |
18 | 18 | ||
19 | @kalibro_restart | 19 | @kalibro_restart |
20 | + Scenario: project creation | ||
21 | + Given I am a regular user | ||
22 | + And I am signed in | ||
23 | + And I am at the New Project page | ||
24 | + And I fill the Name field with Kalibro | ||
25 | + And I fill the Description field with Web Service to collect metrics | ||
26 | + When I press the Create Project button | ||
27 | + Then I should see Kalibro | ||
28 | + And I should see Web Service to collect metrics | ||
29 | + | ||
30 | + @kalibro_restart | ||
20 | Scenario: Should list the existing projects | 31 | Scenario: Should list the existing projects |
21 | Given I am a regular user | 32 | Given I am a regular user |
22 | And I am signed in | 33 | And I am signed in |
features/step_definitions/project_steps.rb
@@ -14,6 +14,10 @@ Given(/^I am at the sample project edit page$/) do | @@ -14,6 +14,10 @@ Given(/^I am at the sample project edit page$/) do | ||
14 | visit edit_project_path(@project.id) | 14 | visit edit_project_path(@project.id) |
15 | end | 15 | end |
16 | 16 | ||
17 | +Given(/^I am at the New Project page$/) do | ||
18 | + visit new_project_path | ||
19 | +end | ||
20 | + | ||
17 | Then(/^I should not see (.+)$/) do |text| | 21 | Then(/^I should not see (.+)$/) do |text| |
18 | page.should_not have_content(text) | 22 | page.should_not have_content(text) |
19 | end | 23 | end |