Skip to content
Extraits de code Groupes Projets
Valider 207b3510 rédigé par Faldrian's avatar Faldrian
Parcourir les fichiers

added test for help section keyboard shortcuts

parent 6be6d6d5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -77,6 +77,11 @@ describe("app.views.Help", function(){ ...@@ -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();
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter