DEV: no delaying topic scroll in tests

DEV: no delaying topic scroll in tests

diff --git a/app/assets/javascripts/discourse/routes/topic.js.es6 b/app/assets/javascripts/discourse/routes/topic.js.es6
index 4e4865e..d0c5b28 100644
--- a/app/assets/javascripts/discourse/routes/topic.js.es6
+++ b/app/assets/javascripts/discourse/routes/topic.js.es6
@@ -174,7 +174,7 @@ const TopicRoute = Discourse.Route.extend({
           this,
           "_replaceUnlessScrolling",
           postUrl,
-          SCROLL_DELAY
+          Ember.Test ? 0 : SCROLL_DELAY
         );
       }
     },

GitHub sha: 3c7eb74f

1 Like