@@ -3,7 +3,7 @@ import { expect, test } from "@playwright/test";
3
3
test . describe ( "Composable Cache" , ( ) => {
4
4
test ( "cached component should work in ssr" , async ( { page } ) => {
5
5
await page . goto ( "/use-cache/ssr" ) ;
6
- let fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
6
+ let fullyCachedElt = page . getByTestId ( "fully-cached " ) ;
7
7
let isrElt = page . getByTestId ( "isr" ) ;
8
8
await expect ( fullyCachedElt ) . toBeVisible ( ) ;
9
9
await expect ( isrElt ) . toBeVisible ( ) ;
@@ -15,7 +15,7 @@ test.describe("Composable Cache", () => {
15
15
16
16
do {
17
17
await page . reload ( ) ;
18
- fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
18
+ fullyCachedElt = page . getByTestId ( "fully-cached " ) ;
19
19
isrElt = page . getByTestId ( "isr" ) ;
20
20
await expect ( fullyCachedElt ) . toBeVisible ( ) ;
21
21
await expect ( isrElt ) . toBeVisible ( ) ;
@@ -31,7 +31,7 @@ test.describe("Composable Cache", () => {
31
31
request,
32
32
} ) => {
33
33
await page . goto ( "/use-cache/ssr" ) ;
34
- const fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
34
+ const fullyCachedElt = page . getByTestId ( "fully-cached-with-tag " ) ;
35
35
await expect ( fullyCachedElt ) . toBeVisible ( ) ;
36
36
37
37
const initialFullyCachedText = await fullyCachedElt . textContent ( ) ;
@@ -49,7 +49,7 @@ test.describe("Composable Cache", () => {
49
49
test ( "cached component should work in isr" , async ( { page } ) => {
50
50
await page . goto ( "/use-cache/isr" ) ;
51
51
52
- let fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
52
+ let fullyCachedElt = page . getByTestId ( "fully-cached " ) ;
53
53
let isrElt = page . getByTestId ( "isr" ) ;
54
54
55
55
await expect ( fullyCachedElt ) . toBeVisible ( ) ;
@@ -65,7 +65,7 @@ test.describe("Composable Cache", () => {
65
65
while ( isrText === initialIsrText ) {
66
66
await page . reload ( ) ;
67
67
isrElt = page . getByTestId ( "isr" ) ;
68
- fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
68
+ fullyCachedElt = page . getByTestId ( "fully-cached " ) ;
69
69
await expect ( isrElt ) . toBeVisible ( ) ;
70
70
isrText = await isrElt . textContent ( ) ;
71
71
await expect ( fullyCachedElt ) . toBeVisible ( ) ;
@@ -76,7 +76,7 @@ test.describe("Composable Cache", () => {
76
76
77
77
do {
78
78
await page . reload ( ) ;
79
- fullyCachedElt = page . getByTestId ( "fullyCached " ) ;
79
+ fullyCachedElt = page . getByTestId ( "fully-cached " ) ;
80
80
isrElt = page . getByTestId ( "isr" ) ;
81
81
await expect ( fullyCachedElt ) . toBeVisible ( ) ;
82
82
await expect ( isrElt ) . toBeVisible ( ) ;
0 commit comments