File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const checkContentCompatibility = (
2727 if ( textBlocks . length === 0 ) {
2828 return {
2929 isCompatible : false ,
30- message : "No text blocks found " ,
30+ message : "No text blocks to match structured content " ,
3131 } ;
3232 }
3333
@@ -46,7 +46,7 @@ const checkContentCompatibility = (
4646 if ( isEqual ) {
4747 return {
4848 isCompatible : true ,
49- message : `Matching JSON found ${ textBlocks . length > 1 ? " (multiple blocks)" : "" } ${ unstructuredContent . length > textBlocks . length ? " + other content" : "" } ` ,
49+ message : `Structured content matches text block ${ textBlocks . length > 1 ? " (multiple blocks)" : "" } ${ unstructuredContent . length > textBlocks . length ? " + other content" : "" } ` ,
5050 } ;
5151 }
5252 } catch {
@@ -57,7 +57,7 @@ const checkContentCompatibility = (
5757
5858 return {
5959 isCompatible : false ,
60- message : "No matching JSON found " ,
60+ message : "No text block matches structured content " ,
6161 } ;
6262} ;
6363
Original file line number Diff line number Diff line change @@ -354,7 +354,9 @@ describe("ToolsTab", () => {
354354 } ) ;
355355
356356 // Should show compatibility result
357- expect ( screen . getByText ( / m a t c h i n g j s o n / i) ) . toBeInTheDocument ( ) ;
357+ expect (
358+ screen . getByText ( / s t r u c t u r e d c o n t e n t m a t c h e s / i) ,
359+ ) . toBeInTheDocument ( ) ;
358360 } ) ;
359361
360362 it ( "should accept multiple content blocks with structured output" , ( ) => {
@@ -374,7 +376,9 @@ describe("ToolsTab", () => {
374376 } ) ;
375377
376378 // Should show compatible result with multiple blocks
377- expect ( screen . getByText ( / m a t c h i n g j s o n .* m u l t i p l e / i) ) . toBeInTheDocument ( ) ;
379+ expect (
380+ screen . getByText ( / s t r u c t u r e d c o n t e n t m a t c h e s .* m u l t i p l e / i) ,
381+ ) . toBeInTheDocument ( ) ;
378382 } ) ;
379383
380384 it ( "should accept mixed content types with structured output" , ( ) => {
@@ -445,7 +449,9 @@ describe("ToolsTab", () => {
445449
446450 // Should not show any compatibility messages
447451 expect (
448- screen . queryByText ( / m a t c h i n g j s o n | n o t e x t b l o c k s | n o m a t c h i n g / i) ,
452+ screen . queryByText (
453+ / s t r u c t u r e d c o n t e n t m a t c h e s | n o t e x t b l o c k s | n o .* m a t c h e s / i,
454+ ) ,
449455 ) . not . toBeInTheDocument ( ) ;
450456 } ) ;
451457 } ) ;
You can’t perform that action at this time.
0 commit comments