* fixing flaky management settings test * fix for the fix (awaiting results of find)
This commit is contained in:
parent
67addab4eb
commit
df431c1287
|
@ -75,8 +75,13 @@ export function SettingsPageProvider({ getService, getPageObjects }) {
|
|||
}
|
||||
|
||||
async setAdvancedSettingsSelect(propertyName, propertyValue) {
|
||||
await remote.setFindTimeout(defaultFindTimeout)
|
||||
.findByCssSelector(`[data-test-subj="advancedSetting-editField-${propertyName}"] option[value="${propertyValue}"]`).click();
|
||||
let option;
|
||||
await retry.try(async () => {
|
||||
option = await remote.findByCssSelector(
|
||||
`[data-test-subj="advancedSetting-editField-${propertyName}"] option[value="${propertyValue}"]`
|
||||
);
|
||||
});
|
||||
await option.click();
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await testSubjects.click(`advancedSetting-saveEditField-${propertyName}`);
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
|
Loading…
Reference in a new issue