DEV: do not wait for closed composer event on test (#7221)

This commit is contained in:
Joffrey JAFFEUX 2019-03-20 20:13:15 +01:00 committed by GitHub
parent 88a3b89990
commit 45ef2ec8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -916,7 +916,10 @@ export default Ember.Component.extend({
Ember.run.next(() => {
$("#main-outlet").css("padding-bottom", 0);
// need to wait a bit for the "slide down" transition of the composer
Ember.run.later(() => this.appEvents.trigger("composer:closed"), 400);
Ember.run.later(
() => this.appEvents.trigger("composer:closed"),
Ember.testing ? 0 : 400
);
});
if (this._enableAdvancedEditorPreviewSync())