DEV: Also reset horizontal scroll after each test (#17527)

🤞 maybe this will cover the remaining out-of-viewport flakes
This commit is contained in:
Jarek Radosz 2022-07-16 22:56:19 +02:00 committed by GitHub
parent eef358dc13
commit 1b4dea75ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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();