2021-06-08 01:23:25 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-04-23 21:23:45 +05:30
|
|
|
module Gitlab
|
2021-06-08 01:23:25 +05:30
|
|
|
module Page
|
|
|
|
module Trials
|
|
|
|
class Select < Chemlab::Page
|
|
|
|
path '/-/trials/select'
|
|
|
|
|
2023-04-23 21:23:45 +05:30
|
|
|
button :select_group, 'data-testid': 'base-dropdown-toggle'
|
|
|
|
div :group_dropdown, 'data-testid': 'base-dropdown-menu'
|
2022-05-07 20:08:51 +05:30
|
|
|
text_field :new_group_name
|
|
|
|
button :start_your_free_trial
|
|
|
|
radio :trial_company
|
|
|
|
radio :trial_individual
|
2023-04-23 21:23:45 +05:30
|
|
|
|
|
|
|
def subscription_for=(group_name)
|
|
|
|
select_group
|
|
|
|
|
|
|
|
group_dropdown_element.span(text: /#{group_name}/).click
|
|
|
|
end
|
2021-06-08 01:23:25 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|