* Updating everything except the license headers themselves * Applying ESLint rules * Manually replacing the stragglers
70 lines
2.4 KiB
TypeScript
70 lines
2.4 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 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.
|
|
*/
|
|
|
|
import { FtrProviderContext } from '../ftr_provider_context';
|
|
|
|
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|
const PageObjects = getPageObjects(['common', 'settings', 'header']);
|
|
const esArchiver = getService('esArchiver');
|
|
const kibanaServer = getService('kibanaServer');
|
|
const a11y = getService('a11y');
|
|
|
|
describe('Management', () => {
|
|
before(async () => {
|
|
await esArchiver.load('discover');
|
|
await esArchiver.loadIfNeeded('logstash_functional');
|
|
await kibanaServer.uiSettings.update({
|
|
defaultIndex: 'logstash-*',
|
|
});
|
|
await PageObjects.settings.navigateTo();
|
|
});
|
|
|
|
after(async () => {
|
|
await esArchiver.unload('logstash_functional');
|
|
});
|
|
|
|
it('main view', async () => {
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
|
|
it('index pattern page', async () => {
|
|
await PageObjects.settings.clickKibanaIndexPatterns();
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
|
|
it('Single indexpattern view', async () => {
|
|
await PageObjects.settings.clickIndexPatternLogstash();
|
|
await PageObjects.header.waitUntilLoadingHasFinished();
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
|
|
it('Open create index pattern wizard', async () => {
|
|
await PageObjects.settings.clickKibanaIndexPatterns();
|
|
await PageObjects.settings.clickAddNewIndexPatternButton();
|
|
await PageObjects.header.waitUntilLoadingHasFinished();
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
|
|
// We are navigating back to index pattern page to test field formatters
|
|
it('Navigate back to logstash index page', async () => {
|
|
await PageObjects.settings.clickKibanaIndexPatterns();
|
|
await PageObjects.settings.clickIndexPatternLogstash();
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
|
|
it('Edit field type', async () => {
|
|
await PageObjects.settings.clickEditFieldFormat();
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
|
|
it('Advanced settings', async () => {
|
|
await PageObjects.settings.clickKibanaSettings();
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
});
|
|
}
|