fix: Partials not working on error pages (#2072)

This commit is contained in:
Marvin Hagemeister
2023-11-27 16:56:46 +01:00
committed by GitHub
parent 1294d455bc
commit a56ea283c8
5 changed files with 45 additions and 4 deletions
+13
View File
@@ -1509,3 +1509,16 @@ Deno.test("partials with redirects", async () => {
},
);
});
Deno.test("render 404 partial", async () => {
await withPageName(
"./tests/fixture_partials/main.ts",
async (page, address) => {
await page.goto(`${address}/error_404`);
await page.waitForSelector(".status");
await page.click(".update-link");
await page.waitForSelector(".status-404");
},
);
});