@@ -25,7 +25,11 @@ it('renders menu options names', () => {
2525 const history = createMemoryHistory ( )
2626 render (
2727 < Router history = { history } >
28- < NavBar />
28+ < NavBar open = { true }
29+ maxSession = { 10 }
30+ sessionCount = { 0 }
31+ nodeCount = { 1 }
32+ sessionQueueSize = { 0 } />
2933 </ Router >
3034 )
3135 expect ( screen . getByText ( 'Sessions' ) ) . toBeInTheDocument ( )
@@ -39,7 +43,11 @@ it('overall concurrency is not rendered on root path with a single node',
3943 history . push ( '/' )
4044 render (
4145 < Router history = { history } >
42- < NavBar open maxSession = { 0 } sessionCount = { 0 } nodeCount = { 1 } />
46+ < NavBar open = { true }
47+ maxSession = { 0 }
48+ sessionCount = { 0 }
49+ nodeCount = { 1 }
50+ sessionQueueSize = { 0 } />
4351 </ Router >
4452 )
4553 expect ( screen . queryByTestId ( 'overall-concurrency' ) ) . not . toBeInTheDocument ( )
@@ -51,7 +59,11 @@ it('overall concurrency is rendered on root path with more than one node',
5159 history . push ( '/' )
5260 render (
5361 < Router history = { history } >
54- < NavBar open maxSession = { 0 } sessionCount = { 0 } nodeCount = { 2 } />
62+ < NavBar open = { true }
63+ maxSession = { 0 }
64+ sessionCount = { 0 }
65+ nodeCount = { 2 }
66+ sessionQueueSize = { 0 } />
5567 </ Router >
5668 )
5769 expect ( screen . getByTestId ( 'overall-concurrency' ) ) . toBeInTheDocument ( )
@@ -63,7 +75,11 @@ it('overall concurrency is rendered on root path with more than one node',
6375 history . push ( '/' )
6476 render (
6577 < Router history = { history } >
66- < NavBar open maxSession = { 0 } sessionCount = { 0 } nodeCount = { 2 } />
78+ < NavBar open = { true }
79+ maxSession = { 0 }
80+ sessionCount = { 0 }
81+ nodeCount = { 2 }
82+ sessionQueueSize = { 0 } />
6783 </ Router >
6884 )
6985 expect ( screen . getByTestId ( 'overall-concurrency' ) ) . toBeInTheDocument ( )
@@ -75,7 +91,11 @@ it('overall concurrency is rendered on a path different than and one node',
7591 history . push ( '/sessions' )
7692 render (
7793 < Router history = { history } >
78- < NavBar open maxSession = { 0 } sessionCount = { 0 } nodeCount = { 1 } />
94+ < NavBar open = { true }
95+ maxSession = { 0 }
96+ sessionCount = { 0 }
97+ nodeCount = { 1 }
98+ sessionQueueSize = { 0 } />
7999 </ Router >
80100 )
81101 expect ( screen . getByTestId ( 'overall-concurrency' ) ) . toBeInTheDocument ( )
0 commit comments