@@ -19,14 +19,24 @@ describe('navigation icon integration', () => {
1919 expect ( entryMarkup ) . toContain ( 'size="sm"' ) ;
2020 } ) ;
2121
22- it ( 'uses each MiniApp icon and the standard Skill icon in the overview' , ( ) => {
22+ it ( 'uses each MiniApp icon and the standard Skill discovery icon in the overview' , ( ) => {
2323 const source = readFileSync (
2424 fileURLToPath ( new URL ( '../../scenes/personal-overview/PersonalOverviewScene.tsx' , import . meta. url ) ) ,
2525 'utf8' ,
2626 ) ;
27- expect ( source ) . toContain ( "leading={renderMiniAppIcon(app.icon || 'box', 'lg')}" ) ;
28- expect ( source ) . toContain ( '<Icon name="book-open" size="lg" />' ) ;
27+ const miniAppLogosSource = readFileSync (
28+ fileURLToPath ( new URL ( '../../scenes/personal-overview/OverviewMiniAppLogos.tsx' , import . meta. url ) ) ,
29+ 'utf8' ,
30+ ) ;
31+ expect ( source ) . toContain ( '<OverviewMiniAppLogos apps={miniAppItems}' ) ;
32+ expect ( miniAppLogosSource ) . toContain ( "icon={renderMiniAppIcon(app.icon || 'box', 'lg')}" ) ;
33+ const discoveryEnd = source . indexOf ( 'data-testid="personal-overview-discover-skills"' ) ;
34+ const discoveryStart = source . lastIndexOf ( '<OverviewSplitCardAction' , discoveryEnd ) ;
35+ expect ( discoveryStart ) . toBeGreaterThanOrEqual ( 0 ) ;
36+ expect ( discoveryEnd ) . toBeGreaterThan ( discoveryStart ) ;
37+ expect ( source . slice ( discoveryStart , discoveryEnd ) ) . toContain ( '<Icon name="search" size="lg" />' ) ;
2938 expect ( source ) . not . toContain ( 'strokeWidth' ) ;
39+ expect ( miniAppLogosSource ) . not . toContain ( 'strokeWidth' ) ;
3040 } ) ;
3141
3242 it ( 'uses the reference clock icon for Task Board' , ( ) => {
0 commit comments