Test fix management scripted field filter functional test and unskip it (#92756) (#92924)

* fixes https://github.com/elastic/kibana/issues/74449

* unskipping the functional test, removing the unload and adding an empty kibana in the after method
This commit is contained in:
Rashmi Kulkarni 2021-02-25 16:21:09 -08:00 committed by GitHub
parent 883d5c90aa
commit 357cbe0a2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,9 +16,7 @@ export default function ({ getService, getPageObjects }) {
const esArchiver = getService('esArchiver');
const PageObjects = getPageObjects(['settings']);
// this functionality is no longer functional as of 7.0 but still needs cleanup
// https://github.com/elastic/kibana/issues/74118
describe.skip('filter scripted fields', function describeIndexTests() {
describe('filter scripted fields', function describeIndexTests() {
before(async function () {
// delete .kibana index and then wait for Kibana to re-create it
await browser.setWindowSize(1200, 800);
@ -29,8 +27,7 @@ export default function ({ getService, getPageObjects }) {
});
after(async function () {
await esArchiver.unload('management');
await kibanaServer.uiSettings.replace({});
await esArchiver.load('empty_kibana');
});
const scriptedPainlessFieldName = 'ram_pain1';