Unverified Commit bd0b650d authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update script loader tests (#21730)

Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 40065135
...@@ -23,6 +23,7 @@ export default class MyDocument extends Document { ...@@ -23,6 +23,7 @@ export default class MyDocument extends Document {
<body> <body>
<Main /> <Main />
<NextScript /> <NextScript />
<div id="text"></div>
</body> </body>
</html> </html>
) )
......
...@@ -7,7 +7,7 @@ const Page = () => { ...@@ -7,7 +7,7 @@ const Page = () => {
{`(window.onload = function () { {`(window.onload = function () {
const newDiv = document.createElement('div') const newDiv = document.createElement('div')
newDiv.id = 'onload-div' newDiv.id = 'onload-div'
document.querySelector('.container').appendChild(newDiv) document.querySelector('body').appendChild(newDiv)
})`} })`}
</Script> </Script>
<Script <Script
......
...@@ -30,7 +30,6 @@ const Page = () => { ...@@ -30,7 +30,6 @@ const Page = () => {
document.getElementById('text').textContent += _.repeat('c', 3) document.getElementById('text').textContent += _.repeat('c', 3)
}} }}
></Script> ></Script>
<div id="text"></div>
</div> </div>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment