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

login.rb « main « page « gitlab « lib « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9f20a040550318b4a80b2407a67f30b1170263d5 (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 Gitlab
  module Page
    module Main
      class Login < Chemlab::Page
        path '/users/sign_in'

        text_field :login_field
        text_field :password_field
        button :sign_in_button

        def sign_in_as(username:, password:)
          self.login_field = username
          self.password_field = password

          sign_in_button
        end
      end
    end
  end
end