diff --git a/features/project.feature b/features/project.feature index 90e258f..f2e57d4 100644 --- a/features/project.feature +++ b/features/project.feature @@ -17,6 +17,17 @@ Feature: Project Then I should not see New Project @kalibro_restart + Scenario: project creation + Given I am a regular user + And I am signed in + And I am at the New Project page + And I fill the Name field with Kalibro + And I fill the Description field with Web Service to collect metrics + When I press the Create Project button + Then I should see Kalibro + And I should see Web Service to collect metrics + + @kalibro_restart Scenario: Should list the existing projects Given I am a regular user And I am signed in diff --git a/features/step_definitions/project_steps.rb b/features/step_definitions/project_steps.rb index e8f86e7..2621ab0 100644 --- a/features/step_definitions/project_steps.rb +++ b/features/step_definitions/project_steps.rb @@ -14,6 +14,10 @@ Given(/^I am at the sample project edit page$/) do visit edit_project_path(@project.id) end +Given(/^I am at the New Project page$/) do + visit new_project_path +end + Then(/^I should not see (.+)$/) do |text| page.should_not have_content(text) end -- libgit2 0.21.2