Skip to content

Commit

Permalink
[DOCS] Automate rule-flyout-rule-conditions.png (elastic#155461)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl authored Apr 21, 2023
1 parent 6aa1491 commit a0aae1a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/user/alerting/create-and-manage-rules.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Each rule type provides its own way of defining the conditions to detect, but an

[role="screenshot"]
image::images/rule-flyout-rule-conditions.png[UI for defining rule conditions on an index threshold rule,500]
// NOTE: This is an autogenerated screenshot. Do not edit it directly.

All rules must have a check interval, which defines how often to evaluate the rule conditions. Checks are queued; they run as close to the defined value as capacity allows.

Expand Down
Binary file modified docs/user/alerting/images/rule-flyout-rule-conditions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,23 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
1024
);
});

it('rule conditions screenshots', async () => {
await pageObjects.common.navigateToApp('triggersActions');
await pageObjects.header.waitUntilLoadingHasFinished();
await testSubjects.setValue('ruleSearchField', ruleName);
const actionPanel = await testSubjects.find('collapsedItemActions');
await actionPanel.click();
const editRuleMenu = await testSubjects.find('editRule');
await editRuleMenu.click();
await testSubjects.scrollIntoView('intervalInput');
await pageObjects.header.waitUntilLoadingHasFinished();
await commonScreenshots.takeScreenshot(
'rule-flyout-rule-conditions',
screenshotDirectories,
1400,
1500
);
});
});
}

0 comments on commit a0aae1a

Please sign in to comment.