From fbc033c226cd098f6a1660a5ff1e40b8a41fe626 Mon Sep 17 00:00:00 2001 From: Tre Date: Tue, 7 Jan 2025 12:02:39 +0000 Subject: [PATCH] [MKI] Fix flaky search source alert test (#205481) ## Summary Use settings [method](https://github.com/elastic/kibana/blob/c8d46ee94982cf38163786f0890bafd43ec07247/test/functional/page_objects/settings_page.ts#L648) instead of naive typing. Naive only because the asterisk at the end of the text box is better handled in the settings method. --- .../discover_ml_uptime/discover/search_source_alert.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts b/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts index 1007c89cb171a..fe2fb08501450 100644 --- a/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts +++ b/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts @@ -553,9 +553,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { // change title await testSubjects.click('editIndexPatternButton'); - await testSubjects.setValue('createIndexPatternTitleInput', 'search-s', { - clearWithKeyboard: true, - typeCharByChar: true, + await PageObjects.header.waitUntilLoadingHasFinished(); + await retry.try(async () => { + await PageObjects.settings.setIndexPatternField('search-s*'); }); await testSubjects.click('saveIndexPatternButton'); await testSubjects.click('confirmModalConfirmButton');