Commit d0f5408d authored by Chloe Liu's avatar Chloe Liu

Merge branch 'e2e-update-trial-selector' into 'master'

Update selector in trial e2e spec

See merge request gitlab-org/gitlab!82345
parents 68e64e7a 464d6de3
...@@ -141,6 +141,7 @@ export default { ...@@ -141,6 +141,7 @@ export default {
:options="stateOptionsWithDefault" :options="stateOptionsWithDefault"
value-field="id" value-field="id"
text-field="name" text-field="name"
data-qa-selector="state"
data-testid="state" data-testid="state"
:required="required" :required="required"
@change="selected" @change="selected"
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
= label_tag :trial_entity, _('Who will be using GitLab?') = label_tag :trial_entity, _('Who will be using GitLab?')
.gl-form-checkbox-group .gl-form-checkbox-group
.gl-form-checkbox.form-check.form-check-inline .gl-form-checkbox.form-check.form-check-inline
= radio_button_tag :trial_entity, :company, params[:trial_entity]=='company', required: true, class: 'form-check-input' = radio_button_tag :trial_entity, :company, params[:trial_entity]=='company', required: true, class: 'form-check-input', data: { qa_selector: 'trial_company' }
= label_tag :trial_entity_company, _('My company or team'), class: 'form-check-label' = label_tag :trial_entity_company, _('My company or team'), class: 'form-check-label'
.gl-form-checkbox.form-check.form-check-inline .gl-form-checkbox.form-check.form-check-inline
= radio_button_tag :trial_entity, :individual, params[:trial_entity]=='individual', required: true, class: 'form-check-input', data: { qa_selector: 'trial_individual' } = radio_button_tag :trial_entity, :individual, params[:trial_entity]=='individual', required: true, class: 'form-check-input', data: { qa_selector: 'trial_individual' }
......
...@@ -12,7 +12,7 @@ module QA ...@@ -12,7 +12,7 @@ module QA
select :number_of_employees select :number_of_employees
text_field :telephone_number text_field :telephone_number
select :country select :country
select :state, id: 'state' select :state
button :continue button :continue
end end
end end
......
...@@ -6,12 +6,11 @@ module QA ...@@ -6,12 +6,11 @@ module QA
class Select < Chemlab::Page class Select < Chemlab::Page
path '/-/trials/select' path '/-/trials/select'
# TODO: Supplant with data-qa-selectors select :subscription_for
select :subscription_for, id: 'namespace_id' text_field :new_group_name
text_field :new_group_name, id: 'new_group_name' button :start_your_free_trial
button :start_your_free_trial, value: 'Start your free trial' radio :trial_company
radio :trial_company, id: 'trial_entity_company' radio :trial_individual
radio :trial_individual, id: 'trial_entity_individual'
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment