gitlab-ce/qa/lib/gitlab/page/trials/select.rb

24 lines
559 B
Ruby

# 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