blob: 1b8c926532a5fb1c2b0e87ecab21389ff22528cb (
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
|
# frozen_string_literal: true
require 'capybara/dsl'
module QA
module Vendor
module SAMLIdp
module Page
class Login < Page::Base
def login
fill_in 'username', with: 'user1'
fill_in 'password', with: 'user1pass'
click_on 'Login'
end
def login_if_required
login if login_required?
end
def login_required?
page.has_text?('Enter your username and password')
end
end
end
end
end
end
|