Use char by char typing in all text fields

This commit is contained in:
Robert Oskamp 2019-12-04 11:23:40 +01:00
parent a60b557c4d
commit 2fbccc57c6
5 changed files with 18 additions and 3 deletions

View file

@ -18,6 +18,7 @@ export function MachineLearningJobSourceSelectionProvider({ getService }: FtrPro
async filterSourceSelection(sourceName: string) {
await testSubjects.setValue('savedObjectFinderSearchInput', sourceName, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.assertSourceListContainsEntry(sourceName);
},

View file

@ -262,6 +262,7 @@ export function MachineLearningJobWizardAdvancedProvider({
async setDetectorDescription(description: string) {
await testSubjects.setValue('mlAdvancedDetectorDescriptionInput', description, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.assertDetectorDescriptionValue(description);
},

View file

@ -125,7 +125,10 @@ export function MachineLearningJobWizardCommonProvider({ getService }: FtrProvid
},
async setJobId(jobId: string) {
await testSubjects.setValue('mlJobWizardInputJobId', jobId, { clearWithKeyboard: true });
await testSubjects.setValue('mlJobWizardInputJobId', jobId, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.assertJobIdValue(jobId);
},
@ -143,6 +146,7 @@ export function MachineLearningJobWizardCommonProvider({ getService }: FtrProvid
async setJobDescription(jobDescription: string) {
await testSubjects.setValue('mlJobWizardInputJobDescription', jobDescription, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.assertJobDescriptionValue(jobDescription);
},
@ -285,7 +289,10 @@ export function MachineLearningJobWizardCommonProvider({ getService }: FtrProvid
await this.ensureAdvancedSectionOpen();
subj = advancedSectionSelector(subj);
}
await testSubjects.setValue(subj, modelMemoryLimit, { clearWithKeyboard: true });
await testSubjects.setValue(subj, modelMemoryLimit, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.assertModelMemoryLimitValue(modelMemoryLimit, {
withAdvancedSection: sectionOptions.withAdvancedSection,
});

View file

@ -17,6 +17,7 @@ export function TransformSourceSelectionProvider({ getService }: FtrProviderCont
async filterSourceSelection(sourceName: string) {
await testSubjects.setValue('savedObjectFinderSearchInput', sourceName, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.assertSourceListContainsEntry(sourceName);
},

View file

@ -300,7 +300,10 @@ export function TransformWizardProvider({ getService }: FtrProviderContext) {
},
async setTransformId(transformId: string) {
await testSubjects.setValue('transformIdInput', transformId, { clearWithKeyboard: true });
await testSubjects.setValue('transformIdInput', transformId, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.assertTransformIdValue(transformId);
},
@ -322,6 +325,7 @@ export function TransformWizardProvider({ getService }: FtrProviderContext) {
async setTransformDescription(transformDescription: string) {
await testSubjects.setValue('transformDescriptionInput', transformDescription, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.assertTransformDescriptionValue(transformDescription);
},
@ -344,6 +348,7 @@ export function TransformWizardProvider({ getService }: FtrProviderContext) {
async setDestinationIndex(destinationIndex: string) {
await testSubjects.setValue('transformDestinationIndexInput', destinationIndex, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.assertDestinationIndexValue(destinationIndex);
},