Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show.rb « users « overview « admin « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f15ef0492fc4fadd44dbecaef1aa4e4888bcc44e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# frozen_string_literal: true

module QA
  module Page
    module Admin
      module Overview
        module Users
          class Show < QA::Page::Base
            view 'app/views/admin/users/_head.html.haml' do
              element :impersonate_user_link
            end

            view 'app/views/admin/users/show.html.haml' do
              element :confirm_user_button
            end

            def click_impersonate_user
              click_element(:impersonate_user_link)
            end

            def confirm_user
              accept_confirm do
                click_element :confirm_user_button
              end
            end
          end
        end
      end
    end
  end
end