summaryrefslogtreecommitdiff
path: root/spec/support/search_helpers.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-11-07 20:36:58 +0200
committerValery Sizov <valery@gitlab.com>2016-11-08 12:03:23 +0200
commitebc44befdc773b39a171d38dc13c38cd6630828a (patch)
treeb52776fb22c732bafaf89e280a072118be2374b9 /spec/support/search_helpers.rb
parent6be0c160d346c67967e541a76b6fbf6fc1ba2456 (diff)
downloadgitlab-ce-ebc44befdc773b39a171d38dc13c38cd6630828a.tar.gz
Fix broken commits search24255-search-fix
Diffstat (limited to 'spec/support/search_helpers.rb')
-rw-r--r--spec/support/search_helpers.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/search_helpers.rb b/spec/support/search_helpers.rb
new file mode 100644
index 00000000000..abbbb636d66
--- /dev/null
+++ b/spec/support/search_helpers.rb
@@ -0,0 +1,5 @@
+module SearchHelpers
+ def select_filter(name)
+ find(:xpath, "//ul[contains(@class, 'search-filter')]//a[contains(.,'#{name}')]").click
+ end
+end