gitlabhq/features/steps/dashboard/dashboard_search.rb

31 lines
738 B
Ruby
Raw Normal View History

class DashboardSearch < Spinach::FeatureSteps
2012-09-10 17:35:03 +02:00
include SharedAuthentication
include SharedPaths
include SharedProject
2012-09-10 17:35:03 +02:00
Given 'I search for "Sho"' do
fill_in "dashboard_search", with: "Sho"
click_button "Search"
end
Then 'I should see "Shop" project link' do
page.should have_link "Shop"
end
Given 'I search for "Contibuting"' do
fill_in "dashboard_search", with: "Contibuting"
click_button "Search"
end
And 'Project "Shop" has wiki page "Contibuting guide"' do
@wiki_page = create :wiki,
project: @project,
title: "Contibuting guide",
slug: "contributing"
end
Then 'I should see "Contibuting guide" wiki link' do
page.should have_link "Contibuting guide"
end
end