diff options
author | Andrew8xx8 <avk@8xx8.ru> | 2013-03-12 13:40:54 +0400 |
---|---|---|
committer | Andrew8xx8 <avk@8xx8.ru> | 2013-03-12 13:41:23 +0400 |
commit | 804ae05c58984badf9041509fb01e950d02a71e1 (patch) | |
tree | 2c8d57b2d40027e805c1321ab0e4aa4f48686ca2 /features | |
parent | 23f8f13ea442cc878a2a4fc61b7ff9f492517c27 (diff) | |
download | gitlab-ce-804ae05c58984badf9041509fb01e950d02a71e1.tar.gz |
Tests improved
Diffstat (limited to 'features')
-rw-r--r-- | features/dashboard/projects.feature | 8 | ||||
-rw-r--r-- | features/steps/dashboard/dashboard_projects.rb | 20 |
2 files changed, 27 insertions, 1 deletions
diff --git a/features/dashboard/projects.feature b/features/dashboard/projects.feature index 17022dab54f..852252715c5 100644 --- a/features/dashboard/projects.feature +++ b/features/dashboard/projects.feature @@ -4,5 +4,11 @@ Feature: Dashboard And I own project "Shop" And I visit dashboard projects page - Scenario: I should see issues list + Scenario: I should see projects list Then I should see projects list + + Scenario: I should see project I am looking for + Given I search for "Sho" + Then I should see "Shop" project link + + diff --git a/features/steps/dashboard/dashboard_projects.rb b/features/steps/dashboard/dashboard_projects.rb new file mode 100644 index 00000000000..9b9d4a53c54 --- /dev/null +++ b/features/steps/dashboard/dashboard_projects.rb @@ -0,0 +1,20 @@ +class Dashboard < Spinach::FeatureSteps + include SharedAuthentication + include SharedPaths + include SharedProject + + Then 'I should see projects list' do + @user.authorized_projects.all.each do |project| + page.should have_link project.name_with_namespace + end + end + + Given 'I search for "Sho"' do + fill_in "dashboard_projects_search", with: "Sho" + click_button "Search" + end + + Then 'I should see "Shop" project link' do + page.should have_link "Shop" + end +end |