Skip to content

Commit 08a411d

Browse files
committed
fix broken e2e tests
1 parent 62bbc0d commit 08a411d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

apps/model-ad/app/e2e/model-overview-comparison-tool.spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ const MODEL_OVERVIEW_PATH = COMPARISON_TOOL_PATHS['Model Overview'];
1616
const MODEL_OVERVIEW_API_PATH = '/comparison-tools/model-overview';
1717

1818
const 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

2730
test.describe('model overview', () => {

0 commit comments

Comments
 (0)