2018-05-29 05:06:30 +02:00
|
|
|
/*
|
|
|
|
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
|
|
* license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright
|
|
|
|
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
|
|
* the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
* not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing,
|
|
|
|
* software distributed under the License is distributed on an
|
|
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
* KIND, either express or implied. See the License for the
|
|
|
|
* specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*/
|
|
|
|
|
2019-12-13 23:44:04 +01: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
|
|
|
|
2019-12-13 23:44:04 +01:00
|
|
|
describe('context app', function() {
|
2018-11-20 23:02:06 +01:00
|
|
|
this.tags('ciGroup1');
|
|
|
|
|
2019-12-13 23:44:04 +01: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
|
|
|
|
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
|
|
|
}
|