@@ -3,7 +3,7 @@ import { expect, test } from "@playwright/test";
33test . describe ( "Composable Cache" , ( ) => {
44 test ( "cached component should work in ssr" , async ( { page } ) => {
55 await page . goto ( "/use-cache/ssr" ) ;
6- let fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
6+ let fullyCachedElt = page . getByTestId ( "fully-cached " ) ;
77 let isrElt = page . getByTestId ( "isr" ) ;
88 await expect ( fullyCachedElt ) . toBeVisible ( ) ;
99 await expect ( isrElt ) . toBeVisible ( ) ;
@@ -12,9 +12,10 @@ test.describe("Composable Cache", () => {
1212 const initialIsrText = await isrElt . textContent ( ) ;
1313
1414 let isrText = initialIsrText ;
15+
1516 do {
1617 await page . reload ( ) ;
17- fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
18+ fullyCachedElt = page . getByTestId ( "fully-cached " ) ;
1819 isrElt = page . getByTestId ( "isr" ) ;
1920 await expect ( fullyCachedElt ) . toBeVisible ( ) ;
2021 await expect ( isrElt ) . toBeVisible ( ) ;
@@ -27,7 +28,7 @@ test.describe("Composable Cache", () => {
2728
2829 test ( "revalidateTag should work for fullyCached component" , async ( { page, request } ) => {
2930 await page . goto ( "/use-cache/ssr" ) ;
30- const fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
31+ const fullyCachedElt = page . getByTestId ( "fully-cached-with-tag " ) ;
3132 await expect ( fullyCachedElt ) . toBeVisible ( ) ;
3233
3334 const initialFullyCachedText = await fullyCachedElt . textContent ( ) ;
@@ -45,7 +46,7 @@ test.describe("Composable Cache", () => {
4546 test ( "cached component should work in isr" , async ( { page } ) => {
4647 await page . goto ( "/use-cache/isr" ) ;
4748
48- let fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
49+ let fullyCachedElt = page . getByTestId ( "fully-cached " ) ;
4950 let isrElt = page . getByTestId ( "isr" ) ;
5051
5152 await expect ( fullyCachedElt ) . toBeVisible ( ) ;
@@ -61,7 +62,7 @@ test.describe("Composable Cache", () => {
6162 while ( isrText === initialIsrText ) {
6263 await page . reload ( ) ;
6364 isrElt = page . getByTestId ( "isr" ) ;
64- fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
65+ fullyCachedElt = page . getByTestId ( "fully-cached " ) ;
6566 await expect ( isrElt ) . toBeVisible ( ) ;
6667 isrText = await isrElt . textContent ( ) ;
6768 await expect ( fullyCachedElt ) . toBeVisible ( ) ;
@@ -72,7 +73,7 @@ test.describe("Composable Cache", () => {
7273
7374 do {
7475 await page . reload ( ) ;
75- fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
76+ fullyCachedElt = page . getByTestId ( "fully-cached " ) ;
7677 isrElt = page . getByTestId ( "isr" ) ;
7778 await expect ( fullyCachedElt ) . toBeVisible ( ) ;
7879 await expect ( isrElt ) . toBeVisible ( ) ;
0 commit comments