From 0997730422558392460582238acc0b057b223186 Mon Sep 17 00:00:00 2001 From: Julian Gernun Date: Fri, 9 Sep 2022 14:55:21 +0200 Subject: [PATCH] fix tests --- .../tests/basic/get_browser_fields_by_feature_id.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x-pack/test/rule_registry/security_and_spaces/tests/basic/get_browser_fields_by_feature_id.ts b/x-pack/test/rule_registry/security_and_spaces/tests/basic/get_browser_fields_by_feature_id.ts index 83cfc1ad26d25..68ce780d432a6 100644 --- a/x-pack/test/rule_registry/security_and_spaces/tests/basic/get_browser_fields_by_feature_id.ts +++ b/x-pack/test/rule_registry/security_and_spaces/tests/basic/get_browser_fields_by_feature_id.ts @@ -24,7 +24,8 @@ export default ({ getService }: FtrProviderContext) => { expectedStatusCode: number = 200 ) => { const resp = await supertestWithoutAuth - .get(`${TEST_URL}?featureIds=${featureIds.toString()}`) + .get(`${TEST_URL}`) + .query({ featureIds }) .auth(user.username, user.password) .set('kbn-xsrf', 'true') .expect(expectedStatusCode); @@ -54,7 +55,7 @@ export default ({ getService }: FtrProviderContext) => { 'logs', 'uptime', ]); - expect(Object.keys(browserFields)).to.eql(['base', 'kibana', 'message']); + expect(Object.keys(browserFields)).to.eql(['base']); }); it(`${secOnlyRead.username} should not have access to o11y featureIds`, async () => {