Tests improved
This commit is contained in:
parent
23f8f13ea4
commit
804ae05c58
2 changed files with 27 additions and 1 deletions
|
@ -4,5 +4,11 @@ Feature: Dashboard
|
||||||
And I own project "Shop"
|
And I own project "Shop"
|
||||||
And I visit dashboard projects page
|
And I visit dashboard projects page
|
||||||
|
|
||||||
Scenario: I should see issues list
|
Scenario: I should see projects list
|
||||||
Then 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
|
||||||
|
|
||||||
|
|
||||||
|
|
20
features/steps/dashboard/dashboard_projects.rb
Normal file
20
features/steps/dashboard/dashboard_projects.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue