Commit d04a017a authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Fixed tests

parent 32a387a7
.user-callout .user-callout
.bordered-box.landing.content-block .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' } 'aria-label' => 'Dismiss customize experience box' }
= icon('times', class: 'dismiss-icon', 'aria-hidden' => 'true') = icon('times', class: 'dismiss-icon', 'aria-hidden' => 'true')
.svg-container .svg-container
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
Customize your experience Customize your experience
%p %p
Change syntax themes, default project pages, and more in preferences. 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'
...@@ -14,7 +14,6 @@ describe('UserCallout', function () { ...@@ -14,7 +14,6 @@ describe('UserCallout', function () {
this.userCallout = new UserCallout(); this.userCallout = new UserCallout();
this.closeButton = $('.js-close-callout.close'); this.closeButton = $('.js-close-callout.close');
this.userCalloutBtn = $('.js-close-callout:not(.close)'); this.userCalloutBtn = $('.js-close-callout:not(.close)');
this.userCalloutContainer = $('.user-callout');
}); });
it('hides when user clicks on the dismiss-icon', (done) => { it('hides when user clicks on the dismiss-icon', (done) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment