mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Fix unhandled promise rejection in discover tests (#128806)
* Fix unhandled promise rejection * Update methods in index.ts to be async * Update test/functional/apps/discover/index.ts Co-authored-by: Spencer <email@spalger.com> * Update test/functional/apps/discover/index.ts Co-authored-by: Spencer <email@spalger.com> Co-authored-by: Spencer <email@spalger.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
dd0a19033f
commit
b9c3aec20f
3 changed files with 6 additions and 6 deletions
|
@ -33,7 +33,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
after(async () => {
|
||||
await security.testUser.restoreDefaults();
|
||||
esArchiver.unload('test/functional/fixtures/es_archiver/date_nanos_mixed');
|
||||
await esArchiver.unload('test/functional/fixtures/es_archiver/date_nanos_mixed');
|
||||
await kibanaServer.savedObjects.clean({ types: ['search', 'index-pattern'] });
|
||||
});
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
});
|
||||
after(async () => {
|
||||
await security.testUser.restoreDefaults();
|
||||
esArchiver.unload('test/functional/fixtures/es_archiver/message_with_newline');
|
||||
await esArchiver.unload('test/functional/fixtures/es_archiver/message_with_newline');
|
||||
await kibanaServer.uiSettings.unset('defaultIndex');
|
||||
await kibanaServer.uiSettings.unset('doc_table:legacy');
|
||||
});
|
||||
|
|
|
@ -15,12 +15,12 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
|||
describe('discover app', function () {
|
||||
this.tags('ciGroup6');
|
||||
|
||||
before(function () {
|
||||
return browser.setWindowSize(1300, 800);
|
||||
before(async function () {
|
||||
await browser.setWindowSize(1300, 800);
|
||||
});
|
||||
|
||||
after(function unloadMakelogs() {
|
||||
return esArchiver.unload('test/functional/fixtures/es_archiver/logstash_functional');
|
||||
after(async function unloadMakelogs() {
|
||||
await esArchiver.unload('test/functional/fixtures/es_archiver/logstash_functional');
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./_saved_queries'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue