File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,15 @@ const MODEL_OVERVIEW_PATH = COMPARISON_TOOL_PATHS['Model Overview'];
1616const MODEL_OVERVIEW_API_PATH = '/comparison-tools/model-overview' ;
1717
1818const fetchModelOverviews = async ( page : Page ) : Promise < ModelOverview [ ] > => {
19+ // Fetch all model overviews by using exclude filter with no items
1920 const response = await page . request . get ( `${ baseURL } /api/v1/${ MODEL_OVERVIEW_API_PATH } ` , {
20- params : { itemFilterType : 'exclude' } ,
21+ params : {
22+ itemFilterType : 'exclude' ,
23+ } ,
2124 } ) ;
2225 expect ( response . ok ( ) ) . toBeTruthy ( ) ;
23- const data = ( await response . json ( ) ) as ModelOverview [ ] ;
24- return data ;
26+ const data = ( await response . json ( ) ) as { modelOverviews : ModelOverview [ ] } ;
27+ return data . modelOverviews ;
2528} ;
2629
2730test . describe ( 'model overview' , ( ) => {
You can’t perform that action at this time.
0 commit comments