Welcome to mirror list, hosted at ThFree Co, Russian Federation.

select.rb « trials « page « gitlab « lib « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d4cf54805ea12565edaa51bf89bfc20b38034e88 (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/new?step=trial'

        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