@@ -25,7 +25,7 @@ test("retirement notices stay off plugin pages and remain available in the manag
2525 await waitForHydration ( page ) ;
2626 const notice = page . getByRole ( "region" , { name : "OpenClaw API updates" } ) ;
2727 await expect ( page . getByRole ( "heading" , { name : "Local API Retirement Example" } ) ) . toBeVisible ( ) ;
28- await expect ( page . getByRole ( "heading " , { name : "Install" , exact : true } ) ) . toBeVisible ( ) ;
28+ await expect ( page . getByRole ( "button " , { name : "Install" , exact : true } ) ) . toBeVisible ( ) ;
2929 await expect ( notice ) . toHaveCount ( 0 ) ;
3030 await expect ( page . getByText ( "API details" , { exact : true } ) ) . toHaveCount ( 0 ) ;
3131 await expect ( page . getByText ( / T h i s p l u g i n i s i n c o m p a t i b l e / ) ) . toHaveCount ( 0 ) ;
@@ -34,7 +34,7 @@ test("retirement notices stay off plugin pages and remain available in the manag
3434 await page . screenshot ( { path : testInfo . outputPath ( "after-desktop.png" ) , fullPage : true } ) ;
3535 await page . setViewportSize ( { width : 390 , height : 844 } ) ;
3636 await expect ( notice ) . toHaveCount ( 0 ) ;
37- await expect ( page . getByRole ( "heading " , { name : "Install" , exact : true } ) ) . toBeVisible ( ) ;
37+ await expect ( page . getByRole ( "button " , { name : "Install" , exact : true } ) ) . toBeVisible ( ) ;
3838 expect (
3939 await page . evaluate ( ( ) => document . documentElement . scrollWidth <= window . innerWidth ) ,
4040 ) . toBe ( true ) ;
@@ -50,10 +50,10 @@ test("retirement notices stay off plugin pages and remain available in the manag
5050 await waitForHydration ( page ) ;
5151 await expect ( page . getByRole ( "heading" , { name : "Local Current API Example" } ) ) . toBeVisible ( ) ;
5252 await expect ( notice ) . toHaveCount ( 0 ) ;
53- await expect ( page . getByRole ( "heading " , { name : "Install" , exact : true } ) ) . toBeVisible ( ) ;
53+ await expect ( page . getByRole ( "button " , { name : "Install" , exact : true } ) ) . toBeVisible ( ) ;
5454
5555 await page . goto ( "/plugins/local-api-retirement-incompatible" , { waitUntil : "domcontentloaded" } ) ;
56- await expect ( page . getByRole ( "heading " , { name : "Install" , exact : true } ) ) . toBeVisible ( ) ;
56+ await expect ( page . getByRole ( "button " , { name : "Install" , exact : true } ) ) . toBeVisible ( ) ;
5757 await expect ( notice ) . toHaveCount ( 0 ) ;
5858 await expect (
5959 page . getByText ( "This plugin is incompatible with OpenClaw versions greater than 2026.10.1." ) ,
@@ -62,7 +62,7 @@ test("retirement notices stay off plugin pages and remain available in the manag
6262 await signInAsLocalPersona ( page , "owner" ) ;
6363 await page . goto ( "/plugins/local-api-retirement-plugin" , { waitUntil : "domcontentloaded" } ) ;
6464 await waitForHydration ( page ) ;
65- await expect ( page . getByRole ( "heading " , { name : "Install" , exact : true } ) ) . toBeVisible ( ) ;
65+ await expect ( page . getByRole ( "button " , { name : "Install" , exact : true } ) ) . toBeVisible ( ) ;
6666 await expect ( notice ) . toHaveCount ( 0 ) ;
6767 await page . goto ( "/dashboard" ) ;
6868 await waitForHydration ( page ) ;
0 commit comments