From fad971dce141cb01f0199280590b2c981387986c Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Sun, 31 Jan 2021 22:31:19 -0600 Subject: [PATCH] Update script loader tests --- test/integration/script-loader/pages/_document.js | 1 + test/integration/script-loader/pages/page3.js | 2 +- test/integration/script-loader/pages/page4.js | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) 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) })`} -
) }