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.
|
|
|
|
*/
|
|
|
|
|
2017-04-12 00:01:06 +02:00
|
|
|
export default function ({ getService, getPageObjects, loadTestFile }) {
|
|
|
|
const remote = getService('remote');
|
|
|
|
const esArchiver = getService('esArchiver');
|
|
|
|
const PageObjects = getPageObjects(['common']);
|
2017-02-22 18:27:49 +01:00
|
|
|
|
2017-04-12 00:01:06 +02:00
|
|
|
describe('context app', function () {
|
|
|
|
before(async function () {
|
2017-10-26 00:08:05 +02:00
|
|
|
await remote.setWindowSize(1200, 800);
|
2017-04-12 00:01:06 +02:00
|
|
|
await esArchiver.loadIfNeeded('logstash_functional');
|
|
|
|
await esArchiver.load('visualize');
|
|
|
|
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'));
|
2017-02-22 18:27:49 +01:00
|
|
|
});
|
|
|
|
|
2017-04-12 00:01:06 +02:00
|
|
|
}
|