diff options
author | Tomislav Nikic <tnikic@gitlab.com> | 2019-07-24 08:46:53 +0200 |
---|---|---|
committer | Tomislav Nikic <tnikic@gitlab.com> | 2019-07-24 08:46:53 +0200 |
commit | dfb21c3cb95b07b7300864758900a9b97aa717f0 (patch) | |
tree | 81f8ca8b1891a9e89deaa1220c80120345cf3082 | |
parent | a6cca1e902f5c39670697589e61f41d0dde0e849 (diff) | |
download | gitlab-ce-dfb21c3cb95b07b7300864758900a9b97aa717f0.tar.gz |
Adding the missing file changes
It seems that some file changes have been lost so they are
reapplied to the CE repo.
-rw-r--r-- | qa/qa.rb | 4 | ||||
-rw-r--r-- | qa/qa/page/main/menu.rb | 8 |
2 files changed, 12 insertions, 0 deletions
@@ -314,6 +314,10 @@ module QA autoload :Login, 'qa/page/mattermost/login' end + module Search + autoload :Results, 'qa/page/search/results' + end + ## # Classes describing components that are used by several pages. # diff --git a/qa/qa/page/main/menu.rb b/qa/qa/page/main/menu.rb index d86d554356e..e3039149ab4 100644 --- a/qa/qa/page/main/menu.rb +++ b/qa/qa/page/main/menu.rb @@ -27,6 +27,10 @@ module QA element :your_projects_link end + view 'app/views/layouts/_search.html.haml' do + element :search_term_field + end + def go_to_groups within_top_menu do click_element :groups_dropdown @@ -71,6 +75,10 @@ module QA click_element :snippets_link end + def search_for(term) + fill_element :search_term_field, "#{term}\n" + end + def has_personal_area?(wait: Capybara.default_max_wait_time) has_element?(:user_avatar, wait: wait) end |