debian-mirror-gitlab/qa/lib/gitlab/page/main/login.rb

23 lines
429 B
Ruby
Raw Normal View History

2021-10-27 15:23:28 +05:30
# 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