summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-03-28 18:44:50 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-03-28 18:44:50 +0100
commit5cad1401b8a23761b2cc32b079956b5469476a73 (patch)
treee2a743a387512f0b67601f10d44eebdba0d31aff
parent76119cb113f5489458b2a431eeb35fd0e4d06989 (diff)
downloadgitlab-ce-5cad1401b8a23761b2cc32b079956b5469476a73.tar.gz
Fix broken test
-rw-r--r--app/assets/javascripts/environments/components/environment_item.js2
-rw-r--r--spec/javascripts/environments/environment_spec.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/environments/components/environment_item.js b/app/assets/javascripts/environments/components/environment_item.js
index 9f297644368..c0021a3fdee 100644
--- a/app/assets/javascripts/environments/components/environment_item.js
+++ b/app/assets/javascripts/environments/components/environment_item.js
@@ -425,7 +425,7 @@ export default {
},
template: `
- <tr>
+ <tr :class="{ 'js-child-row': model.isChildren }">
<td>
<a v-if="!model.isFolder"
class="environment-name"
diff --git a/spec/javascripts/environments/environment_spec.js b/spec/javascripts/environments/environment_spec.js
index 37e01ef7516..53a1d42b052 100644
--- a/spec/javascripts/environments/environment_spec.js
+++ b/spec/javascripts/environments/environment_spec.js
@@ -262,7 +262,7 @@ describe('Environment', () => {
// wait for next async request
setTimeout(() => {
- expect(component.$el.querySelectorAll('.child-row').length).toEqual(1);
+ expect(component.$el.querySelectorAll('.js-child-row').length).toEqual(1);
expect(component.$el.querySelector('td.text-center > a.btn').textContent).toContain('Show all');
Vue.http.interceptors = _.without(Vue.http.interceptors, folderInterceptor);