Skip to content

Commit

Permalink
Improves cypress test intercept to be more specific for bias requests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcreasy committed May 10, 2024
1 parent b3fb4c1 commit 8ffabe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const initIntercepts = ({
});
cy.interceptOdh(
'GET /api/service/trustyai/:namespace/trustyai-service/metrics/all/requests',
{ path: { namespace: 'test-project' } },
{ path: { namespace: 'test-project' }, query: { type: 'fairness' } },
mockMetricsRequest({ modelName: 'test-inference-service' }),
);
cy.interceptK8sList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ declare global {
type: 'GET /api/service/trustyai/:namespace/trustyai-service/metrics/all/requests',
options: {
path: { namespace: string };
query?: { type: string };
},
response: OdhResponse<BaseMetricListResponse>,
): Cypress.Chainable<null>;
Expand Down

0 comments on commit 8ffabe6

Please sign in to comment.