diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 18:42:06 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 18:42:06 +0000 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /qa/qa/page/main | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) | |
download | gitlab-ce-6e4e1050d9dba2b7b2523fdd1768823ab85feef4.tar.gz |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'qa/qa/page/main')
-rw-r--r-- | qa/qa/page/main/menu.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qa/qa/page/main/menu.rb b/qa/qa/page/main/menu.rb index 416946f44f0..9c63ddee890 100644 --- a/qa/qa/page/main/menu.rb +++ b/qa/qa/page/main/menu.rb @@ -14,6 +14,9 @@ module QA element :user_avatar, required: true element :user_menu, required: true element :stop_impersonation_link + element :issues_shortcut_button, required: true + element :merge_requests_shortcut_button, required: true + element :todos_shortcut_button, required: true end view 'app/views/layouts/nav/_dashboard.html.haml' do @@ -63,6 +66,18 @@ module QA end end + # To go to one of the popular pages using the provided shortcut buttons within top menu + # @param [Symbol] the name of the element (e.g: `:issues_shortcut button`) + # @example: + # Menu.perform do |menu| + # menu.go_to_page_by_shortcut(:issues_shortcut_button) #=> Go to Issues page using shortcut button + # end + def go_to_page_by_shortcut(button) + within_top_menu do + click_element(button) + end + end + def go_to_admin_area click_admin_area |