Skip to content

Commit

Permalink
[test-failed]: Chrome UI Functional Tests1.test/functional/apps/disco…
Browse files Browse the repository at this point in the history
…ver/_filter_editor·ts - discover app discover filter editor filter editor version fields should support range filter on version fields (#129847)

* [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 706d926)
  • Loading branch information
DianaDerevyankina committed Apr 22, 2022
1 parent d0e760e commit e05b8d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/apps/discover/_filter_editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ 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-*',
};

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');
Expand Down Expand Up @@ -111,5 +113,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
});
});

after(async () => {
await security.testUser.restoreDefaults();
});
});
}

0 comments on commit e05b8d8

Please sign in to comment.