diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-08-13 17:48:21 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-08-24 13:59:01 +0300 |
commit | 56527b63e8a09e0fe4967eabf08638d853e6b2b5 (patch) | |
tree | 0ee484fe1bb0dbdae4333e30ad7c3c36251c1bcf /features/steps/search.rb | |
parent | 24b282aeeaf5ba41c6b73100051eb48428787770 (diff) |
Ability to search milestones
Diffstat (limited to 'features/steps/search.rb')
-rw-r--r-- | features/steps/search.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/features/steps/search.rb b/features/steps/search.rb index 87893aa0205..79273cbad9a 100644 --- a/features/steps/search.rb +++ b/features/steps/search.rb @@ -41,6 +41,12 @@ class Spinach::Features::Search < Spinach::FeatureSteps end end + step 'I click "Milestones" link' do + page.within '.search-filter' do + click_link 'Milestones' + end + end + step 'I click "Wiki" link' do page.within '.search-filter' do click_link 'Wiki' @@ -72,6 +78,11 @@ class Spinach::Features::Search < Spinach::FeatureSteps create(:merge_request, :simple, title: "Bar", source_project: project, target_project: project) end + step 'project has milestones' do + create(:milestone, title: "Foo", project: project) + create(:milestone, title: "Bar", project: project) + end + step 'I should see "Foo" link in the search results' do page.within('.results') do find(:css, '.search-results').should have_link 'Foo' |