Commit 11a684fd authored by Peter Hegman's avatar Peter Hegman

Merge branch 'company-form-validate' into 'master'

Remove novalidate from about your company page form

See merge request gitlab-org/gitlab!84662
parents 2e7c8b09 968b605d
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
</script> </script>
<template> <template>
<gl-form :action="createLeadPath" method="post" novalidate> <gl-form :action="createLeadPath" method="post">
<input :value="$options.csrf.token" type="hidden" name="authenticity_token" /> <input :value="$options.csrf.token" type="hidden" name="authenticity_token" />
<div class="gl-display-flex gl-flex-direction-column gl-sm-flex-direction-row gl-mt-5"> <div class="gl-display-flex gl-flex-direction-column gl-sm-flex-direction-row gl-mt-5">
<gl-form-group <gl-form-group
......
...@@ -24,7 +24,7 @@ RSpec.describe 'Company Information', :js do ...@@ -24,7 +24,7 @@ RSpec.describe 'Company Information', :js do
"company_size" => '1 - 99'.delete(' '), "company_size" => '1 - 99'.delete(' '),
"phone_number" => '+1 23 456-78-90', "phone_number" => '+1 23 456-78-90',
"country" => 'US', "country" => 'US',
"state" => '', "state" => 'CA',
"work_email" => user.email, "work_email" => user.email,
"uid" => user.id, "uid" => user.id,
"setup_for_company" => user.setup_for_company, "setup_for_company" => user.setup_for_company,
...@@ -42,6 +42,7 @@ RSpec.describe 'Company Information', :js do ...@@ -42,6 +42,7 @@ RSpec.describe 'Company Information', :js do
fill_in 'company_name', with: 'GitLab' fill_in 'company_name', with: 'GitLab'
select '1 - 99', from: 'company_size' select '1 - 99', from: 'company_size'
select 'United States of America', from: 'country' select 'United States of America', from: 'country'
select 'California', from: 'state'
fill_in 'website_url', with: 'gitlab.com' fill_in 'website_url', with: 'gitlab.com'
fill_in 'phone_number', with: '+1 23 456-78-90' fill_in 'phone_number', with: '+1 23 456-78-90'
......
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