A platform for community discussion. Free, open, simple.
DEV: Also reset horizontal scroll after each test (#17527)
Jarek Radosz1b4dea75ee29
diff --git a/app/assets/javascripts/discourse/tests/setup-tests.js b/app/assets/javascripts/discourse/tests/setup-tests.jsindex 5af7971802f..3f24b5122a9 100644--- a/app/assets/javascripts/discourse/tests/setup-tests.js+++ b/app/assets/javascripts/discourse/tests/setup-tests.js@@ -311,8 +311,10 @@ export default function setupTests(config) {let testing = document.getElementById("ember-testing");testing.removeAttribute("class");testing.removeAttribute("style");- let testContainer = document.getElementById("ember-testing-container");++ const testContainer = document.getElementById("ember-testing-container");testContainer.scrollTop = 0;+ testContainer.scrollLeft = 0;flushMap();