summaryrefslogtreecommitdiff
path: root/features/steps/project/search_code.rb
blob: 5753296251f661856453d4c90b4faabd071ce9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class Spinach::Features::ProjectSearchCode < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedProject
  include SharedPaths

  step 'I search for term "coffee"' do
    fill_in "search", with: "coffee"
    click_button "Go"
  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"
  end
end