summaryrefslogtreecommitdiff
path: root/app/views/layouts/header
diff options
context:
space:
mode:
authorDan Davison <ddavison@gitlab.com>2019-07-18 11:57:26 +0000
committerSanad Liaquat <sliaquat@gitlab.com>2019-07-18 11:57:26 +0000
commitc5783cb59d8a2d91333e6f9527802944594686de (patch)
treea5d58af0f5c524b000b71ef54db2811cca86de35 /app/views/layouts/header
parent9967b2d1ee3644ed22fb441cc754f4e6764a7718 (diff)
downloadgitlab-ce-c5783cb59d8a2d91333e6f9527802944594686de.tar.gz
Refactor common Page Objects to use data tags
Common usages within GitLab QA include Login Page, navigation bars and layouts
Diffstat (limited to 'app/views/layouts/header')
-rw-r--r--app/views/layouts/header/_current_user_dropdown.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/header/_current_user_dropdown.html.haml b/app/views/layouts/header/_current_user_dropdown.html.haml
index 45fc39dbbdb..808290afcad 100644
--- a/app/views/layouts/header/_current_user_dropdown.html.haml
+++ b/app/views/layouts/header/_current_user_dropdown.html.haml
@@ -20,8 +20,8 @@
= link_to s_("CurrentUser|Profile"), current_user, class: 'profile-link', data: { user: current_user.username }
- if current_user_menu?(:settings)
%li
- = link_to s_("CurrentUser|Settings"), profile_path
+ = link_to s_("CurrentUser|Settings"), profile_path, data: { qa_selector: 'settings_link' }
- if current_user_menu?(:sign_out)
%li.divider
%li
- = link_to _("Sign out"), destroy_user_session_path, class: "sign-out-link qa-sign-out-link"
+ = link_to _("Sign out"), destroy_user_session_path, class: "sign-out-link", data: { qa_selector: 'sign_out_link' }