Commit 804ae05c58984badf9041509fb01e950d02a71e1
1 parent
23f8f13e
Exists in
master
and in
4 other branches
Tests improved
Showing
2 changed files
with
27 additions
and
1 deletions
Show diff stats
features/dashboard/projects.feature
@@ -4,5 +4,11 @@ Feature: Dashboard | @@ -4,5 +4,11 @@ Feature: Dashboard | ||
4 | And I own project "Shop" | 4 | And I own project "Shop" |
5 | And I visit dashboard projects page | 5 | And I visit dashboard projects page |
6 | 6 | ||
7 | - Scenario: I should see issues list | 7 | + Scenario: I should see projects list |
8 | Then I should see projects list | 8 | Then I should see projects list |
9 | + | ||
10 | + Scenario: I should see project I am looking for | ||
11 | + Given I search for "Sho" | ||
12 | + Then I should see "Shop" project link | ||
13 | + | ||
14 | + |
@@ -0,0 +1,20 @@ | @@ -0,0 +1,20 @@ | ||
1 | +class Dashboard < Spinach::FeatureSteps | ||
2 | + include SharedAuthentication | ||
3 | + include SharedPaths | ||
4 | + include SharedProject | ||
5 | + | ||
6 | + Then 'I should see projects list' do | ||
7 | + @user.authorized_projects.all.each do |project| | ||
8 | + page.should have_link project.name_with_namespace | ||
9 | + end | ||
10 | + end | ||
11 | + | ||
12 | + Given 'I search for "Sho"' do | ||
13 | + fill_in "dashboard_projects_search", with: "Sho" | ||
14 | + click_button "Search" | ||
15 | + end | ||
16 | + | ||
17 | + Then 'I should see "Shop" project link' do | ||
18 | + page.should have_link "Shop" | ||
19 | + end | ||
20 | +end |