blob: 6eaf6003837d1499309d3a0740404f47ad72c233 (
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
|
# frozen_string_literal: true
module Gitlab
module Page
module Trials
class Select < Chemlab::Page
path '/-/trials/select'
button :select_group, 'data-testid': 'base-dropdown-toggle'
div :group_dropdown, 'data-testid': 'base-dropdown-menu'
text_field :new_group_name
button :start_your_free_trial
radio :trial_company
radio :trial_individual
def subscription_for=(group_name)
select_group
group_dropdown_element.span(text: /#{group_name}/).click
end
end
end
end
end
|