Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28587f4

Browse files
committed
skip the ssr fetch cache test due to flakiness
1 parent d98ab7e commit 28587f4

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

examples/e2e/app-router/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function Home() {
2222
<Nav href={"/isr"} title="ISR">
2323
Incremental Static Regeneration revalidates every 10 seconds with a new timestamp
2424
</Nav>
25-
<Nav href={"/ssr"} title="SSR" prefetch={false}>
25+
<Nav href={"/ssr"} title="SSR">
2626
Server Side Render should generate a new timestamp on each load. Streaming support for loading...
2727
</Nav>
2828
<Nav href={"/api"} title="API">

examples/e2e/app-router/e2e/revalidateTag.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ test.skip("Revalidate tag", async ({ page, request }) => {
6969
expect(nextCacheHeaderNested).toEqual("HIT");
7070
});
7171

72-
// Cache (and revalidatePath) is currently not supported: https://github.com/opennextjs/opennextjs-cloudflare/issues/105
73-
test.skip("Revalidate path", async ({ page, request }) => {
72+
test("Revalidate path", async ({ page, request }) => {
7473
await page.goto("/revalidate-path");
7574

7675
let elLayout = page.getByText("RequestID:");

examples/e2e/app-router/e2e/ssr.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ test.skip("Server Side Render and loading.tsx", async ({ page }) => {
2828
}
2929
});
3030

31-
test("Fetch cache properly cached", async ({ page }) => {
31+
// NOTE: This test is quite flaky.
32+
test.skip("Fetch cache properly cached", async ({ page }) => {
3233
await page.goto("/ssr");
3334
const originalDate = await page.getByText("Cached fetch:").textContent();
3435
await page.waitForTimeout(2000);

examples/e2e/shared/components/Nav/index.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,11 @@ type Props = PropsWithChildren & {
66
href: string;
77
title: string;
88
icon?: string;
9-
prefetch?: boolean;
109
};
1110
export default function Nav(p: Props) {
12-
const { children, href, title, icon = "/static/frank.webp", prefetch } = p;
11+
const { children, href, title, icon = "/static/frank.webp" } = p;
1312
return (
14-
<Link
15-
href={href}
16-
className="flex flex-col group border p-2 rounded-sm border-orange-500"
17-
prefetch={prefetch}
18-
>
13+
<Link href={href} className="flex flex-col group border p-2 rounded-sm border-orange-500">
1914
<div className="flex items-center relative">
2015
<div>{title}</div>
2116
<div>

0 commit comments

Comments
 (0)