@@ -4,7 +4,7 @@ import { useIsVeeamVBROnly } from './ISV/hooks/useIsVeeamVBROnly';
4
4
import InternalRoutes , { PrivateRoutes } from './Routes' ;
5
5
import { renderWithRouterMatch } from './utils/testUtil' ;
6
6
7
- // Mock the hooks
7
+ // Mock useIsVeeamVBROnly as it comes from ShellHooks
8
8
jest . mock ( './ISV/hooks/useIsVeeamVBROnly' ) ;
9
9
jest . mock ( 'react-redux' , ( ) => ( {
10
10
...jest . requireActual ( 'react-redux' ) ,
@@ -92,7 +92,7 @@ describe('Routes component', () => {
92
92
} ) ;
93
93
} ) ;
94
94
95
- it ( 'should render the create-dataservice route when isArtescaPlusVeeamEnabled is false ' , async ( ) => {
95
+ it ( 'should render the Create Data Service page in standard configuration ' , async ( ) => {
96
96
// Mock the hook to return false
97
97
mockUseIsVeeamVBROnly . mockReturnValue ( false ) ;
98
98
@@ -107,7 +107,7 @@ describe('Routes component', () => {
107
107
} ) ;
108
108
} ) ;
109
109
110
- it ( 'should not render the create-dataservice route when isArtescaPlusVeeamEnabled is true ' , async ( ) => {
110
+ it ( 'should not render the Create Data Service page in ARTESCA+VEEAM configuration ' , async ( ) => {
111
111
// Mock the hook to return true
112
112
mockUseIsVeeamVBROnly . mockReturnValue ( true ) ;
113
113
@@ -124,7 +124,7 @@ describe('Routes component', () => {
124
124
} ) ;
125
125
} ) ;
126
126
127
- it ( 'should render the dataservices route when isArtescaPlusVeeamEnabled is false ' , async ( ) => {
127
+ it ( 'should render the Data Services page in standard configuration ' , async ( ) => {
128
128
// Mock the hook to return false
129
129
mockUseIsVeeamVBROnly . mockReturnValue ( false ) ;
130
130
@@ -139,7 +139,7 @@ describe('Routes component', () => {
139
139
} ) ;
140
140
} ) ;
141
141
142
- it ( 'should not render the dataservices route when isArtescaPlusVeeamEnabled is true ' , async ( ) => {
142
+ it ( 'should not render the Data Services page in ARTESCA+VEEAM configuration ' , async ( ) => {
143
143
// Mock the hook to return true
144
144
mockUseIsVeeamVBROnly . mockReturnValue ( true ) ;
145
145
@@ -153,7 +153,7 @@ describe('Routes component', () => {
153
153
expect ( selectors . loadingDataServices ( ) ) . not . toBeInTheDocument ( ) ;
154
154
} ) ;
155
155
} ) ;
156
- it ( 'should redirect incorrect routes to /accounts ' , async ( ) => {
156
+ it ( 'should redirect incorrect routes to Accounts page ' , async ( ) => {
157
157
renderWithRouterMatch ( < PrivateRoutes /> , {
158
158
path : '/*' ,
159
159
route : '/incorrect-route' ,
@@ -165,7 +165,7 @@ describe('Routes component', () => {
165
165
} ) ;
166
166
167
167
describe ( 'sidebar entries' , ( ) => {
168
- it ( 'should hide dataservices from sidebar when isArtescaPlusVeeamEnabled is true ' , async ( ) => {
168
+ it ( 'should hide Data Services from sidebar in ARTESCA+VEEAM configuration ' , async ( ) => {
169
169
// Mock the hook to return true
170
170
mockUseIsVeeamVBROnly . mockReturnValue ( true ) ;
171
171
@@ -181,7 +181,7 @@ describe('Routes component', () => {
181
181
} ) ;
182
182
} ) ;
183
183
184
- it ( 'should show dataservices in sidebar when isArtescaPlusVeeamEnabled is false ' , async ( ) => {
184
+ it ( 'should show Data Services in sidebar in standard configuration ' , async ( ) => {
185
185
// Mock the hook to return false
186
186
mockUseIsVeeamVBROnly . mockReturnValue ( false ) ;
187
187
0 commit comments