Skip to content

Commit

Permalink
[MKI] Fix flaky search source alert test (elastic#205481)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
wayneseymour authored and kowalczyk-krzysztof committed Jan 7, 2025
1 parent 12c32b0 commit ddceafa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ddceafa

Please sign in to comment.