diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-02-20 16:50:14 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-02-20 16:50:14 +0000 |
commit | e1d587f5d6fe76900dd7cce26178464d4455fb8b (patch) | |
tree | 52e7748c448ba34bd4eb8ed62835e22679125014 /spec | |
parent | 5aa4d7bfb4a3ffa7881bdba0a0dcc50cdb245684 (diff) | |
download | gitlab-ce-e1d587f5d6fe76900dd7cce26178464d4455fb8b.tar.gz |
Remove duplicate ID
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/clusters/applications_spec.rb | 4 | ||||
-rw-r--r-- | spec/javascripts/clusters/components/applications_spec.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/projects/clusters/applications_spec.rb b/spec/features/projects/clusters/applications_spec.rb index b984bdb5803..fd322d2eeb4 100644 --- a/spec/features/projects/clusters/applications_spec.rb +++ b/spec/features/projects/clusters/applications_spec.rb @@ -99,13 +99,13 @@ feature 'Clusters Applications', :js do expect(page.find(:css, '.js-cluster-application-install-button')['disabled']).to eq('true') expect(page.find(:css, '.js-cluster-application-install-button')).to have_content('Installed') expect(page).to have_selector('.js-no-ip-message') - expect(page.find(:css, 'input#ipAddress')['placeholder']).to eq('?') + expect(page.find(:css, 'input.js-ip-address')['placeholder']).to eq('?') # We receive the external IP address and display Clusters::Cluster.last.application_ingress.update!(external_ip: '192.168.1.100') expect(page).not_to have_selector('.js-no-ip-message') - expect(page.find(:css, 'input#ipAddress')['placeholder']).to eq('192.168.1.100') + expect(page.find(:css, 'input.js-ip-address')['placeholder']).to eq('192.168.1.100') end expect(page).to have_content('Ingress was successfully installed on your Kubernetes cluster') diff --git a/spec/javascripts/clusters/components/applications_spec.js b/spec/javascripts/clusters/components/applications_spec.js index 9bd47aea7f9..e3312f62c04 100644 --- a/spec/javascripts/clusters/components/applications_spec.js +++ b/spec/javascripts/clusters/components/applications_spec.js @@ -62,7 +62,7 @@ describe('Applications', () => { }, }); expect( - vm.$el.querySelector('#ipAddress').getAttribute('placeholder'), + vm.$el.querySelector('.js-ip-address').getAttribute('placeholder'), ).toEqual('0.0.0.0'); expect( vm.$el.querySelector('.js-clipboard-btn').getAttribute('data-clipboard-text'), @@ -85,7 +85,7 @@ describe('Applications', () => { }); expect( - vm.$el.querySelector('#ipAddress').getAttribute('placeholder'), + vm.$el.querySelector('.js-ip-address').getAttribute('placeholder'), ).toEqual('?'); expect( @@ -109,7 +109,7 @@ describe('Applications', () => { }); expect(vm.$el.textContent).not.toContain('Ingress IP Address'); - expect(vm.$el.querySelector('#ipAddress')).toBe(null); + expect(vm.$el.querySelector('.js-ip-address')).toBe(null); }); }); }); |