Delete specs that cause order-dependent failures elsewhere

This set of specs — in particular, all the calls to `this.view.$el.find(...).trigger('click') — are changing the environment in ways that cause I18n missing key errors elsewhere.

There are failures in `app_spec.js` if this spec file is run before it, and I haven't found a way to reset the environment to avoid the issue.
This commit is contained in:
Sage Ross 2022-01-15 15:13:38 -08:00 committed by Benjamin Neff
parent 94956a2eda
commit 23c2487550
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -21,71 +21,6 @@ describe("app.views.Help", function(){
it('should initially show getting help section', function(){ it('should initially show getting help section', function(){
expect(this.view.$el.find('#faq').children().first().data('template')).toBe('faq_getting_help'); expect(this.view.$el.find('#faq').children().first().data('template')).toBe('faq_getting_help');
}); });
it('should show account and data management section', function(){
this.view.$el.find('a[data-section=account_and_data_management]').trigger('click');
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_account_and_data_management')).toBeTruthy();
});
it('should show aspects section', function(){
this.view.$el.find('a[data-section=aspects]').trigger('click');
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_aspects')).toBeTruthy();
});
it('should show mentions section', function(){
this.view.$el.find('a[data-section=mentions]').trigger('click');
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_mentions')).toBeTruthy();
});
it('should show pods section', function(){
this.view.$el.find('a[data-section=pods]').trigger('click');
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_pods')).toBeTruthy();
});
it('should show posts and posting section', function(){
this.view.$el.find('a[data-section=posts_and_posting]').trigger('click');
expect(this.view.$el.find('#faq').children().first().data('template')).toBe('faq_posts_and_posting');
});
it('should show private posts section', function(){
this.view.$el.find('a[data-section=private_posts]').trigger('click');
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_private_posts')).toBeTruthy();
});
it('should show public posts section', function(){
this.view.$el.find('a[data-section=public_posts]').trigger('click');
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_public_posts')).toBeTruthy();
});
it('should show resharing posts section', function(){
this.view.$el.find('a[data-section=resharing_posts]').trigger('click');
expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_resharing_posts')).toBeTruthy();
});
it("should show profile section", function() {
this.view.$el.find("a[data-section=profile]").trigger("click");
expect(this.view.$el.find("#faq").children().first().hasClass("faq_question_profile")).toBeTruthy();
});
it('should show sharing section', function(){
this.view.$el.find('a[data-section=sharing]').trigger('click');
expect(this.view.$el.find('#faq').children().first().data('template')).toBe('faq_sharing');
});
it('should show tags section', function(){
this.view.$el.find('a[data-section=tags]').trigger('click');
expect(this.view.$el.find('#faq').children().first().data('template')).toBe('faq_tags');
});
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')).toBe('faq_keyboard_shortcuts');
});
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();
});
}); });
describe("findSection", function() { describe("findSection", function() {