Update app/assets/javascripts/discourse/tests/setup-tests.js

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
Robin Ward 2022-01-27 16:21:15 -05:00
parent 3350657553
commit 5c694e62ba

@ -347,7 +347,7 @@ function setupTestsCommon(application, container, config) {
e.remove()
);
document.body.removeAttribute("class");
let html = document.getElementsByTagName("html")[0];
let html = document.documentElement;
html.removeAttribute("class");
html.removeAttribute("style");
let testing = document.getElementById("ember-testing");