[serverless] add long timeout retry to clickCreateIndexSaveButton method (#185897)

## Summary

add long timeout retry to  `clickCreateIndexSaveButton` method
This commit is contained in:
Tre 2024-06-11 11:10:18 +01:00 committed by GitHub
parent aa844e6a71
commit 82f2c96864
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,7 +146,9 @@ export function IndexManagementPageProvider({ getService }: FtrProviderContext)
async clickCreateIndexSaveButton() {
await testSubjects.click('createIndexSaveButton');
// Wait for modal to close
await testSubjects.missingOrFail('createIndexSaveButton');
await testSubjects.missingOrFail('createIndexSaveButton', {
timeout: 30_000,
});
},
async expectIndexToExist(indexName: string) {
const table = await find.byCssSelector('table');