Commit 119a5f0c authored by Enrique Alcantara's avatar Enrique Alcantara

Specify new validation message selector

Update QA selector to specify that API URL
is a input type=url field
parent ca32773d
...@@ -6,7 +6,7 @@ module QA ...@@ -6,7 +6,7 @@ module QA
class AddExisting < Page::Base class AddExisting < Page::Base
view 'app/views/clusters/clusters/user/_form.html.haml' do view 'app/views/clusters/clusters/user/_form.html.haml' do
element :cluster_name, 'text_field :name' # rubocop:disable QA/ElementWithPattern element :cluster_name, 'text_field :name' # rubocop:disable QA/ElementWithPattern
element :api_url, 'text_field :api_url' # rubocop:disable QA/ElementWithPattern element :api_url, 'url_field :api_url' # rubocop:disable QA/ElementWithPattern
element :ca_certificate, 'text_area :ca_cert' # rubocop:disable QA/ElementWithPattern element :ca_certificate, 'text_area :ca_cert' # rubocop:disable QA/ElementWithPattern
element :token, 'text_field :token' # rubocop:disable QA/ElementWithPattern element :token, 'text_field :token' # rubocop:disable QA/ElementWithPattern
element :add_cluster_button, "submit s_('ClusterIntegration|Add Kubernetes cluster')" # rubocop:disable QA/ElementWithPattern element :add_cluster_button, "submit s_('ClusterIntegration|Add Kubernetes cluster')" # rubocop:disable QA/ElementWithPattern
......
...@@ -69,7 +69,7 @@ describe 'User Cluster', :js do ...@@ -69,7 +69,7 @@ describe 'User Cluster', :js do
end end
it 'user sees a validation error' do it 'user sees a validation error' do
expect(page).to have_css('#error_explanation') expect(page).to have_css('.gl-field-error')
end end
end end
end end
......
...@@ -92,7 +92,7 @@ describe 'Gcp Cluster', :js do ...@@ -92,7 +92,7 @@ describe 'Gcp Cluster', :js do
end end
it 'user sees a validation error' do it 'user sees a validation error' do
expect(page).to have_css('#error_explanation') expect(page).to have_css('.gl-field-error')
end end
end end
end end
......
...@@ -53,7 +53,7 @@ describe 'User Cluster', :js do ...@@ -53,7 +53,7 @@ describe 'User Cluster', :js do
end end
it 'user sees a validation error' do it 'user sees a validation error' do
expect(page).to have_css('#error_explanation') expect(page).to have_css('.gl-field-error')
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