kibana/test/functional/firefox/config.base.ts
Dzmitry Lemechko 8be882b58d
[ftr] create config file for each tested plugin with firefox tests (#150873)
## Summary

Splitting firefox test config by plugin to speedup pipeline execution
time.

<img width="1581" alt="image"
src="https://user-images.githubusercontent.com/10977896/218100374-4b19339a-c3fb-4344-9e27-9791206ef189.png">

test/functional/firefox/console.config.ts 6m 2s
test/functional/firefox/dashboard.config.ts 7m 39s
test/functional/firefox/discover.config.ts 4m 18s
test/functional/firefox/home.config.ts 1m 32s
test/functional/firefox/visualize.config.ts 22m 9s
2023-02-11 00:51:57 +01:00

28 lines
802 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 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.
*/
/* eslint-disable import/no-default-export */
import { FtrConfigProviderContext } from '@kbn/test';
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
const baseConfig = await readConfigFile(require.resolve('../config.base.js'));
return {
...baseConfig.getAll(),
browser: {
type: 'firefox',
},
suiteTags: {
include: ['includeFirefox'],
exclude: ['skipFirefox'],
},
};
}