Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Mountney <dmountney@perforce.com>2014-12-09 03:22:28 +0300
committerDJ Mountney <dmountney@perforce.com>2014-12-09 03:44:06 +0300
commit96a648ded25a46335302a7fa392cddfd2e3f4acb (patch)
tree9d3708823b5d0ade19dbdfe07e9d7f8b944cbc6c /features/steps/search.rb
parentd3a363729ff6ba0003f4674beae1ecd44958a402 (diff)
Fixes the search test that fails whenever faker uses a name with Bar in it. Limit check to being within the search results div.
Diffstat (limited to 'features/steps/search.rb')
-rw-r--r--features/steps/search.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/features/steps/search.rb b/features/steps/search.rb
index f3d8bd80f13..6f0e038c4d6 100644
--- a/features/steps/search.rb
+++ b/features/steps/search.rb
@@ -59,11 +59,11 @@ class Spinach::Features::Search < Spinach::FeatureSteps
create(:merge_request, :simple, title: "Bar", source_project: project, target_project: project)
end
- step 'I should see "Foo" link' do
- page.should have_link "Foo"
+ step 'I should see "Foo" link in the search results' do
+ find(:css, '.search-results').should have_link 'Foo'
end
- step 'I should not see "Bar" link' do
- page.should_not have_link "Bar"
+ step 'I should not see "Bar" link in the search results' do
+ find(:css, '.search-results').should_not have_link 'Bar'
end
end