Skip to content
Snippets Groups Projects

Change admin users search filter

2 files
+ 6
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -6,21 +6,16 @@ module Admin
module Overview
module Users
class Index < QA::Page::Base
view 'app/views/admin/users/_users.html.haml' do
element 'user-search-field'
element 'pending-approval-tab'
end
view 'app/assets/javascripts/vue_shared/components/users_table/users_table.vue' do
element 'user-row-content'
end
def search_user(username)
find_element('user-search-field').set(username).send_keys(:return)
submit_search_term(username)
end
def click_pending_approval_tab
click_element 'pending-approval-tab'
def choose_pending_approval_filter
select_tokens('state', '=', 'Pending approval', submit: true)
end
def click_user(username)
Loading