Commit b4389e48 authored by peterhegman's avatar peterhegman Committed by Jacques Erasmus

Switch to using `data-qa-username` instead of `data-qa-index`

Per reviewer feedback
parent f77a237d
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
:text-sr-only="!showButtonLabels" :text-sr-only="!showButtonLabels"
icon="settings" icon="settings"
data-qa-selector="user_actions_dropdown_toggle" data-qa-selector="user_actions_dropdown_toggle"
:data-qa-index="user.id" :data-qa-username="user.username"
> >
<gl-dropdown-section-header>{{ <gl-dropdown-section-header>{{
$options.i18n.userAdministration $options.i18n.userAdministration
......
...@@ -29,7 +29,7 @@ module QA ...@@ -29,7 +29,7 @@ module QA
end end
def open_user_actions_dropdown(user) def open_user_actions_dropdown(user)
click_element(:user_actions_dropdown_toggle, index: user.id) click_element(:user_actions_dropdown_toggle, username: user.username)
end end
def click_impersonate_user def click_impersonate_user
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment