mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[test/new_visualize_flow] fix config (#82441)
* [test/new_visualize_flow] fix config * fix file extension
This commit is contained in:
parent
fe3b0538ff
commit
ae3f4f5142
4 changed files with 12 additions and 11 deletions
|
@ -22,7 +22,7 @@ const alwaysImportedTests = [
|
|||
require.resolve('../test/functional/config.js'),
|
||||
require.resolve('../test/plugin_functional/config.ts'),
|
||||
require.resolve('../test/ui_capabilities/newsfeed_err/config.ts'),
|
||||
require.resolve('../test/new_visualize_flow/config.js'),
|
||||
require.resolve('../test/new_visualize_flow/config.ts'),
|
||||
require.resolve('../test/security_functional/config.ts'),
|
||||
];
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
|
|
|
@ -42,7 +42,7 @@ const getDefaultArgs = (tag) => {
|
|||
'--bail',
|
||||
'--debug',
|
||||
'--config',
|
||||
'test/new_visualize_flow/config.js',
|
||||
'test/new_visualize_flow/config.ts',
|
||||
'--config',
|
||||
'test/security_functional/config.ts',
|
||||
];
|
||||
|
|
|
@ -17,18 +17,16 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import { pageObjects } from '../functional/page_objects';
|
||||
import { services } from '../functional/services';
|
||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
||||
|
||||
export default async function ({ readConfigFile }) {
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const commonConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
||||
|
||||
return {
|
||||
testFiles: [require.resolve('./dashboard_embedding')],
|
||||
pageObjects,
|
||||
services,
|
||||
testFiles: [require.resolve('./index.ts')],
|
||||
pageObjects: commonConfig.get('pageObjects'),
|
||||
services: commonConfig.get('services'),
|
||||
servers: commonConfig.get('servers'),
|
||||
|
||||
esTestCluster: commonConfig.get('esTestCluster'),
|
||||
|
||||
kbnTestServer: {
|
||||
|
@ -37,6 +35,7 @@ export default async function ({ readConfigFile }) {
|
|||
...commonConfig.get('kbnTestServer.serverArgs'),
|
||||
'--oss',
|
||||
'--telemetry.optIn=false',
|
||||
'--dashboard.allowByValueEmbeddables=true',
|
||||
],
|
||||
},
|
||||
|
||||
|
@ -105,7 +104,7 @@ export default async function ({ readConfigFile }) {
|
|||
},
|
||||
kibana: [],
|
||||
},
|
||||
//for sample data - can remove but not add sample data
|
||||
// for sample data - can remove but not add sample data
|
||||
kibana_sample_admin: {
|
||||
elasticsearch: {
|
||||
cluster: [],
|
|
@ -17,6 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from 'test/functional/ftr_provider_context';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
/**
|
||||
|
@ -27,7 +28,8 @@ import expect from '@kbn/expect';
|
|||
* broke?). The upside is that this offers very good coverage with a minimal time investment.
|
||||
*/
|
||||
|
||||
export default function ({ getService, getPageObjects }) {
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const kibanaServer = getService('kibanaServer');
|
||||
const dashboardExpect = getService('dashboardExpect');
|
Loading…
Add table
Add a link
Reference in a new issue