mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[ML] Functional tests - stabilize transform wizard field input (#123126)
This PR stabilizes the transform wizard field input during functional tests by changing to the more stable setValueWithChecks service method that we're already using for many ML wizard fields.
This commit is contained in:
parent
f3477143aa
commit
7f15eaad65
1 changed files with 6 additions and 3 deletions
|
@ -26,6 +26,7 @@ export function TransformWizardProvider({ getService, getPageObjects }: FtrProvi
|
|||
const testSubjects = getService('testSubjects');
|
||||
const comboBox = getService('comboBox');
|
||||
const retry = getService('retry');
|
||||
const ml = getService('ml');
|
||||
const PageObjects = getPageObjects(['discover', 'timePicker']);
|
||||
|
||||
return {
|
||||
|
@ -679,7 +680,9 @@ export function TransformWizardProvider({ getService, getPageObjects }: FtrProvi
|
|||
},
|
||||
|
||||
async setTransformId(transformId: string) {
|
||||
await testSubjects.setValue('transformIdInput', transformId, { clearWithKeyboard: true });
|
||||
await ml.commonUI.setValueWithChecks('transformIdInput', transformId, {
|
||||
clearWithKeyboard: true,
|
||||
});
|
||||
await this.assertTransformIdValue(transformId);
|
||||
},
|
||||
|
||||
|
@ -699,7 +702,7 @@ export function TransformWizardProvider({ getService, getPageObjects }: FtrProvi
|
|||
},
|
||||
|
||||
async setTransformDescription(transformDescription: string) {
|
||||
await testSubjects.setValue('transformDescriptionInput', transformDescription, {
|
||||
await ml.commonUI.setValueWithChecks('transformDescriptionInput', transformDescription, {
|
||||
clearWithKeyboard: true,
|
||||
});
|
||||
await this.assertTransformDescriptionValue(transformDescription);
|
||||
|
@ -721,7 +724,7 @@ export function TransformWizardProvider({ getService, getPageObjects }: FtrProvi
|
|||
},
|
||||
|
||||
async setDestinationIndex(destinationIndex: string) {
|
||||
await testSubjects.setValue('transformDestinationIndexInput', destinationIndex, {
|
||||
await ml.commonUI.setValueWithChecks('transformDestinationIndexInput', destinationIndex, {
|
||||
clearWithKeyboard: true,
|
||||
});
|
||||
await this.assertDestinationIndexValue(destinationIndex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue