File tree Expand file tree Collapse file tree 7 files changed +19
-14
lines changed
x-pack/test/functional/services/machine_learning Expand file tree Collapse file tree 7 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 44 * you may not use this file except in compliance with the Elastic License.
55 */
66import expect from '@kbn/expect' ;
7+ import { ProvidedType } from '@kbn/test/types/ftr' ;
78
89import { FtrProviderContext } from '../../ftr_provider_context' ;
910
1011import { JOB_STATE , DATAFEED_STATE } from '../../../../legacy/plugins/ml/common/constants/states' ;
1112import { DATA_FRAME_TASK_STATE } from '../../../../legacy/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/common' ;
1213
14+ export type MlApi = ProvidedType < typeof MachineLearningAPIProvider > ;
15+
1316export function MachineLearningAPIProvider ( { getService } : FtrProviderContext ) {
1417 const es = getService ( 'legacyEs' ) ;
1518 const log = getService ( 'log' ) ;
Original file line number Diff line number Diff line change 33 * or more contributor license agreements. Licensed under the Elastic License;
44 * you may not use this file except in compliance with the Elastic License.
55 */
6+ import { ProvidedType } from '@kbn/test/types/ftr' ;
67
78import { FtrProviderContext } from '../../ftr_provider_context' ;
89
@@ -11,6 +12,8 @@ interface SetValueOptions {
1112 typeCharByChar ?: boolean ;
1213}
1314
15+ export type MlCommon = ProvidedType < typeof MachineLearningCommonProvider > ;
16+
1417export function MachineLearningCommonProvider ( { getService } : FtrProviderContext ) {
1518 const log = getService ( 'log' ) ;
1619 const retry = getService ( 'retry' ) ;
Original file line number Diff line number Diff line change 44 * you may not use this file except in compliance with the Elastic License.
55 */
66import expect from '@kbn/expect' ;
7+ import { ProvidedType } from '@kbn/test/types/ftr' ;
78
89import { FtrProviderContext } from '../../ftr_provider_context' ;
910
11+ export type MlCustomUrls = ProvidedType < typeof MachineLearningCustomUrlsProvider > ;
12+
1013export function MachineLearningCustomUrlsProvider ( { getService } : FtrProviderContext ) {
1114 const testSubjects = getService ( 'testSubjects' ) ;
1215
Original file line number Diff line number Diff line change 33 * or more contributor license agreements. Licensed under the Elastic License;
44 * you may not use this file except in compliance with the Elastic License.
55 */
6- import { ProvidedType } from '@kbn/test/types/ftr' ;
76
87import { FtrProviderContext } from '../../ftr_provider_context' ;
9- import { MachineLearningAPIProvider } from './api' ;
8+ import { MlApi } from './api' ;
109
1110import { DATA_FRAME_TASK_STATE } from '../../../../legacy/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/common' ;
1211
1312export function MachineLearningDataFrameAnalyticsProvider (
1413 { getService } : FtrProviderContext ,
15- mlApi : ProvidedType < typeof MachineLearningAPIProvider >
14+ mlApi : MlApi
1615) {
1716 const testSubjects = getService ( 'testSubjects' ) ;
1817
Original file line number Diff line number Diff line change 33 * or more contributor license agreements. Licensed under the Elastic License;
44 * you may not use this file except in compliance with the Elastic License.
55 */
6- import { ProvidedType } from '@kbn/test/types/ftr' ;
76
87import { FtrProviderContext } from '../../ftr_provider_context' ;
9- import { MachineLearningAPIProvider } from './api' ;
8+ import { MlApi } from './api' ;
109
1110import { JOB_STATE , DATAFEED_STATE } from '../../../../legacy/plugins/ml/common/constants/states' ;
1211
1312export function MachineLearningJobManagementProvider (
1413 { getService } : FtrProviderContext ,
15- mlApi : ProvidedType < typeof MachineLearningAPIProvider >
14+ mlApi : MlApi
1615) {
1716 const testSubjects = getService ( 'testSubjects' ) ;
1817
Original file line number Diff line number Diff line change 44 * you may not use this file except in compliance with the Elastic License.
55 */
66import expect from '@kbn/expect' ;
7- import { ProvidedType } from '@kbn/test/types/ftr' ;
87
98import { FtrProviderContext } from '../../ftr_provider_context' ;
10- import { MachineLearningCommonProvider } from './common' ;
9+ import { MlCommon } from './common' ;
1110
1211export function MachineLearningJobWizardAdvancedProvider (
1312 { getService } : FtrProviderContext ,
14- mlCommon : ProvidedType < typeof MachineLearningCommonProvider >
13+ mlCommon : MlCommon
1514) {
1615 const comboBox = getService ( 'comboBox' ) ;
1716 const testSubjects = getService ( 'testSubjects' ) ;
Original file line number Diff line number Diff line change 44 * you may not use this file except in compliance with the Elastic License.
55 */
66import expect from '@kbn/expect' ;
7- import { ProvidedType } from '@kbn/test/types/ftr' ;
87
98import { FtrProviderContext } from '../../ftr_provider_context' ;
10- import { MachineLearningCommonProvider } from './common' ;
11- import { MachineLearningCustomUrlsProvider } from './custom_urls' ;
9+ import { MlCommon } from './common' ;
10+ import { MlCustomUrls } from './custom_urls' ;
1211
1312export function MachineLearningJobWizardCommonProvider (
1413 { getService } : FtrProviderContext ,
15- mlCommon : ProvidedType < typeof MachineLearningCommonProvider > ,
16- customUrls : ProvidedType < typeof MachineLearningCustomUrlsProvider >
14+ mlCommon : MlCommon ,
15+ customUrls : MlCustomUrls
1716) {
1817 const comboBox = getService ( 'comboBox' ) ;
1918 const retry = getService ( 'retry' ) ;
You can’t perform that action at this time.
0 commit comments