Skip to content

Commit

Permalink
set defaultIndex before each test. otherwise it is deleted in the fir…
Browse files Browse the repository at this point in the history
…st test file during cleanup phase
  • Loading branch information
mshustov committed Apr 25, 2021
1 parent 1332961 commit a128d7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/functional/apps/context/_discover_navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings();
await kibanaServer.uiSettings.update({
'doc_table:legacy': true,
defaultIndex: 'logstash-*',
});
await PageObjects.common.navigateToApp('discover');

Expand All @@ -50,6 +49,7 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.discover.clickFieldListPlusFilter(columnName, value);
}
});

after(async () => {
await kibanaServer.uiSettings.replace({});
});
Expand Down
5 changes: 4 additions & 1 deletion test/functional/apps/context/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ export default function ({ getService, getPageObjects, loadTestFile }) {
await browser.setWindowSize(1200, 800);
await esArchiver.loadIfNeeded('logstash_functional');
await esArchiver.load('visualize');
await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' });
await PageObjects.common.navigateToApp('discover');
});

beforeEach(async function () {
await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' });
});

after(function unloadMakelogs() {
return esArchiver.unload('logstash_functional');
});
Expand Down

0 comments on commit a128d7b

Please sign in to comment.