gitlab-org--gitlab-foss/features/steps/project/source/search_code.rb

20 lines
527 B
Ruby
Raw Normal View History

class Spinach::Features::ProjectSourceSearchCode < Spinach::FeatureSteps
2013-04-14 13:07:11 -04:00
include SharedAuthentication
include SharedProject
include SharedPaths
step 'I search for term "coffee"' do
fill_in "search", with: "coffee"
2013-04-14 13:07:11 -04:00
click_button "Go"
end
step 'I should see files from repository containing "coffee"' do
expect(page).to have_content 'coffee'
expect(page).to have_content 'CONTRIBUTING.md'
end
step 'I should see empty result' do
expect(page).to have_content "We couldn't find any"
2013-04-14 13:07:11 -04:00
end
end