Fixed tests

This commit is contained in:
Jose Ivan Vargas 2017-04-13 16:43:07 -05:00 committed by tauriedavis
parent e7c9aa6030
commit 6c055805ea
2 changed files with 2 additions and 3 deletions

View File

@ -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'

View File

@ -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) => {