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) (#130848)

* [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 <[email protected]>
(cherry picked from commit 706d926)

Co-authored-by: Diana Derevyankina <[email protected]>
  • Loading branch information
kibanamachine and DianaDerevyankina authored Apr 22, 2022
1 parent b1dde38 commit 2e64711
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 2e64711

Please sign in to comment.