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 = (
27
27
if ( textBlocks . length === 0 ) {
28
28
return {
29
29
isCompatible : false ,
30
- message : "No text blocks found " ,
30
+ message : "No text blocks to match structured content " ,
31
31
} ;
32
32
}
33
33
@@ -46,7 +46,7 @@ const checkContentCompatibility = (
46
46
if ( isEqual ) {
47
47
return {
48
48
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" : "" } ` ,
50
50
} ;
51
51
}
52
52
} catch {
@@ -57,7 +57,7 @@ const checkContentCompatibility = (
57
57
58
58
return {
59
59
isCompatible : false ,
60
- message : "No matching JSON found " ,
60
+ message : "No text block matches structured content " ,
61
61
} ;
62
62
} ;
63
63
Original file line number Diff line number Diff line change @@ -354,7 +354,9 @@ describe("ToolsTab", () => {
354
354
} ) ;
355
355
356
356
// 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 ( ) ;
358
360
} ) ;
359
361
360
362
it ( "should accept multiple content blocks with structured output" , ( ) => {
@@ -374,7 +376,9 @@ describe("ToolsTab", () => {
374
376
} ) ;
375
377
376
378
// 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 ( ) ;
378
382
} ) ;
379
383
380
384
it ( "should accept mixed content types with structured output" , ( ) => {
@@ -445,7 +449,9 @@ describe("ToolsTab", () => {
445
449
446
450
// Should not show any compatibility messages
447
451
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
+ ) ,
449
455
) . not . toBeInTheDocument ( ) ;
450
456
} ) ;
451
457
} ) ;
You can’t perform that action at this time.
0 commit comments