mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
set defaultIndex before each test. otherwise it is deleted in the first test file during cleanup phase
This commit is contained in:
parent
1332961a64
commit
a128d7b7c0
2 changed files with 5 additions and 2 deletions
|
@ -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');
|
||||
|
||||
|
@ -50,6 +49,7 @@ export default function ({ getService, getPageObjects }) {
|
|||
await PageObjects.discover.clickFieldListPlusFilter(columnName, value);
|
||||
}
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await kibanaServer.uiSettings.replace({});
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue