summaryrefslogtreecommitdiff
path: root/spec/javascripts/clusters
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-02-22 16:38:12 +0000
committerFilipa Lacerda <filipa@gitlab.com>2018-02-22 16:38:12 +0000
commit18b1b5be65e6421b080216e61e27c41be913f802 (patch)
treeb8cf4fc3b84c9383d2c0ff2ce1d24c145b36afd1 /spec/javascripts/clusters
parent0103958d6f7cd35828ee7a74dbd984e316e2f1e1 (diff)
downloadgitlab-ce-18b1b5be65e6421b080216e61e27c41be913f802.tar.gz
Use value attribute in ip input
Removes double quoted string
Diffstat (limited to 'spec/javascripts/clusters')
-rw-r--r--spec/javascripts/clusters/components/applications_spec.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/javascripts/clusters/components/applications_spec.js b/spec/javascripts/clusters/components/applications_spec.js
index 6e09c829213..51c2a7e76c5 100644
--- a/spec/javascripts/clusters/components/applications_spec.js
+++ b/spec/javascripts/clusters/components/applications_spec.js
@@ -61,9 +61,11 @@ describe('Applications', () => {
prometheus: { title: 'Prometheus' },
},
});
+
expect(
- vm.$el.querySelector('.js-ip-address').getAttribute('placeholder'),
+ vm.$el.querySelector('.js-ip-address').value,
).toEqual('0.0.0.0');
+
expect(
vm.$el.querySelector('.js-clipboard-btn').getAttribute('data-clipboard-text'),
).toEqual('0.0.0.0');
@@ -85,7 +87,7 @@ describe('Applications', () => {
});
expect(
- vm.$el.querySelector('.js-ip-address').getAttribute('placeholder'),
+ vm.$el.querySelector('.js-ip-address').value,
).toEqual('?');
expect(vm.$el.querySelector('.js-no-ip-message')).not.toBe(null);