summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-04-13 16:43:07 -0500
committerJose Ivan Vargas <jvargas@gitlab.com>2017-04-13 16:43:07 -0500
commitd04a017ad63660543c3890a49e80547abac0332a (patch)
tree2204f2b9acfcc4ecc92e6ad34f10f6d2cb363234
parent32a387a72c3d0085890001571e1a3bfd74ef07eb (diff)
downloadgitlab-ce-d04a017ad63660543c3890a49e80547abac0332a.tar.gz
Fixed tests
-rw-r--r--app/views/shared/_user_callout.html.haml4
-rw-r--r--spec/javascripts/user_callout_spec.js1
2 files changed, 2 insertions, 3 deletions
diff --git a/app/views/shared/_user_callout.html.haml b/app/views/shared/_user_callout.html.haml
index 108643f2f6f..8308baa7829 100644
--- a/app/views/shared/_user_callout.html.haml
+++ b/app/views/shared/_user_callout.html.haml
@@ -1,6 +1,6 @@
.user-callout
.bordered-box.landing.content-block
- %button.btn.btn-default.close.close-user-callout{ type: 'button',
+ %button.btn.btn-default.close.js-close-callout{ type: 'button',
'aria-label' => 'Dismiss customize experience box' }
= icon('times', class: 'dismiss-icon', 'aria-hidden' => 'true')
.svg-container
@@ -10,4 +10,4 @@
Customize your experience
%p
Change syntax themes, default project pages, and more in preferences.
- = link_to 'Check it out', profile_preferences_path, class: 'btn btn-primary user-callout-btn'
+ = link_to 'Check it out', profile_preferences_path, class: 'btn btn-primary js-close-callout'
diff --git a/spec/javascripts/user_callout_spec.js b/spec/javascripts/user_callout_spec.js
index c0375ebc61c..28d0c7dcd99 100644
--- a/spec/javascripts/user_callout_spec.js
+++ b/spec/javascripts/user_callout_spec.js
@@ -14,7 +14,6 @@ describe('UserCallout', function () {
this.userCallout = new UserCallout();
this.closeButton = $('.js-close-callout.close');
this.userCalloutBtn = $('.js-close-callout:not(.close)');
- this.userCalloutContainer = $('.user-callout');
});
it('hides when user clicks on the dismiss-icon', (done) => {