blob: ae807f99c25b5d859c31a02dbfba8cd1ee1d830d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
module Gitlab
module Page
module Trials
class Select < Chemlab::Page
path '/-/trials/new?step=trial'
button :select_group, 'data-testid': 'base-dropdown-toggle'
div :group_dropdown, 'data-testid': 'base-dropdown-menu'
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
|