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

new_session.rb « admin « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3d46bb7f186c6d5dbeb67395375775ff2b5d826d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

module QA
  module Page
    module Admin
      class NewSession < Page::Base
        view 'app/views/admin/sessions/_new_base.html.haml' do
          element :enter_admin_mode_button
          element :password_field
        end

        def set_password(password)
          fill_element :password_field, password
        end

        def click_enter_admin_mode
          click_element :enter_admin_mode_button
        end
      end
    end
  end
end