debian-mirror-gitlab/features/steps/project/search_code.rb

21 lines
537 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
class ProjectSearchCode < Spinach::FeatureSteps
include SharedAuthentication
include SharedProject
include SharedPaths
step 'I search for term "coffee"' do
fill_in "search", with: "coffee"
click_button "Go"
click_link 'Repository Code'
end
step 'I should see files from repository containing "coffee"' do
page.should have_content 'coffee'
page.should have_content 'CONTRIBUTING.md'
end
step 'I should see empty result' do
page.should have_content "We couldn't find any matching code"
end
end