Skip to content

Commit

Permalink
Revert "set defaultIndex before each test. otherwise it is deleted in…
Browse files Browse the repository at this point in the history
… the first test file during cleanup phase"

This reverts commit a128d7b.
  • Loading branch information
mshustov committed Apr 25, 2021
1 parent 585bdd9 commit 145244a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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,6 +37,7 @@ 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 @@ -49,7 +50,6 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.discover.clickFieldListPlusFilter(columnName, value);
}
});

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

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

after(function unloadMakelogs() {
Expand Down

0 comments on commit 145244a

Please sign in to comment.