Commit 968b605d authored by Minahil Nichols's avatar Minahil Nichols Committed by Peter Hegman

Add HTML5 validation to about your company form

By removing the `novalidate` attribute

Changelog: changed
EE: true
parent 4784d4e4
......@@ -73,7 +73,7 @@ export default {
</script>
<template>
<gl-form :action="createLeadPath" method="post" novalidate>
<gl-form :action="createLeadPath" method="post">
<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">
<gl-form-group
......
......@@ -24,7 +24,7 @@ RSpec.describe 'Company Information', :js do
"company_size" => '1 - 99'.delete(' '),
"phone_number" => '+1 23 456-78-90',
"country" => 'US',
"state" => '',
"state" => 'CA',
"work_email" => user.email,
"uid" => user.id,
"setup_for_company" => user.setup_for_company,
......@@ -42,6 +42,7 @@ RSpec.describe 'Company Information', :js do
fill_in 'company_name', with: 'GitLab'
select '1 - 99', from: 'company_size'
select 'United States of America', from: 'country'
select 'California', from: 'state'
fill_in 'website_url', with: 'gitlab.com'
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