mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
(cherry picked from commit ae151afbba
)
Co-authored-by: Davis McPhee <davis.mcphee@elastic.co>
This commit is contained in:
parent
d8d331ee85
commit
f6ef62355f
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