mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Discover] Add fixes for flaky search source alert test (#137619)
This commit is contained in:
parent
5fcd2c90ce
commit
ae151afbba
1 changed files with 9 additions and 2 deletions
|
@ -147,10 +147,17 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await testSubjects.click('discoverAlertsButton');
|
||||
await testSubjects.click('discoverCreateAlertButton');
|
||||
|
||||
await testSubjects.setValue('ruleNameInput', alertName);
|
||||
await retry.waitFor('rule name value is correct', async () => {
|
||||
await testSubjects.setValue('ruleNameInput', alertName);
|
||||
const ruleName = await testSubjects.getAttribute('ruleNameInput', 'value');
|
||||
return ruleName === alertName;
|
||||
});
|
||||
await testSubjects.click('thresholdPopover');
|
||||
await testSubjects.setValue('alertThresholdInput', '3');
|
||||
await testSubjects.click('.index-alerting-ActionTypeSelectOption');
|
||||
await retry.waitFor('actions accordion to exist', async () => {
|
||||
await testSubjects.click('.index-alerting-ActionTypeSelectOption');
|
||||
return await testSubjects.exists('alertActionAccordion-0');
|
||||
});
|
||||
|
||||
await monacoEditor.setCodeEditorValue(`{
|
||||
"rule_id": "{{ruleId}}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue