Skip to content

Add nonce property to script tags #11112

Add nonce property to script tags

Add nonce property to script tags #11112

Triggered via pull request May 16, 2024 00:27
Status Failure
Total duration 9m 56s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
test/preload/dev.spec.ts > preload tags > Preload Default: test/preload/testRun.ts#L18
Error: Snapshot `preload tags > Preload Default 2` mismatched - Expected + Received @@ -3,11 +3,11 @@ <head> <link rel="stylesheet" type="text/css" href="/renderer/PageLayout.css?direct"> </head> <body> <div id="page-view"><div style="display:flex;max-width:900px;margin:auto"><div style="padding:20px;padding-top:20px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;line-height:1.8em"><div style="margin-top:20px;margin-bottom:10px"><a href="/"><img src="/renderer/logo.svg" height="64" width="64"/></a></div><a class="navitem" href="/">Preload Default</a><a class="navitem" href="/preload-disabled">Preload Disabled</a><a class="navitem" href="/preload-images">Preload Images</a></div><div style="padding:20px;padding-bottom:50px;border-left:2px solid #eee;min-height:100vh"><h1>Default</h1><p>This page showcases the default preloading strategy: in production, both the image and the font are preloaded.</p></div></div></div> - <script id="vike_pageContext" type="application/json">{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/index","routeParams":{},"data":"!undefined"}</script> + <script id="vike_pageContext" type="application/json" >{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/index","routeParams":{},"data":"!undefined"}</script> <script type="module" async> import RefreshRuntime from "/@react-refresh" RefreshRuntime.injectIntoGlobalHook(window) window.$RefreshReg$ = () => {} window.$RefreshSig$ = () => (type) => type ❯ test/preload/testRun.ts:18:44
test/preload/dev.spec.ts > preload tags > Preload Disabled: test/preload/testRun.ts#L25
Error: Snapshot `preload tags > Preload Disabled 2` mismatched - Expected + Received @@ -3,11 +3,11 @@ <head> <link rel="stylesheet" type="text/css" href="/renderer/PageLayout.css?direct"> </head> <body> <div id="page-view"><div style="display:flex;max-width:900px;margin:auto"><div style="padding:20px;padding-top:20px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;line-height:1.8em"><div style="margin-top:20px;margin-bottom:10px"><a href="/"><img src="/renderer/logo.svg" height="64" width="64"/></a></div><a class="navitem" href="/">Preload Default</a><a class="navitem" href="/preload-disabled">Preload Disabled</a><a class="navitem" href="/preload-images">Preload Images</a></div><div style="padding:20px;padding-bottom:50px;border-left:2px solid #eee;min-height:100vh"><h1>Preload Disabled</h1><p>This page showcases completely disabled preloading: the image nor the font are preloaded.</p></div></div></div> - <script id="vike_pageContext" type="application/json">{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-disabled","routeParams":{},"data":"!undefined"}</script> + <script id="vike_pageContext" type="application/json" >{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-disabled","routeParams":{},"data":"!undefined"}</script> <script type="module" async> import RefreshRuntime from "/@react-refresh" RefreshRuntime.injectIntoGlobalHook(window) window.$RefreshReg$ = () => {} window.$RefreshSig$ = () => (type) => type ❯ test/preload/testRun.ts:25:42
test/preload/dev.spec.ts > preload tags > Preload Images: test/preload/testRun.ts#L30
Error: Snapshot `preload tags > Preload Images 2` mismatched - Expected + Received @@ -3,11 +3,11 @@ <head> <link rel="stylesheet" type="text/css" href="/renderer/PageLayout.css?direct"> </head> <body> <div id="page-view"><div style="display:flex;max-width:900px;margin:auto"><div style="padding:20px;padding-top:20px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;line-height:1.8em"><div style="margin-top:20px;margin-bottom:10px"><a href="/"><img src="/renderer/logo.svg" height="64" width="64"/></a></div><a class="navitem" href="/">Preload Default</a><a class="navitem" href="/preload-disabled">Preload Disabled</a><a class="navitem" href="/preload-images">Preload Images</a></div><div style="padding:20px;padding-bottom:50px;border-left:2px solid #eee;min-height:100vh"><h1>Preload Images</h1><p>This page showcases a custom strategy of preloading images.</p></div></div></div> - <script id="vike_pageContext" type="application/json">{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-images","routeParams":{},"data":"!undefined"}</script> + <script id="vike_pageContext" type="application/json" >{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-images","routeParams":{},"data":"!undefined"}</script> <script type="module" async> import RefreshRuntime from "/@react-refresh" RefreshRuntime.injectIntoGlobalHook(window) window.$RefreshReg$ = () => {} window.$RefreshSig$ = () => (type) => type ❯ test/preload/testRun.ts:30:42
test/preload/dev.spec.ts > preload tags > Preload Eager: test/preload/testRun.ts#L35
Error: Snapshot `preload tags > Preload Eager 2` mismatched - Expected + Received @@ -3,11 +3,11 @@ <head> <link rel="stylesheet" type="text/css" href="/renderer/PageLayout.css?direct"> </head> <body> <div id="page-view"><div style="display:flex;max-width:900px;margin:auto"><div style="padding:20px;padding-top:20px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;line-height:1.8em"><div style="margin-top:20px;margin-bottom:10px"><a href="/"><img src="/renderer/logo.svg" height="64" width="64"/></a></div><a class="navitem" href="/">Preload Default</a><a class="navitem" href="/preload-disabled">Preload Disabled</a><a class="navitem" href="/preload-images">Preload Images</a></div><div style="padding:20px;padding-bottom:50px;border-left:2px solid #eee;min-height:100vh"><h1>Eager</h1><p>This page showcases eager preloading (non-JavaScript assets are preloaded ASAP).</p></div></div></div> - <script id="vike_pageContext" type="application/json">{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-eager","routeParams":{},"data":"!undefined"}</script> + <script id="vike_pageContext" type="application/json" >{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-eager","routeParams":{},"data":"!undefined"}</script> <script type="module" async> import RefreshRuntime from "/@react-refresh" RefreshRuntime.injectIntoGlobalHook(window) window.$RefreshReg$ = () => {} window.$RefreshSig$ = () => (type) => type ❯ test/preload/testRun.ts:35:42
test/preload/prod.spec.ts > preload tags > Preload Default: test/preload/testRun.ts#L18
Error: Snapshot `preload tags > Preload Default 2` mismatched - Expected + Received @@ -4,11 +4,11 @@ <link rel="stylesheet" type="text/css" href="/assets/static/onRenderClient.$HASH.css"> <link rel="preload" href="/assets/static/Sono-Light.$HASH.ttf" as="font" type="font/ttf" crossorigin> </head> <body> <div id="page-view"><div style="display:flex;max-width:900px;margin:auto"><div style="padding:20px;padding-top:20px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;line-height:1.8em"><div style="margin-top:20px;margin-bottom:10px"><a href="/"><img src="/assets/static/logo.$HASH.svg" height="64" width="64"/></a></div><a class="navitem" href="/">Preload Default</a><a class="navitem" href="/preload-disabled">Preload Disabled</a><a class="navitem" href="/preload-images">Preload Images</a></div><div style="padding:20px;padding-bottom:50px;border-left:2px solid #eee;min-height:100vh"><h1>Default</h1><p>This page showcases the default preloading strategy: in production, both the image and the font are preloaded.</p></div></div></div> - <script id="vike_pageContext" type="application/json">{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/index","routeParams":{},"data":"!undefined"}</script> + <script id="vike_pageContext" type="application/json" >{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/index","routeParams":{},"data":"!undefined"}</script> <script src="/assets/entries/entry-server-routing.$HASH.js" type="module" async></script> <link rel="modulepreload" href="/assets/entries/pages_index.$HASH.js" as="script" type="text/javascript"> <link rel="modulepreload" href="/assets/chunks/chunk-$HASH.js" as="script" type="text/javascript"> </body> </html>" ❯ test/preload/testRun.ts:18:44
test/preload/prod.spec.ts > preload tags > Preload Disabled: test/preload/testRun.ts#L25
Error: Snapshot `preload tags > Preload Disabled 2` mismatched - Expected + Received @@ -3,9 +3,9 @@ <head> <link rel="stylesheet" type="text/css" href="/assets/static/onRenderClient.$HASH.css"> </head> <body> <div id="page-view"><div style="display:flex;max-width:900px;margin:auto"><div style="padding:20px;padding-top:20px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;line-height:1.8em"><div style="margin-top:20px;margin-bottom:10px"><a href="/"><img src="/assets/static/logo.$HASH.svg" height="64" width="64"/></a></div><a class="navitem" href="/">Preload Default</a><a class="navitem" href="/preload-disabled">Preload Disabled</a><a class="navitem" href="/preload-images">Preload Images</a></div><div style="padding:20px;padding-bottom:50px;border-left:2px solid #eee;min-height:100vh"><h1>Preload Disabled</h1><p>This page showcases completely disabled preloading: the image nor the font are preloaded.</p></div></div></div> - <script id="vike_pageContext" type="application/json">{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-disabled","routeParams":{},"data":"!undefined"}</script> + <script id="vike_pageContext" type="application/json" >{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-disabled","routeParams":{},"data":"!undefined"}</script> <script src="/assets/entries/entry-server-routing.$HASH.js" type="module" async></script> </body> </html>" ❯ test/preload/testRun.ts:25:42
test/preload/prod.spec.ts > preload tags > Preload Images: test/preload/testRun.ts#L30
Error: Snapshot `preload tags > Preload Images 2` mismatched - Expected + Received @@ -5,11 +5,11 @@ <link rel="preload" href="/assets/static/Sono-Light.$HASH.ttf" as="font" type="font/ttf" crossorigin> <link rel="preload" href="/assets/static/logo.$HASH.svg" as="image" type="image/svg+xml"> </head> <body> <div id="page-view"><div style="display:flex;max-width:900px;margin:auto"><div style="padding:20px;padding-top:20px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;line-height:1.8em"><div style="margin-top:20px;margin-bottom:10px"><a href="/"><img src="/assets/static/logo.$HASH.svg" height="64" width="64"/></a></div><a class="navitem" href="/">Preload Default</a><a class="navitem" href="/preload-disabled">Preload Disabled</a><a class="navitem" href="/preload-images">Preload Images</a></div><div style="padding:20px;padding-bottom:50px;border-left:2px solid #eee;min-height:100vh"><h1>Preload Images</h1><p>This page showcases a custom strategy of preloading images.</p></div></div></div> - <script id="vike_pageContext" type="application/json">{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-images","routeParams":{},"data":"!undefined"}</script> + <script id="vike_pageContext" type="application/json" >{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-images","routeParams":{},"data":"!undefined"}</script> <script src="/assets/entries/entry-server-routing.$HASH.js" type="module" async></script> <link rel="modulepreload" href="/assets/entries/pages_preload-images.$HASH.js" as="script" type="text/javascript"> <link rel="modulepreload" href="/assets/chunks/chunk-$HASH.js" as="script" type="text/javascript"> </body> </html>" ❯ test/preload/testRun.ts:30:42
test/preload/prod.spec.ts > preload tags > Preload Eager: test/preload/testRun.ts#L35
Error: Snapshot `preload tags > Preload Eager 2` mismatched - Expected + Received @@ -7,9 +7,9 @@ <link rel="modulepreload" href="/assets/entries/pages_preload-eager.$HASH.js" as="script" type="text/javascript"> <link rel="modulepreload" href="/assets/chunks/chunk-$HASH.js" as="script" type="text/javascript"> </head> <body> <div id="page-view"><div style="display:flex;max-width:900px;margin:auto"><div style="padding:20px;padding-top:20px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;line-height:1.8em"><div style="margin-top:20px;margin-bottom:10px"><a href="/"><img src="/assets/static/logo.$HASH.svg" height="64" width="64"/></a></div><a class="navitem" href="/">Preload Default</a><a class="navitem" href="/preload-disabled">Preload Disabled</a><a class="navitem" href="/preload-images">Preload Images</a></div><div style="padding:20px;padding-bottom:50px;border-left:2px solid #eee;min-height:100vh"><h1>Eager</h1><p>This page showcases eager preloading (non-JavaScript assets are preloaded ASAP).</p></div></div></div> - <script id="vike_pageContext" type="application/json">{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-eager","routeParams":{},"data":"!undefined"}</script> + <script id="vike_pageContext" type="application/json" >{"pageProps":"!undefined","abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/preload-eager","routeParams":{},"data":"!undefined"}</script> <script src="/assets/entries/entry-server-routing.$HASH.js" type="module" async></script> </body> </html>" ❯ test/preload/testRun.ts:35:42
Vitest (E2E tests) - Ubuntu - Node.js 18
Process completed with exit code 1.
Vitest (E2E tests) - Ubuntu - Node.js 18
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Vitest (E2E tests) - Ubuntu - Node.js 18
No files were found with the provided path: **/test-screenshot-expect.png **/test-screenshot-actual.png **/test-screenshot-differ.png. No artifacts will be uploaded.