Commit 6d510278 authored by Desiree Chevalier's avatar Desiree Chevalier

Add qa selector to user table vue

Also fixes e2e tests with admin user list
parent 6b66a1e3
......@@ -112,6 +112,7 @@ export default {
:empty-text="s__('AdminUsers|No users found')"
show-empty
stacked="md"
data-qa-selector="user_row_content"
>
<template #cell(name)="{ item: user }">
<user-avatar :user="user" :admin-user-path="paths.adminUser" />
......
......@@ -29,7 +29,7 @@ module QA
def click_user(username)
within_element(:user_row_content, text: username) do
click_element(:username_link)
click_link(username)
end
end
end
......
......@@ -138,7 +138,7 @@ module QA
Page::Admin::Overview::Users::Index.perform do |index|
index.click_pending_approval_tab
index.search_user(user.username)
index.click_user(user.username)
index.click_user(user.name)
end
Page::Admin::Overview::Users::Show.perform do |show|
......
......@@ -111,7 +111,7 @@ module QA
Page::Admin::Menu.perform(&:go_to_users_overview)
Page::Admin::Overview::Users::Index.perform do |index|
index.search_user(user_for_impersonation.username)
index.click_user(user_for_impersonation.username)
index.click_user(user_for_impersonation.name)
end
Page::Admin::Overview::Users::Show.perform(&: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