@@ -52,7 +52,7 @@ describe('SatelliteViewPlugin_class', () => {
52
52
keepTrackApi . runEvent ( KeepTrackApiEvents . uiManagerInit ) ;
53
53
keepTrackApi . runEvent ( KeepTrackApiEvents . uiManagerFinal ) ;
54
54
expect ( registerSpy ) . toHaveBeenCalled ( ) ;
55
- expect ( getEl ( 'bottom-icons' ) . innerHTML ) . toContain ( 'menu-satview ' ) ;
55
+ expect ( getEl ( 'bottom-icons' ) . innerHTML ) . toContain ( 'satellite-view-bottom-icon ' ) ;
56
56
} ) ;
57
57
58
58
// Tests that a toast message is displayed when no satellite is selected and trying to activate Satellite Camera Mode
@@ -65,8 +65,8 @@ describe('SatelliteViewPlugin_class', () => {
65
65
keepTrackApi . runEvent ( KeepTrackApiEvents . uiManagerInit ) ;
66
66
keepTrackApi . runEvent ( KeepTrackApiEvents . uiManagerFinal ) ;
67
67
keepTrackContainer . registerSingleton < Camera > ( Singletons . MainCamera , mockCameraManager ) ;
68
- keepTrackApi . runEvent ( KeepTrackApiEvents . bottomMenuClick , 'menu-satview' ) ;
69
- expect ( uiManagerInstance . toast ) . toHaveBeenCalledWith ( i18next . t ( 'plugins .SelectSatelliteFirst' ) , ToastMsgType . serious , true ) ;
68
+ keepTrackApi . runEvent ( KeepTrackApiEvents . bottomMenuClick , plugin . bottomIconElementName ) ;
69
+ expect ( uiManagerInstance . toast ) . toHaveBeenCalledWith ( i18next . t ( 'errorMsgs .SelectSatelliteFirst' ) , ToastMsgType . serious , true ) ;
70
70
} ) ;
71
71
72
72
// Tests that a toast message is not displayed when a satellite is selected and trying to activate Satellite Camera Mode
@@ -79,7 +79,7 @@ describe('SatelliteViewPlugin_class', () => {
79
79
keepTrackApi . runEvent ( KeepTrackApiEvents . uiManagerInit ) ;
80
80
keepTrackApi . runEvent ( KeepTrackApiEvents . uiManagerFinal ) ;
81
81
keepTrackContainer . registerSingleton < Camera > ( Singletons . MainCamera , mockCameraManager ) ;
82
- keepTrackApi . runEvent ( KeepTrackApiEvents . bottomMenuClick , 'menu-satview' ) ;
82
+ keepTrackApi . runEvent ( KeepTrackApiEvents . bottomMenuClick , plugin . bottomIconElementName ) ;
83
83
expect ( uiManagerInstance . toast ) . not . toHaveBeenCalled ( ) ;
84
84
} ) ;
85
85
@@ -95,7 +95,7 @@ describe('SatelliteViewPlugin_class', () => {
95
95
const tempMockCamera = { ...mockCameraManager , cameraType : CameraType . SATELLITE } as Camera ;
96
96
97
97
keepTrackContainer . registerSingleton < Camera > ( Singletons . MainCamera , tempMockCamera ) ;
98
- keepTrackApi . runEvent ( KeepTrackApiEvents . bottomMenuClick , 'menu-satview' ) ;
98
+ keepTrackApi . runEvent ( KeepTrackApiEvents . bottomMenuClick , plugin . bottomIconElementName ) ;
99
99
expect ( uiManagerInstance . toast ) . not . toHaveBeenCalled ( ) ;
100
100
} ) ;
101
101
} ) ;
0 commit comments