File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ describe('NavigationMenu', () => {
76
76
} ) )
77
77
render ( < NavigationMenu /> )
78
78
79
- expect ( screen . queryByTestId ( 'browser-page-btn" ' ) ) . not . toBeInTheDocument ( )
79
+ expect ( screen . queryByTestId ( 'browser-page-btn' ) ) . not . toBeInTheDocument ( )
80
80
} )
81
81
82
82
it ( 'should render help menu' , ( ) => {
@@ -137,7 +137,7 @@ describe('NavigationMenu', () => {
137
137
expect ( render ( < NavigationMenu /> ) ) . toBeTruthy ( )
138
138
} )
139
139
140
- it ( 'should render private routes with instanceId' , ( ) => {
140
+ it ( 'should not render private routes with instanceId' , ( ) => {
141
141
; ( appInfoSelector as jest . Mock ) . mockImplementation ( ( ) => ( {
142
142
...mockAppInfoSelector ,
143
143
server : {
@@ -146,8 +146,8 @@ describe('NavigationMenu', () => {
146
146
} ) )
147
147
render ( < NavigationMenu /> )
148
148
149
- expect ( screen . getByTestId ( 'browser-page-btn' ) ) . toBeTruthy ( )
150
- expect ( screen . getByTestId ( 'workbench-page-btn' ) ) . toBeTruthy ( )
149
+ expect ( screen . queryByTestId ( 'browser-page-btn' ) ) . not . toBeInTheDocument ( )
150
+ expect ( screen . queryByTestId ( 'workbench-page-btn' ) ) . not . toBeInTheDocument ( )
151
151
} )
152
152
153
153
it ( 'should render public routes' , ( ) => {
Original file line number Diff line number Diff line change @@ -29,13 +29,11 @@ import styles from './styles.module.scss'
29
29
30
30
const NavigationMenu = ( ) => {
31
31
const {
32
- privateRoutes,
33
32
privateRdiRoutes,
34
33
isRdiWorkspace,
35
34
publicRoutes,
36
35
getAdditionPropsForHighlighting,
37
36
highlightedPages,
38
- connectedInstanceId,
39
37
connectedRdiInstanceId,
40
38
} = useNavigation ( )
41
39
You can’t perform that action at this time.
0 commit comments