DEV: do not wait for closed composer event on test (#7221)
This commit is contained in:
parent
88a3b89990
commit
45ef2ec8cd
|
@ -916,7 +916,10 @@ export default Ember.Component.extend({
|
||||||
Ember.run.next(() => {
|
Ember.run.next(() => {
|
||||||
$("#main-outlet").css("padding-bottom", 0);
|
$("#main-outlet").css("padding-bottom", 0);
|
||||||
// need to wait a bit for the "slide down" transition of the composer
|
// 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())
|
if (this._enableAdvancedEditorPreviewSync())
|
||||||
|
|
Loading…
Reference in New Issue