gitlabhq/features/steps/dashboard/dashboard_projects.rb

24 lines
545 B
Ruby
Raw Normal View History

2013-03-12 13:10:20 +01:00
class DashboardProjects < Spinach::FeatureSteps
2013-03-12 10:40:54 +01:00
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"
2013-03-12 12:15:14 +01:00
within ".dashboard-search-filter" do
find('button').click
end
2013-03-12 10:40:54 +01:00
end
Then 'I should see "Shop" project link' do
page.should have_link "Shop"
end
end