From d4289eb9076982aac64da77bd24482bbd146a07a Mon Sep 17 00:00:00 2001 From: Diana Derevyankina <54894989+DziyanaDzeraviankina@users.noreply.github.com> Date: Fri, 22 Apr 2022 14:08:35 +0300 Subject: [PATCH] =?UTF-8?q?[test-failed]:=20Chrome=20UI=20Functional=20Tes?= =?UTF-8?q?ts1.test/functional/apps/discover/=5Ffilter=5Feditor=C2=B7ts=20?= =?UTF-8?q?-=20discover=20app=20discover=20filter=20editor=20filter=20edit?= =?UTF-8?q?or=20version=20fields=20should=20support=20range=20filter=20on?= =?UTF-8?q?=20version=20fields=20(#129847)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [test-failed]: Chrome UI Functional Tests1.test/functional/apps/discover/_filter_editorĀ·ts - discover app discover filter editor filter editor version fields should support range filter on version fields * Set "version_test" permissions to kibana_admin role * Add after block to reset permission * Add "test_logstash_reader" role Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 706d9268ef2c538011f48934d9361548c6e2c031) --- test/functional/apps/discover/_filter_editor.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/functional/apps/discover/_filter_editor.ts b/test/functional/apps/discover/_filter_editor.ts index 0fb8837598904..b2fbfbb71c7ee 100644 --- a/test/functional/apps/discover/_filter_editor.ts +++ b/test/functional/apps/discover/_filter_editor.ts @@ -16,6 +16,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const esArchiver = getService('esArchiver'); const kibanaServer = getService('kibanaServer'); const filterBar = getService('filterBar'); + const security = getService('security'); const PageObjects = getPageObjects(['common', 'discover', 'timePicker']); const defaultSettings = { defaultIndex: 'logstash-*', @@ -23,6 +24,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('discover filter editor', function describeIndexTests() { before(async function () { + await security.testUser.setRoles(['kibana_admin', 'version_test', 'test_logstash_reader']); log.debug('load kibana index with default index pattern'); await kibanaServer.savedObjects.clean({ types: ['search', 'index-pattern'] }); await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover.json'); @@ -111,5 +113,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); }); }); + + after(async () => { + await security.testUser.restoreDefaults(); + }); }); }