diff --git a/test/integration/script-loader/pages/_document.js b/test/integration/script-loader/pages/_document.js index 59d8fe75cd4c4..05c7c4392d5e8 100644 --- a/test/integration/script-loader/pages/_document.js +++ b/test/integration/script-loader/pages/_document.js @@ -23,6 +23,7 @@ export default class MyDocument extends Document {
+
) diff --git a/test/integration/script-loader/pages/page3.js b/test/integration/script-loader/pages/page3.js index 5ee81d1a30dba..15cc558c9417d 100644 --- a/test/integration/script-loader/pages/page3.js +++ b/test/integration/script-loader/pages/page3.js @@ -7,7 +7,7 @@ const Page = () => { {`(window.onload = function () { const newDiv = document.createElement('div') newDiv.id = 'onload-div' - document.querySelector('.container').appendChild(newDiv) + document.querySelector('body').appendChild(newDiv) })`} -
) }