summaryrefslogtreecommitdiff
path: root/features/search.feature
diff options
context:
space:
mode:
authorDJ Mountney <dmountney@perforce.com>2014-12-08 16:22:28 -0800
committerDJ Mountney <dmountney@perforce.com>2014-12-08 16:44:06 -0800
commit96a648ded25a46335302a7fa392cddfd2e3f4acb (patch)
tree9d3708823b5d0ade19dbdfe07e9d7f8b944cbc6c /features/search.feature
parentd3a363729ff6ba0003f4674beae1ecd44958a402 (diff)
downloadgitlab-ce-96a648ded25a46335302a7fa392cddfd2e3f4acb.tar.gz
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/search.feature')
-rw-r--r--features/search.feature16
1 files changed, 8 insertions, 8 deletions
diff --git a/features/search.feature b/features/search.feature
index 54708c17575..def21e00923 100644
--- a/features/search.feature
+++ b/features/search.feature
@@ -13,15 +13,15 @@ Feature: Search
And project has issues
When I search for "Foo"
And I click "Issues" link
- Then I should see "Foo" link
- And I should not see "Bar" link
+ Then I should see "Foo" link in the search results
+ And I should not see "Bar" link in the search results
Scenario: I should see merge requests I am looking for
And project has merge requests
When I search for "Foo"
When I click "Merge requests" link
- Then I should see "Foo" link
- And I should not see "Bar" link
+ Then I should see "Foo" link in the search results
+ And I should not see "Bar" link in the search results
Scenario: I should see project code I am looking for
When I click project "Shop" link
@@ -33,14 +33,14 @@ Feature: Search
When I click project "Shop" link
And I search for "Foo"
And I click "Issues" link
- Then I should see "Foo" link
- And I should not see "Bar" link
+ Then I should see "Foo" link in the search results
+ And I should not see "Bar" link in the search results
Scenario: I should see project merge requests
And project has merge requests
When I click project "Shop" link
And I search for "Foo"
And I click "Merge requests" link
- Then I should see "Foo" link
- And I should not see "Bar" link
+ Then I should see "Foo" link in the search results
+ And I should not see "Bar" link in the search results