added test for help section keyboard shortcuts

This commit is contained in:
Faldrian 2014-08-02 10:30:17 +02:00
parent 6be6d6d504
commit 207b351049

View file

@ -77,6 +77,11 @@ describe("app.views.Help", function(){
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_tags')).toBeTruthy();
});
it('should show keyboard shortcuts section', function(){
this.view.$el.find('a[data-section=keyboard_shortcuts]').trigger('click');
expect(this.view.$el.find('#faq').children().first().data('template') == 'faq_keyboard_shortcuts').toBeTruthy();
});
it('should show miscellaneous section', function(){
this.view.$el.find('a[data-section=miscellaneous]').trigger('click');
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_miscellaneous')).toBeTruthy();