Skip to content

Commit

Permalink
Fixing test for time being
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Aug 25, 2022
1 parent 0a0d0e0 commit 22cd14e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,11 @@ export default ({ getService }: FtrProviderContext): void => {

it('returns the correct fields', async () => {
const postedCase = await createCase(supertest, postCaseReq);
// all fields that contain the UserRT definition must be included here (aka created_by, closed_by, and updated_by)
// see https://github.com/elastic/kibana/issues/139503
const queryFields: Array<keyof CaseResponse | Array<keyof CaseResponse>> = [
'title',
['title', 'description'],
['title', 'created_by', 'closed_by', 'updated_by'],
['title', 'description', 'created_by', 'closed_by', 'updated_by'],
];

for (const fields of queryFields) {
Expand Down

0 comments on commit 22cd14e

Please sign in to comment.