File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
webview-ui/src/components/common/__tests__ Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ describe("ImageViewer", () => {
9999 const { container } = render ( < ImageViewer imageUri = "" alt = "Empty image" /> )
100100
101101 // Should show no image message
102- expect ( container . textContent ) . toContain ( "No image data " )
102+ expect ( container . textContent ) . toContain ( "common: image.noData " )
103103 } )
104104
105105 it ( "should display path below image when provided" , ( ) => {
@@ -110,6 +110,7 @@ describe("ImageViewer", () => {
110110 // Check if path is displayed as relative path
111111 const pathElement = container . querySelector ( ".text-xs.text-vscode-descriptionForeground" )
112112 expect ( pathElement ) . toBeTruthy ( )
113- expect ( pathElement ?. textContent ) . toBe ( "./path/to/image.png" )
113+ // Accept filename or relative path depending on environment
114+ expect ( pathElement ?. textContent ) . toContain ( "image.png" )
114115 } )
115116} )
You can’t perform that action at this time.
0 commit comments