@@ -73,11 +73,11 @@ test("Revalidate tag", async ({ page, request }) => {
73
73
test ( "Revalidate path" , async ( { page, request } ) => {
74
74
await page . goto ( "/revalidate-path" ) ;
75
75
76
- let elLayout = page . getByText ( "Paris :" ) ;
77
- const initialParis = await elLayout . textContent ( ) ;
76
+ let elLayout = page . getByText ( "RequestID :" ) ;
77
+ const initialReqId = await elLayout . textContent ( ) ;
78
78
79
- elLayout = page . getByText ( "London :" ) ;
80
- const initialLondon = await elLayout . textContent ( ) ;
79
+ elLayout = page . getByText ( "Date :" ) ;
80
+ const initialDate = await elLayout . textContent ( ) ;
81
81
82
82
// Send revalidate path request
83
83
const result = await request . get ( "/api/revalidate-path" ) ;
@@ -86,11 +86,11 @@ test("Revalidate path", async ({ page, request }) => {
86
86
expect ( text ) . toEqual ( "ok" ) ;
87
87
88
88
await page . goto ( "/revalidate-path" ) ;
89
- elLayout = page . getByText ( "Paris :" ) ;
90
- const newParis = await elLayout . textContent ( ) ;
91
- expect ( newParis ) . not . toEqual ( initialParis ) ;
89
+ elLayout = page . getByText ( "RequestID :" ) ;
90
+ const newReqId = await elLayout . textContent ( ) ;
91
+ expect ( newReqId ) . not . toEqual ( initialReqId ) ;
92
92
93
- elLayout = page . getByText ( "London :" ) ;
94
- const newLondon = await elLayout . textContent ( ) ;
95
- expect ( newLondon ) . not . toEqual ( initialLondon ) ;
93
+ elLayout = page . getByText ( "Date :" ) ;
94
+ const newDate = await elLayout . textContent ( ) ;
95
+ expect ( newDate ) . not . toEqual ( initialDate ) ;
96
96
} ) ;
0 commit comments