@@ -316,30 +316,6 @@ describe('elements/content-sidebar/SidebarNav', () => {
316316 } ;
317317 } ;
318318
319- test ( 'should render multiple custom tabs including Box AI' , ( ) => {
320- const customTab1 = createCustomTab ( 'customtab1' ) ;
321- const customTab2 = createCustomTab ( 'customtab2' ) ;
322- const boxAiPanel = createBoxAIPanel ( ) ;
323-
324- renderSidebarNav ( {
325- props : {
326- customSidebarPanels : [ boxAiPanel , customTab1 , customTab2 ] ,
327- } ,
328- } ) ;
329-
330- expect ( screen . getByTestId ( 'sidebarboxai' ) ) . toBeInTheDocument ( ) ;
331- expect ( screen . getByTestId ( 'sidebarcustomtab1' ) ) . toBeInTheDocument ( ) ;
332- expect ( screen . getByTestId ( 'sidebarcustomtab2' ) ) . toBeInTheDocument ( ) ;
333-
334- const navButtons = screen . getAllByRole ( 'tab' ) ;
335- expect ( navButtons ) . toHaveLength ( 3 ) ;
336-
337- // Verify Box AI is rendered first in the DOM order
338- expect ( navButtons [ 0 ] ) . toHaveAttribute ( 'data-testid' , 'sidebarboxai' ) ;
339- expect ( navButtons [ 1 ] ) . toHaveAttribute ( 'data-testid' , 'sidebarcustomtab1' ) ;
340- expect ( navButtons [ 2 ] ) . toHaveAttribute ( 'data-testid' , 'sidebarcustomtab2' ) ;
341- } ) ;
342-
343319 test ( 'should render Box AI first even when passed in different order' , ( ) => {
344320 const customTab1 = createCustomTab ( 'customtab1' ) ;
345321 const customTab2 = createCustomTab ( 'customtab2' ) ;
@@ -514,46 +490,6 @@ describe('elements/content-sidebar/SidebarNav', () => {
514490 expect ( screen . getByTestId ( 'mock-icon-component' ) ) . toBeInTheDocument ( ) ;
515491 } ) ;
516492
517- test ( 'should render custom Box AI tab with provided React element icon' , ( ) => {
518- const boxAiPanel = createBoxAIPanel ( { icon : mockIconElement } ) ;
519-
520- renderSidebarNav ( {
521- props : {
522- hasNativeBoxAISidebar : false ,
523- customSidebarPanels : [ boxAiPanel ] ,
524- } ,
525- } ) ;
526-
527- expect ( screen . getByTestId ( 'sidebarboxai' ) ) . toBeInTheDocument ( ) ;
528- expect ( screen . getByTestId ( 'mock-icon-element' ) ) . toBeInTheDocument ( ) ;
529- } ) ;
530-
531- test ( 'should render other custom tab with provided icon component' , ( ) => {
532- const customTab = createCustomTab ( 'analytics' , { icon : MockIconComponent } ) ;
533-
534- renderSidebarNav ( {
535- props : {
536- customSidebarPanels : [ customTab ] ,
537- } ,
538- } ) ;
539-
540- expect ( screen . getByTestId ( 'sidebaranalytics' ) ) . toBeInTheDocument ( ) ;
541- expect ( screen . getByTestId ( 'mock-icon-component' ) ) . toBeInTheDocument ( ) ;
542- } ) ;
543-
544- test ( 'should render other custom tab with provided React element icon' , ( ) => {
545- const customTab = createCustomTab ( 'reports' , { icon : mockIconElement } ) ;
546-
547- renderSidebarNav ( {
548- props : {
549- customSidebarPanels : [ customTab ] ,
550- } ,
551- } ) ;
552-
553- expect ( screen . getByTestId ( 'sidebarreports' ) ) . toBeInTheDocument ( ) ;
554- expect ( screen . getByTestId ( 'mock-icon-element' ) ) . toBeInTheDocument ( ) ;
555- } ) ;
556-
557493 test ( 'should render multiple custom tabs with mixed icon types' , ( ) => {
558494 const tabWithComponent = createCustomTab ( 'tab1' , { icon : MockIconComponent } ) ;
559495 const tabWithElement = createCustomTab ( 'tab2' , { icon : mockIconElement } ) ;
0 commit comments