chemlab-library-gitlab 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gitlab.rb +16 -2
- data/lib/gitlab/page/group/settings/billing.rb +19 -0
- data/lib/gitlab/page/group/settings/billing.stub.rb +107 -0
- data/lib/gitlab/page/main/login.rb +22 -0
- data/lib/gitlab/page/main/login.stub.rb +101 -0
- data/lib/gitlab/page/subscriptions/new.rb +41 -0
- data/lib/gitlab/page/subscriptions/new.stub.rb +545 -0
- metadata +13 -22
- data/lib/gitlab/page/login.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d616d61c7d9c2037218a949263ef2d12c82641ed72adbc7c49f61ff715a6b868
|
4
|
+
data.tar.gz: f27a739c4e6a877ca73e5e04627abdf0591c1c1e828f492f222e3195105855af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30a390cb9a2f3d9d7de93a8d773acf443be51977712f22e9e95566ba9d23f769c4c6f79b9abedbbf09db4907cbc13000ae75dd43b1644a1a355dbc7fa1293620
|
7
|
+
data.tar.gz: be6505bc4a3f67cab9fec646a5b5f8a6230bd2e5eff402778bf8a5c3e5f65ca3376b3e74177ffcf52319c52631c7943431dfad815f8580a3fca126252312e5c2
|
data/lib/gitlab.rb
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
# Chemlab Page Libraries for GitLab
|
5
4
|
module Gitlab
|
5
|
+
module Page
|
6
|
+
module Main
|
7
|
+
autoload :Login, 'gitlab/page/main/login'
|
8
|
+
end
|
9
|
+
|
10
|
+
module Subscriptions
|
11
|
+
autoload :New, 'gitlab/page/subscriptions/new'
|
12
|
+
end
|
13
|
+
|
14
|
+
module Group
|
15
|
+
module Settings
|
16
|
+
autoload :Billing, 'gitlab/page/group/settings/billing'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
6
20
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Gitlab
|
4
|
+
module Page
|
5
|
+
module Group
|
6
|
+
module Settings
|
7
|
+
class Billing < Chemlab::Page
|
8
|
+
# TODO: Supplant with data-qa-selectors
|
9
|
+
h4 :billing_plan_header, css: 'div.billing-plan-header h4'
|
10
|
+
|
11
|
+
link :start_your_free_trial
|
12
|
+
|
13
|
+
link :upgrade_to_premium, css: '[data-testid="plan-card-premium"] a.billing-cta-purchase-new'
|
14
|
+
link :upgrade_to_ultimate, css: '[data-testid="plan-card-ultimate"] a.billing-cta-purchase-new'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Gitlab
|
4
|
+
module Page
|
5
|
+
module Group
|
6
|
+
module Settings
|
7
|
+
module Billing
|
8
|
+
# @note Defined as +h4 :billing_plan_header+
|
9
|
+
# @return [String] The text content or value of +billing_plan_header+
|
10
|
+
def billing_plan_header
|
11
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
12
|
+
end
|
13
|
+
|
14
|
+
# @example
|
15
|
+
# Gitlab::Page::Group::Settings::Billing.perform do |billing|
|
16
|
+
# expect(billing.billing_plan_header_element).to exist
|
17
|
+
# end
|
18
|
+
# @return [Watir::H4] The raw +H4+ element
|
19
|
+
def billing_plan_header_element
|
20
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
21
|
+
end
|
22
|
+
|
23
|
+
# @example
|
24
|
+
# Gitlab::Page::Group::Settings::Billing.perform do |billing|
|
25
|
+
# expect(billing).to be_billing_plan_header
|
26
|
+
# end
|
27
|
+
# @return [Boolean] true if the +billing_plan_header+ element is present on the page
|
28
|
+
def billing_plan_header?
|
29
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
30
|
+
end
|
31
|
+
|
32
|
+
# @note Defined as +link :start_your_free_trial+
|
33
|
+
# Clicks +start_your_free_trial+
|
34
|
+
def start_your_free_trial
|
35
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
36
|
+
end
|
37
|
+
|
38
|
+
# @example
|
39
|
+
# Gitlab::Page::Group::Settings::Billing.perform do |billing|
|
40
|
+
# expect(billing.start_your_free_trial_element).to exist
|
41
|
+
# end
|
42
|
+
# @return [Watir::Link] The raw +Link+ element
|
43
|
+
def start_your_free_trial_element
|
44
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
45
|
+
end
|
46
|
+
|
47
|
+
# @example
|
48
|
+
# Gitlab::Page::Group::Settings::Billing.perform do |billing|
|
49
|
+
# expect(billing).to be_start_your_free_trial
|
50
|
+
# end
|
51
|
+
# @return [Boolean] true if the +start_your_free_trial+ element is present on the page
|
52
|
+
def start_your_free_trial?
|
53
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
54
|
+
end
|
55
|
+
|
56
|
+
# @note Defined as +link :upgrade_to_premium+
|
57
|
+
# Clicks +upgrade_to_premium+
|
58
|
+
def upgrade_to_premium
|
59
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
60
|
+
end
|
61
|
+
|
62
|
+
# @example
|
63
|
+
# Gitlab::Page::Group::Settings::Billing.perform do |billing|
|
64
|
+
# expect(billing.upgrade_to_premium_element).to exist
|
65
|
+
# end
|
66
|
+
# @return [Watir::Link] The raw +Link+ element
|
67
|
+
def upgrade_to_premium_element
|
68
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
69
|
+
end
|
70
|
+
|
71
|
+
# @example
|
72
|
+
# Gitlab::Page::Group::Settings::Billing.perform do |billing|
|
73
|
+
# expect(billing).to be_upgrade_to_premium
|
74
|
+
# end
|
75
|
+
# @return [Boolean] true if the +upgrade_to_premium+ element is present on the page
|
76
|
+
def upgrade_to_premium?
|
77
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
78
|
+
end
|
79
|
+
|
80
|
+
# @note Defined as +link :upgrade_to_ultimate+
|
81
|
+
# Clicks +upgrade_to_ultimate+
|
82
|
+
def upgrade_to_ultimate
|
83
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
84
|
+
end
|
85
|
+
|
86
|
+
# @example
|
87
|
+
# Gitlab::Page::Group::Settings::Billing.perform do |billing|
|
88
|
+
# expect(billing.upgrade_to_ultimate_element).to exist
|
89
|
+
# end
|
90
|
+
# @return [Watir::Link] The raw +Link+ element
|
91
|
+
def upgrade_to_ultimate_element
|
92
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
93
|
+
end
|
94
|
+
|
95
|
+
# @example
|
96
|
+
# Gitlab::Page::Group::Settings::Billing.perform do |billing|
|
97
|
+
# expect(billing).to be_upgrade_to_ultimate
|
98
|
+
# end
|
99
|
+
# @return [Boolean] true if the +upgrade_to_ultimate+ element is present on the page
|
100
|
+
def upgrade_to_ultimate?
|
101
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Gitlab
|
4
|
+
module Page
|
5
|
+
module Main
|
6
|
+
class Login < Chemlab::Page
|
7
|
+
path '/users/sign_in'
|
8
|
+
|
9
|
+
text_field :login_field
|
10
|
+
text_field :password_field
|
11
|
+
button :sign_in_button
|
12
|
+
|
13
|
+
def sign_in_as(username:, password:)
|
14
|
+
self.login_field = username
|
15
|
+
self.password_field = password
|
16
|
+
|
17
|
+
sign_in_button
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Gitlab
|
4
|
+
module Page
|
5
|
+
module Main
|
6
|
+
module Login
|
7
|
+
# @note Defined as +text_field :login_field+
|
8
|
+
# @return [String] The text content or value of +login_field+
|
9
|
+
def login_field
|
10
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
11
|
+
end
|
12
|
+
|
13
|
+
# Set the value of login_field
|
14
|
+
# @example
|
15
|
+
# Gitlab::Page::Main::Login.perform do |login|
|
16
|
+
# login.login_field = 'value'
|
17
|
+
# end
|
18
|
+
# @param value [String] The value to set.
|
19
|
+
def login_field=(value)
|
20
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
21
|
+
end
|
22
|
+
|
23
|
+
# @example
|
24
|
+
# Gitlab::Page::Main::Login.perform do |login|
|
25
|
+
# expect(login.login_field_element).to exist
|
26
|
+
# end
|
27
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
28
|
+
def login_field_element
|
29
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
30
|
+
end
|
31
|
+
|
32
|
+
# @example
|
33
|
+
# Gitlab::Page::Main::Login.perform do |login|
|
34
|
+
# expect(login).to be_login_field
|
35
|
+
# end
|
36
|
+
# @return [Boolean] true if the +login_field+ element is present on the page
|
37
|
+
def login_field?
|
38
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
39
|
+
end
|
40
|
+
|
41
|
+
# @note Defined as +text_field :password_field+
|
42
|
+
# @return [String] The text content or value of +password_field+
|
43
|
+
def password_field
|
44
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
45
|
+
end
|
46
|
+
|
47
|
+
# Set the value of password_field
|
48
|
+
# @example
|
49
|
+
# Gitlab::Page::Main::Login.perform do |login|
|
50
|
+
# login.password_field = 'value'
|
51
|
+
# end
|
52
|
+
# @param value [String] The value to set.
|
53
|
+
def password_field=(value)
|
54
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
55
|
+
end
|
56
|
+
|
57
|
+
# @example
|
58
|
+
# Gitlab::Page::Main::Login.perform do |login|
|
59
|
+
# expect(login.password_field_element).to exist
|
60
|
+
# end
|
61
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
62
|
+
def password_field_element
|
63
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
64
|
+
end
|
65
|
+
|
66
|
+
# @example
|
67
|
+
# Gitlab::Page::Main::Login.perform do |login|
|
68
|
+
# expect(login).to be_password_field
|
69
|
+
# end
|
70
|
+
# @return [Boolean] true if the +password_field+ element is present on the page
|
71
|
+
def password_field?
|
72
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
73
|
+
end
|
74
|
+
|
75
|
+
# @note Defined as +button :sign_in_button+
|
76
|
+
# Clicks +sign_in_button+
|
77
|
+
def sign_in_button
|
78
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
79
|
+
end
|
80
|
+
|
81
|
+
# @example
|
82
|
+
# Gitlab::Page::Main::Login.perform do |login|
|
83
|
+
# expect(login.sign_in_button_element).to exist
|
84
|
+
# end
|
85
|
+
# @return [Watir::Button] The raw +Button+ element
|
86
|
+
def sign_in_button_element
|
87
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
88
|
+
end
|
89
|
+
|
90
|
+
# @example
|
91
|
+
# Gitlab::Page::Main::Login.perform do |login|
|
92
|
+
# expect(login).to be_sign_in_button
|
93
|
+
# end
|
94
|
+
# @return [Boolean] true if the +sign_in_button+ element is present on the page
|
95
|
+
def sign_in_button?
|
96
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Gitlab
|
4
|
+
module Page
|
5
|
+
module Subscriptions
|
6
|
+
class New < Chemlab::Page
|
7
|
+
path '/subscriptions/new'
|
8
|
+
|
9
|
+
# Subscription Details
|
10
|
+
select :plan_name
|
11
|
+
select :group_name
|
12
|
+
text_field :number_of_users
|
13
|
+
button :continue_to_billing, text: /Continue to billing/
|
14
|
+
|
15
|
+
# Billing address
|
16
|
+
select :country
|
17
|
+
text_field :street_address_1
|
18
|
+
text_field :street_address_2
|
19
|
+
text_field :city
|
20
|
+
select :state
|
21
|
+
text_field :zip_code
|
22
|
+
button :continue_to_payment, text: /Continue to payment/
|
23
|
+
|
24
|
+
# Payment method
|
25
|
+
# TODO: Revisit when https://gitlab.com/gitlab-org/quality/chemlab/-/issues/6 is closed
|
26
|
+
iframe :payment_form, id: 'z_hppm_iframe'
|
27
|
+
|
28
|
+
text_field(:name_on_card) { payment_form_element.text_field(id: 'input-creditCardHolderName') }
|
29
|
+
text_field(:card_number) { payment_form_element.text_field(id: 'input-creditCardNumber') }
|
30
|
+
select(:expiration_month) { payment_form_element.select(id: 'input-creditCardExpirationMonth') }
|
31
|
+
select(:expiration_year) { payment_form_element.select(id: 'input-creditCardExpirationYear') }
|
32
|
+
text_field(:cvv) { payment_form_element.text_field(id: 'input-cardSecurityCode') }
|
33
|
+
link(:review_your_order) { payment_form_element.link(text: /Review your order/) }
|
34
|
+
# ENDTODO
|
35
|
+
|
36
|
+
# Confirmation
|
37
|
+
button :confirm_purchase, text: /Confirm purchase/
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,545 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Gitlab
|
4
|
+
module Page
|
5
|
+
module Subscriptions
|
6
|
+
module New
|
7
|
+
# @note Defined as +select :plan_name+
|
8
|
+
# @return [String] The text content or value of +plan_name+
|
9
|
+
def plan_name
|
10
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
11
|
+
end
|
12
|
+
|
13
|
+
# @example
|
14
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
15
|
+
# expect(new.plan_name_element).to exist
|
16
|
+
# end
|
17
|
+
# @return [Watir::Select] The raw +Select+ element
|
18
|
+
def plan_name_element
|
19
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
20
|
+
end
|
21
|
+
|
22
|
+
# @example
|
23
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
24
|
+
# expect(new).to be_plan_name
|
25
|
+
# end
|
26
|
+
# @return [Boolean] true if the +plan_name+ element is present on the page
|
27
|
+
def plan_name?
|
28
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
29
|
+
end
|
30
|
+
|
31
|
+
# @note Defined as +select :group_name+
|
32
|
+
# @return [String] The text content or value of +group_name+
|
33
|
+
def group_name
|
34
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
35
|
+
end
|
36
|
+
|
37
|
+
# @example
|
38
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
39
|
+
# expect(new.group_name_element).to exist
|
40
|
+
# end
|
41
|
+
# @return [Watir::Select] The raw +Select+ element
|
42
|
+
def group_name_element
|
43
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
44
|
+
end
|
45
|
+
|
46
|
+
# @example
|
47
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
48
|
+
# expect(new).to be_group_name
|
49
|
+
# end
|
50
|
+
# @return [Boolean] true if the +group_name+ element is present on the page
|
51
|
+
def group_name?
|
52
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
53
|
+
end
|
54
|
+
|
55
|
+
# @note Defined as +text_field :number_of_users+
|
56
|
+
# @return [String] The text content or value of +number_of_users+
|
57
|
+
def number_of_users
|
58
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
59
|
+
end
|
60
|
+
|
61
|
+
# Set the value of number_of_users
|
62
|
+
# @example
|
63
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
64
|
+
# new.number_of_users = 'value'
|
65
|
+
# end
|
66
|
+
# @param value [String] The value to set.
|
67
|
+
def number_of_users=(value)
|
68
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
69
|
+
end
|
70
|
+
|
71
|
+
# @example
|
72
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
73
|
+
# expect(new.number_of_users_element).to exist
|
74
|
+
# end
|
75
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
76
|
+
def number_of_users_element
|
77
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
78
|
+
end
|
79
|
+
|
80
|
+
# @example
|
81
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
82
|
+
# expect(new).to be_number_of_users
|
83
|
+
# end
|
84
|
+
# @return [Boolean] true if the +number_of_users+ element is present on the page
|
85
|
+
def number_of_users?
|
86
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
87
|
+
end
|
88
|
+
|
89
|
+
# @note Defined as +button :continue_to_billing+
|
90
|
+
# Clicks +continue_to_billing+
|
91
|
+
def continue_to_billing
|
92
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
93
|
+
end
|
94
|
+
|
95
|
+
# @example
|
96
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
97
|
+
# expect(new.continue_to_billing_element).to exist
|
98
|
+
# end
|
99
|
+
# @return [Watir::Button] The raw +Button+ element
|
100
|
+
def continue_to_billing_element
|
101
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
102
|
+
end
|
103
|
+
|
104
|
+
# @example
|
105
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
106
|
+
# expect(new).to be_continue_to_billing
|
107
|
+
# end
|
108
|
+
# @return [Boolean] true if the +continue_to_billing+ element is present on the page
|
109
|
+
def continue_to_billing?
|
110
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
111
|
+
end
|
112
|
+
|
113
|
+
# @note Defined as +select :country+
|
114
|
+
# @return [String] The text content or value of +country+
|
115
|
+
def country
|
116
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
117
|
+
end
|
118
|
+
|
119
|
+
# @example
|
120
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
121
|
+
# expect(new.country_element).to exist
|
122
|
+
# end
|
123
|
+
# @return [Watir::Select] The raw +Select+ element
|
124
|
+
def country_element
|
125
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
126
|
+
end
|
127
|
+
|
128
|
+
# @example
|
129
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
130
|
+
# expect(new).to be_country
|
131
|
+
# end
|
132
|
+
# @return [Boolean] true if the +country+ element is present on the page
|
133
|
+
def country?
|
134
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
135
|
+
end
|
136
|
+
|
137
|
+
# @note Defined as +text_field :street_address_1+
|
138
|
+
# @return [String] The text content or value of +street_address_1+
|
139
|
+
def street_address_1
|
140
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
141
|
+
end
|
142
|
+
|
143
|
+
# Set the value of street_address_1
|
144
|
+
# @example
|
145
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
146
|
+
# new.street_address_1 = 'value'
|
147
|
+
# end
|
148
|
+
# @param value [String] The value to set.
|
149
|
+
def street_address_1=(value)
|
150
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
151
|
+
end
|
152
|
+
|
153
|
+
# @example
|
154
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
155
|
+
# expect(new.street_address_1_element).to exist
|
156
|
+
# end
|
157
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
158
|
+
def street_address_1_element
|
159
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
160
|
+
end
|
161
|
+
|
162
|
+
# @example
|
163
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
164
|
+
# expect(new).to be_street_address_1
|
165
|
+
# end
|
166
|
+
# @return [Boolean] true if the +street_address_1+ element is present on the page
|
167
|
+
def street_address_1?
|
168
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
169
|
+
end
|
170
|
+
|
171
|
+
# @note Defined as +text_field :street_address_2+
|
172
|
+
# @return [String] The text content or value of +street_address_2+
|
173
|
+
def street_address_2
|
174
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
175
|
+
end
|
176
|
+
|
177
|
+
# Set the value of street_address_2
|
178
|
+
# @example
|
179
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
180
|
+
# new.street_address_2 = 'value'
|
181
|
+
# end
|
182
|
+
# @param value [String] The value to set.
|
183
|
+
def street_address_2=(value)
|
184
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
185
|
+
end
|
186
|
+
|
187
|
+
# @example
|
188
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
189
|
+
# expect(new.street_address_2_element).to exist
|
190
|
+
# end
|
191
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
192
|
+
def street_address_2_element
|
193
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
194
|
+
end
|
195
|
+
|
196
|
+
# @example
|
197
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
198
|
+
# expect(new).to be_street_address_2
|
199
|
+
# end
|
200
|
+
# @return [Boolean] true if the +street_address_2+ element is present on the page
|
201
|
+
def street_address_2?
|
202
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
203
|
+
end
|
204
|
+
|
205
|
+
# @note Defined as +text_field :city+
|
206
|
+
# @return [String] The text content or value of +city+
|
207
|
+
def city
|
208
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
209
|
+
end
|
210
|
+
|
211
|
+
# Set the value of city
|
212
|
+
# @example
|
213
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
214
|
+
# new.city = 'value'
|
215
|
+
# end
|
216
|
+
# @param value [String] The value to set.
|
217
|
+
def city=(value)
|
218
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
219
|
+
end
|
220
|
+
|
221
|
+
# @example
|
222
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
223
|
+
# expect(new.city_element).to exist
|
224
|
+
# end
|
225
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
226
|
+
def city_element
|
227
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
228
|
+
end
|
229
|
+
|
230
|
+
# @example
|
231
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
232
|
+
# expect(new).to be_city
|
233
|
+
# end
|
234
|
+
# @return [Boolean] true if the +city+ element is present on the page
|
235
|
+
def city?
|
236
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
237
|
+
end
|
238
|
+
|
239
|
+
# @note Defined as +select :state+
|
240
|
+
# @return [String] The text content or value of +state+
|
241
|
+
def state
|
242
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
243
|
+
end
|
244
|
+
|
245
|
+
# @example
|
246
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
247
|
+
# expect(new.state_element).to exist
|
248
|
+
# end
|
249
|
+
# @return [Watir::Select] The raw +Select+ element
|
250
|
+
def state_element
|
251
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
252
|
+
end
|
253
|
+
|
254
|
+
# @example
|
255
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
256
|
+
# expect(new).to be_state
|
257
|
+
# end
|
258
|
+
# @return [Boolean] true if the +state+ element is present on the page
|
259
|
+
def state?
|
260
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
261
|
+
end
|
262
|
+
|
263
|
+
# @note Defined as +text_field :zip_code+
|
264
|
+
# @return [String] The text content or value of +zip_code+
|
265
|
+
def zip_code
|
266
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
267
|
+
end
|
268
|
+
|
269
|
+
# Set the value of zip_code
|
270
|
+
# @example
|
271
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
272
|
+
# new.zip_code = 'value'
|
273
|
+
# end
|
274
|
+
# @param value [String] The value to set.
|
275
|
+
def zip_code=(value)
|
276
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
277
|
+
end
|
278
|
+
|
279
|
+
# @example
|
280
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
281
|
+
# expect(new.zip_code_element).to exist
|
282
|
+
# end
|
283
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
284
|
+
def zip_code_element
|
285
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
286
|
+
end
|
287
|
+
|
288
|
+
# @example
|
289
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
290
|
+
# expect(new).to be_zip_code
|
291
|
+
# end
|
292
|
+
# @return [Boolean] true if the +zip_code+ element is present on the page
|
293
|
+
def zip_code?
|
294
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
295
|
+
end
|
296
|
+
|
297
|
+
# @note Defined as +button :continue_to_payment+
|
298
|
+
# Clicks +continue_to_payment+
|
299
|
+
def continue_to_payment
|
300
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
301
|
+
end
|
302
|
+
|
303
|
+
# @example
|
304
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
305
|
+
# expect(new.continue_to_payment_element).to exist
|
306
|
+
# end
|
307
|
+
# @return [Watir::Button] The raw +Button+ element
|
308
|
+
def continue_to_payment_element
|
309
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
310
|
+
end
|
311
|
+
|
312
|
+
# @example
|
313
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
314
|
+
# expect(new).to be_continue_to_payment
|
315
|
+
# end
|
316
|
+
# @return [Boolean] true if the +continue_to_payment+ element is present on the page
|
317
|
+
def continue_to_payment?
|
318
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
319
|
+
end
|
320
|
+
|
321
|
+
# @note Defined as +iframe :payment_form+
|
322
|
+
# @return [String] The text content or value of +payment_form+
|
323
|
+
def payment_form
|
324
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
325
|
+
end
|
326
|
+
|
327
|
+
# @example
|
328
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
329
|
+
# expect(new.payment_form_element).to exist
|
330
|
+
# end
|
331
|
+
# @return [Watir::Iframe] The raw +Iframe+ element
|
332
|
+
def payment_form_element
|
333
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
334
|
+
end
|
335
|
+
|
336
|
+
# @example
|
337
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
338
|
+
# expect(new).to be_payment_form
|
339
|
+
# end
|
340
|
+
# @return [Boolean] true if the +payment_form+ element is present on the page
|
341
|
+
def payment_form?
|
342
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
343
|
+
end
|
344
|
+
|
345
|
+
# @note Defined as +text_field :name_on_card+
|
346
|
+
# @return [String] The text content or value of +name_on_card+
|
347
|
+
def name_on_card
|
348
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
349
|
+
end
|
350
|
+
|
351
|
+
# Set the value of name_on_card
|
352
|
+
# @example
|
353
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
354
|
+
# new.name_on_card = 'value'
|
355
|
+
# end
|
356
|
+
# @param value [String] The value to set.
|
357
|
+
def name_on_card=(value)
|
358
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
359
|
+
end
|
360
|
+
|
361
|
+
# @example
|
362
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
363
|
+
# expect(new.name_on_card_element).to exist
|
364
|
+
# end
|
365
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
366
|
+
def name_on_card_element
|
367
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
368
|
+
end
|
369
|
+
|
370
|
+
# @example
|
371
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
372
|
+
# expect(new).to be_name_on_card
|
373
|
+
# end
|
374
|
+
# @return [Boolean] true if the +name_on_card+ element is present on the page
|
375
|
+
def name_on_card?
|
376
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
377
|
+
end
|
378
|
+
|
379
|
+
# @note Defined as +text_field :card_number+
|
380
|
+
# @return [String] The text content or value of +card_number+
|
381
|
+
def card_number
|
382
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
383
|
+
end
|
384
|
+
|
385
|
+
# Set the value of card_number
|
386
|
+
# @example
|
387
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
388
|
+
# new.card_number = 'value'
|
389
|
+
# end
|
390
|
+
# @param value [String] The value to set.
|
391
|
+
def card_number=(value)
|
392
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
393
|
+
end
|
394
|
+
|
395
|
+
# @example
|
396
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
397
|
+
# expect(new.card_number_element).to exist
|
398
|
+
# end
|
399
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
400
|
+
def card_number_element
|
401
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
402
|
+
end
|
403
|
+
|
404
|
+
# @example
|
405
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
406
|
+
# expect(new).to be_card_number
|
407
|
+
# end
|
408
|
+
# @return [Boolean] true if the +card_number+ element is present on the page
|
409
|
+
def card_number?
|
410
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
411
|
+
end
|
412
|
+
|
413
|
+
# @note Defined as +select :expiration_month+
|
414
|
+
# @return [String] The text content or value of +expiration_month+
|
415
|
+
def expiration_month
|
416
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
417
|
+
end
|
418
|
+
|
419
|
+
# @example
|
420
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
421
|
+
# expect(new.expiration_month_element).to exist
|
422
|
+
# end
|
423
|
+
# @return [Watir::Select] The raw +Select+ element
|
424
|
+
def expiration_month_element
|
425
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
426
|
+
end
|
427
|
+
|
428
|
+
# @example
|
429
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
430
|
+
# expect(new).to be_expiration_month
|
431
|
+
# end
|
432
|
+
# @return [Boolean] true if the +expiration_month+ element is present on the page
|
433
|
+
def expiration_month?
|
434
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
435
|
+
end
|
436
|
+
|
437
|
+
# @note Defined as +select :expiration_year+
|
438
|
+
# @return [String] The text content or value of +expiration_year+
|
439
|
+
def expiration_year
|
440
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
441
|
+
end
|
442
|
+
|
443
|
+
# @example
|
444
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
445
|
+
# expect(new.expiration_year_element).to exist
|
446
|
+
# end
|
447
|
+
# @return [Watir::Select] The raw +Select+ element
|
448
|
+
def expiration_year_element
|
449
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
450
|
+
end
|
451
|
+
|
452
|
+
# @example
|
453
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
454
|
+
# expect(new).to be_expiration_year
|
455
|
+
# end
|
456
|
+
# @return [Boolean] true if the +expiration_year+ element is present on the page
|
457
|
+
def expiration_year?
|
458
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
459
|
+
end
|
460
|
+
|
461
|
+
# @note Defined as +text_field :cvv+
|
462
|
+
# @return [String] The text content or value of +cvv+
|
463
|
+
def cvv
|
464
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
465
|
+
end
|
466
|
+
|
467
|
+
# Set the value of cvv
|
468
|
+
# @example
|
469
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
470
|
+
# new.cvv = 'value'
|
471
|
+
# end
|
472
|
+
# @param value [String] The value to set.
|
473
|
+
def cvv=(value)
|
474
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
475
|
+
end
|
476
|
+
|
477
|
+
# @example
|
478
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
479
|
+
# expect(new.cvv_element).to exist
|
480
|
+
# end
|
481
|
+
# @return [Watir::TextField] The raw +TextField+ element
|
482
|
+
def cvv_element
|
483
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
484
|
+
end
|
485
|
+
|
486
|
+
# @example
|
487
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
488
|
+
# expect(new).to be_cvv
|
489
|
+
# end
|
490
|
+
# @return [Boolean] true if the +cvv+ element is present on the page
|
491
|
+
def cvv?
|
492
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
493
|
+
end
|
494
|
+
|
495
|
+
# @note Defined as +link :review_your_order+
|
496
|
+
# Clicks +review_your_order+
|
497
|
+
def review_your_order
|
498
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
499
|
+
end
|
500
|
+
|
501
|
+
# @example
|
502
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
503
|
+
# expect(new.review_your_order_element).to exist
|
504
|
+
# end
|
505
|
+
# @return [Watir::Link] The raw +Link+ element
|
506
|
+
def review_your_order_element
|
507
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
508
|
+
end
|
509
|
+
|
510
|
+
# @example
|
511
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
512
|
+
# expect(new).to be_review_your_order
|
513
|
+
# end
|
514
|
+
# @return [Boolean] true if the +review_your_order+ element is present on the page
|
515
|
+
def review_your_order?
|
516
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
517
|
+
end
|
518
|
+
|
519
|
+
# @note Defined as +button :confirm_purchase+
|
520
|
+
# Clicks +confirm_purchase+
|
521
|
+
def confirm_purchase
|
522
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
523
|
+
end
|
524
|
+
|
525
|
+
# @example
|
526
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
527
|
+
# expect(new.confirm_purchase_element).to exist
|
528
|
+
# end
|
529
|
+
# @return [Watir::Button] The raw +Button+ element
|
530
|
+
def confirm_purchase_element
|
531
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
532
|
+
end
|
533
|
+
|
534
|
+
# @example
|
535
|
+
# Gitlab::Page::Subscriptions::New.perform do |new|
|
536
|
+
# expect(new).to be_confirm_purchase
|
537
|
+
# end
|
538
|
+
# @return [Boolean] true if the +confirm_purchase+ element is present on the page
|
539
|
+
def confirm_purchase?
|
540
|
+
# This is a stub, used for indexing. The method is dynamically generated.
|
541
|
+
end
|
542
|
+
end
|
543
|
+
end
|
544
|
+
end
|
545
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chemlab-library-gitlab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab Quality
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chemlab
|
@@ -16,28 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rspec
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3.7'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '3.7'
|
26
|
+
version: '0.7'
|
41
27
|
description:
|
42
28
|
email:
|
43
29
|
- quality@gitlab.com
|
@@ -46,8 +32,13 @@ extensions: []
|
|
46
32
|
extra_rdoc_files: []
|
47
33
|
files:
|
48
34
|
- lib/gitlab.rb
|
49
|
-
- lib/gitlab/page/
|
50
|
-
|
35
|
+
- lib/gitlab/page/group/settings/billing.rb
|
36
|
+
- lib/gitlab/page/group/settings/billing.stub.rb
|
37
|
+
- lib/gitlab/page/main/login.rb
|
38
|
+
- lib/gitlab/page/main/login.stub.rb
|
39
|
+
- lib/gitlab/page/subscriptions/new.rb
|
40
|
+
- lib/gitlab/page/subscriptions/new.stub.rb
|
41
|
+
homepage: https://gitlab.com/
|
51
42
|
licenses:
|
52
43
|
- MIT
|
53
44
|
metadata: {}
|
@@ -66,8 +57,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
57
|
- !ruby/object:Gem::Version
|
67
58
|
version: '0'
|
68
59
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
60
|
+
rubygems_version: 3.1.4
|
70
61
|
signing_key:
|
71
62
|
specification_version: 4
|
72
|
-
summary: Page Libraries for GitLab
|
63
|
+
summary: Chemlab Page Libraries for GitLab
|
73
64
|
test_files: []
|
data/lib/gitlab/page/login.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Gitlab
|
4
|
-
module Page
|
5
|
-
class Login < Chemlab::Page
|
6
|
-
url '/users/sign_in'
|
7
|
-
|
8
|
-
text_field :login_field
|
9
|
-
text_field :password_field
|
10
|
-
|
11
|
-
button :sign_in_button
|
12
|
-
|
13
|
-
def login_as(username, password)
|
14
|
-
self.login_field = username
|
15
|
-
self.password_field = password
|
16
|
-
|
17
|
-
sign_in_button
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|