2018-05-29 05:06:30 +02:00
|
|
|
/*
|
2021-01-20 02:52:56 +01:00
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
2021-02-04 03:12:39 +01:00
|
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
|
|
* Side Public License, v 1.
|
2018-05-29 05:06:30 +02:00
|
|
|
*/
|
|
|
|
|
2020-05-22 09:08:58 +02:00
|
|
|
export default function ({ getService, getPageObjects, loadTestFile }) {
|
2018-11-29 23:30:47 +01:00
|
|
|
const browser = getService('browser');
|
2017-04-12 00:01:06 +02:00
|
|
|
const esArchiver = getService('esArchiver');
|
|
|
|
const PageObjects = getPageObjects(['common']);
|
2018-11-06 23:25:44 +01:00
|
|
|
const kibanaServer = getService('kibanaServer');
|
2017-02-22 18:27:49 +01:00
|
|
|
|
2020-05-22 09:08:58 +02:00
|
|
|
describe('context app', function () {
|
2018-11-20 23:02:06 +01:00
|
|
|
this.tags('ciGroup1');
|
|
|
|
|
2020-05-22 09:08:58 +02:00
|
|
|
before(async function () {
|
2018-11-29 23:30:47 +01:00
|
|
|
await browser.setWindowSize(1200, 800);
|
2017-04-12 00:01:06 +02:00
|
|
|
await esArchiver.loadIfNeeded('logstash_functional');
|
|
|
|
await esArchiver.load('visualize');
|
2019-12-13 23:44:04 +01:00
|
|
|
await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' });
|
2017-04-12 00:01:06 +02:00
|
|
|
await PageObjects.common.navigateToApp('discover');
|
|
|
|
});
|
2017-02-22 18:27:49 +01:00
|
|
|
|
2017-04-12 00:01:06 +02:00
|
|
|
after(function unloadMakelogs() {
|
|
|
|
return esArchiver.unload('logstash_functional');
|
|
|
|
});
|
2017-02-22 18:27:49 +01:00
|
|
|
|
2020-04-06 09:41:05 +02:00
|
|
|
loadTestFile(require.resolve('./_context_navigation'));
|
2017-04-12 00:01:06 +02:00
|
|
|
loadTestFile(require.resolve('./_discover_navigation'));
|
2017-05-18 12:05:38 +02:00
|
|
|
loadTestFile(require.resolve('./_filters'));
|
2017-04-12 00:01:06 +02:00
|
|
|
loadTestFile(require.resolve('./_size'));
|
2019-06-11 15:04:54 +02:00
|
|
|
loadTestFile(require.resolve('./_date_nanos'));
|
2020-01-14 15:15:30 +01:00
|
|
|
loadTestFile(require.resolve('./_date_nanos_custom_timestamp'));
|
2017-02-22 18:27:49 +01:00
|
|
|
});
|
2017-04-12 00:01:06 +02:00
|
|
|
}
|