added test for help section keyboard shortcuts
This commit is contained in:
parent
6be6d6d504
commit
207b351049
1 changed files with 5 additions and 0 deletions
|
|
@ -77,6 +77,11 @@ describe("app.views.Help", function(){
|
||||||
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_tags')).toBeTruthy();
|
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(){
|
it('should show miscellaneous section', function(){
|
||||||
this.view.$el.find('a[data-section=miscellaneous]').trigger('click');
|
this.view.$el.find('a[data-section=miscellaneous]').trigger('click');
|
||||||
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_miscellaneous')).toBeTruthy();
|
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_miscellaneous')).toBeTruthy();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue