fix: Partials not working on error pages (#2072)
This commit is contained in:
@@ -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");
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user