Skip to content

Commit

Permalink
Use uiFilters in API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Mar 4, 2021
1 parent a9db802 commit 196ad8e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,12 @@ export default function ApiTest({ getService }: FtrProviderContext) {
}

const [unfilteredResponse, filteredResponse] = await Promise.all([
supertest.get(`/api/apm/services?start=${start}&end=${end}`) as Promise<Response>,
supertest.get(
`/api/apm/services?start=${start}&end=${end}&kuery=${encodeURIComponent(
'not (processor.event:transaction)'
`/api/apm/services?start=${start}&end=${end}&uiFilters={}`
) as Promise<Response>,
supertest.get(
`/api/apm/services?start=${start}&end=${end}&uiFilters=${encodeURIComponent(
'{ "kuery": "not (processor.event:transaction)" }'
)}`
) as Promise<Response>,
]);
Expand Down

0 comments on commit 196ad8e

Please sign in to comment.