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 {
<body>
<Main />
<NextScript />
<div id="text"></div>
</body>
</html>
)
......
......@@ -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)
})`}
</Script>
<Script
......
......@@ -30,7 +30,6 @@ const Page = () => {
document.getElementById('text').textContent += _.repeat('c', 3)
}}
></Script>
<div id="text"></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