chemlab-library-customersdot 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/customers_dot.rb +7 -0
- data/lib/customers_dot/page/login.rb +26 -0
- data/lib/customers_dot/page/login.stub.rb +171 -0
- metadata +60 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8ace89f4a3e0ab22c531778a6b53460d1eb3fcc668ded776faa65cce7f87b123
|
4
|
+
data.tar.gz: 7219311d7d647a82e7ca8f96f0478b94ad25b9d6c0fa6e2cdac72cae36bd7d2e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 63adf1d11789f8e625daf694d13ddae02c17e716f959328328b71acc10bee33a02c2c9f3bffe70630a9af8b810136cf99c8b72dde0de1f875cdfece4af3c4c44
|
7
|
+
data.tar.gz: 2f75f691525044410a146a2576e7408e89b5b539811732dae3159bf2b50d6e0c369d626c4763679bfe7cf5d3410f7451f517b8d8086f2689453d4cd22eb0b150
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CustomersDot
|
4
|
+
module Page
|
5
|
+
class Login < Chemlab::Page
|
6
|
+
path '/customers/sign_in'
|
7
|
+
|
8
|
+
text_field :username, id: 'email'
|
9
|
+
text_field :password, id: 'password'
|
10
|
+
button :sign_in
|
11
|
+
div :failure_alert, text: 'Invalid Email or password.'
|
12
|
+
div :successful_gitlab_auth, text: 'Successfully authenticated from GitLab account.'
|
13
|
+
button :sign_in_via_gitlab, text: /Sign in with your GitLab\.com account/
|
14
|
+
|
15
|
+
# Sign in using a specified username and password
|
16
|
+
# @param [String] username to sign in with
|
17
|
+
# @param [String] password to sign in with
|
18
|
+
def sign_in_as(username:, password:)
|
19
|
+
self.username = username
|
20
|
+
self.password = password
|
21
|
+
|
22
|
+
sign_in
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,171 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CustomersDot
|
4
|
+
module Page
|
5
|
+
module Login
|
6
|
+
# @note Defined as +text_field :username+
|
7
|
+
# @return [String] The text content or value of +username+
|
8
|
+
def username
|
9
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
10
|
+
end
|
11
|
+
|
12
|
+
# Set the value of username
|
13
|
+
# @example
|
14
|
+
# CustomersDot::Page::Login.perform do |login|
|
15
|
+
# login.username = 'value'
|
16
|
+
# end
|
17
|
+
# @param value [String] The value to set.
|
18
|
+
def username=(value)
|
19
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
20
|
+
end
|
21
|
+
|
22
|
+
# @example
|
23
|
+
# CustomersDot::Page::Login.perform do |login|
|
24
|
+
# expect(login.username_element).to exist
|
25
|
+
# end
|
26
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
27
|
+
def username_element
|
28
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
29
|
+
end
|
30
|
+
|
31
|
+
# @example
|
32
|
+
# CustomersDot::Page::Login.perform do |login|
|
33
|
+
# expect(login).to be_username
|
34
|
+
# end
|
35
|
+
# @return [Boolean] true if the +username+ element is present on the page
|
36
|
+
def username?
|
37
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
38
|
+
end
|
39
|
+
|
40
|
+
# @note Defined as +text_field :password+
|
41
|
+
# @return [String] The text content or value of +password+
|
42
|
+
def password
|
43
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
44
|
+
end
|
45
|
+
|
46
|
+
# Set the value of password
|
47
|
+
# @example
|
48
|
+
# CustomersDot::Page::Login.perform do |login|
|
49
|
+
# login.password = 'value'
|
50
|
+
# end
|
51
|
+
# @param value [String] The value to set.
|
52
|
+
def password=(value)
|
53
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
54
|
+
end
|
55
|
+
|
56
|
+
# @example
|
57
|
+
# CustomersDot::Page::Login.perform do |login|
|
58
|
+
# expect(login.password_element).to exist
|
59
|
+
# end
|
60
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
61
|
+
def password_element
|
62
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
63
|
+
end
|
64
|
+
|
65
|
+
# @example
|
66
|
+
# CustomersDot::Page::Login.perform do |login|
|
67
|
+
# expect(login).to be_password
|
68
|
+
# end
|
69
|
+
# @return [Boolean] true if the +password+ element is present on the page
|
70
|
+
def password?
|
71
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
72
|
+
end
|
73
|
+
|
74
|
+
# @note Defined as +button :sign_in+
|
75
|
+
# Clicks +sign_in+
|
76
|
+
def sign_in
|
77
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
78
|
+
end
|
79
|
+
|
80
|
+
# @example
|
81
|
+
# CustomersDot::Page::Login.perform do |login|
|
82
|
+
# expect(login.sign_in_element).to exist
|
83
|
+
# end
|
84
|
+
# @return [Watir::Button] The raw +Button+ element
|
85
|
+
def sign_in_element
|
86
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
87
|
+
end
|
88
|
+
|
89
|
+
# @example
|
90
|
+
# CustomersDot::Page::Login.perform do |login|
|
91
|
+
# expect(login).to be_sign_in
|
92
|
+
# end
|
93
|
+
# @return [Boolean] true if the +sign_in+ element is present on the page
|
94
|
+
def sign_in?
|
95
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
96
|
+
end
|
97
|
+
|
98
|
+
# @note Defined as +div :failure_alert+
|
99
|
+
# @return [String] The text content or value of +failure_alert+
|
100
|
+
def failure_alert
|
101
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
102
|
+
end
|
103
|
+
|
104
|
+
# @example
|
105
|
+
# CustomersDot::Page::Login.perform do |login|
|
106
|
+
# expect(login.failure_alert_element).to exist
|
107
|
+
# end
|
108
|
+
# @return [Watir::Div] The raw +Div+ element
|
109
|
+
def failure_alert_element
|
110
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
111
|
+
end
|
112
|
+
|
113
|
+
# @example
|
114
|
+
# CustomersDot::Page::Login.perform do |login|
|
115
|
+
# expect(login).to be_failure_alert
|
116
|
+
# end
|
117
|
+
# @return [Boolean] true if the +failure_alert+ element is present on the page
|
118
|
+
def failure_alert?
|
119
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
120
|
+
end
|
121
|
+
|
122
|
+
# @note Defined as +div :successful_gitlab_auth+
|
123
|
+
# @return [String] The text content or value of +successful_gitlab_auth+
|
124
|
+
def successful_gitlab_auth
|
125
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
126
|
+
end
|
127
|
+
|
128
|
+
# @example
|
129
|
+
# CustomersDot::Page::Login.perform do |login|
|
130
|
+
# expect(login.successful_gitlab_auth_element).to exist
|
131
|
+
# end
|
132
|
+
# @return [Watir::Div] The raw +Div+ element
|
133
|
+
def successful_gitlab_auth_element
|
134
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
135
|
+
end
|
136
|
+
|
137
|
+
# @example
|
138
|
+
# CustomersDot::Page::Login.perform do |login|
|
139
|
+
# expect(login).to be_successful_gitlab_auth
|
140
|
+
# end
|
141
|
+
# @return [Boolean] true if the +successful_gitlab_auth+ element is present on the page
|
142
|
+
def successful_gitlab_auth?
|
143
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
144
|
+
end
|
145
|
+
|
146
|
+
# @note Defined as +button :sign_in_via_gitlab+
|
147
|
+
# Clicks +sign_in_via_gitlab+
|
148
|
+
def sign_in_via_gitlab
|
149
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
150
|
+
end
|
151
|
+
|
152
|
+
# @example
|
153
|
+
# CustomersDot::Page::Login.perform do |login|
|
154
|
+
# expect(login.sign_in_via_gitlab_element).to exist
|
155
|
+
# end
|
156
|
+
# @return [Watir::Button] The raw +Button+ element
|
157
|
+
def sign_in_via_gitlab_element
|
158
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
159
|
+
end
|
160
|
+
|
161
|
+
# @example
|
162
|
+
# CustomersDot::Page::Login.perform do |login|
|
163
|
+
# expect(login).to be_sign_in_via_gitlab
|
164
|
+
# end
|
165
|
+
# @return [Boolean] true if the +sign_in_via_gitlab+ element is present on the page
|
166
|
+
def sign_in_via_gitlab?
|
167
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
metadata
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chemlab-library-customersdot
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- GitLab Quality
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-07-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: chemlab
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.7'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- quality@gitlab.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- lib/customers_dot.rb
|
35
|
+
- lib/customers_dot/page/login.rb
|
36
|
+
- lib/customers_dot/page/login.stub.rb
|
37
|
+
homepage: https://customers.gitlab.com/
|
38
|
+
licenses:
|
39
|
+
- MIT
|
40
|
+
metadata: {}
|
41
|
+
post_install_message:
|
42
|
+
rdoc_options: []
|
43
|
+
require_paths:
|
44
|
+
- lib
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
requirements: []
|
56
|
+
rubygems_version: 3.1.4
|
57
|
+
signing_key:
|
58
|
+
specification_version: 4
|
59
|
+
summary: Chemlab Page Libraries for CustomersDot
|
60
|
+
test_files: []
|