mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
This PR utilizes the functional test runner to walk through the UI and take a couple screenshots for use in the documentation.
24 lines
810 B
TypeScript
24 lines
810 B
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; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
|
import { services } from './services';
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
const xpackFunctionalConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
|
|
|
return {
|
|
// default to the xpack functional config
|
|
...xpackFunctionalConfig.getAll(),
|
|
services,
|
|
testFiles: [require.resolve('./apps')],
|
|
junit: {
|
|
...xpackFunctionalConfig.get('junit'),
|
|
reportName: 'Chrome X-Pack UI Screenshot Creation',
|
|
},
|
|
};
|
|
}
|