diff options
author | Dan Davison <ddavison@gitlab.com> | 2019-07-18 11:57:26 +0000 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-07-18 11:57:26 +0000 |
commit | c5783cb59d8a2d91333e6f9527802944594686de (patch) | |
tree | a5d58af0f5c524b000b71ef54db2811cca86de35 /app/views/layouts/header | |
parent | 9967b2d1ee3644ed22fb441cc754f4e6764a7718 (diff) | |
download | gitlab-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.haml | 4 |
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' } |