[DOCS] Automate Opsgenie connector screenshots (#165265)

This commit is contained in:
Lisa Cawley 2023-09-05 15:31:57 -07:00 committed by GitHub
parent 68f2adf1b1
commit 4d47b49f10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 0 deletions

View file

@ -15,6 +15,7 @@ or as needed when you're creating a rule. For example:
[role="screenshot"]
image::management/connectors/images/opsgenie-connector.png[Opsgenie connector]
// NOTE: This is an autogenerated screenshot. Do not edit it directly.
[float]
[[opsgenie-connector-configuration]]
@ -37,6 +38,7 @@ as you're creating or editing the connector in {kib}. For example:
[role="screenshot"]
image::management/connectors/images/opsgenie-params-test.png[Opsgenie params test]
// NOTE: This is an autogenerated screenshot. Do not edit it directly.
The Opsgenie connector supports two types of actions: Create alert and Close alert. The properties supported for each action are different because Opsgenie defines different properties for each operation.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 177 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 142 KiB

Before After
Before After

View file

@ -186,5 +186,18 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await commonScreenshots.takeScreenshot('pagerduty-params-test', screenshotDirectories);
await testSubjects.click('euiFlyoutCloseButton');
});
it('opsgenie connector screenshots', async () => {
await pageObjects.common.navigateToApp('connectors');
await pageObjects.header.waitUntilLoadingHasFinished();
await actions.common.openNewConnectorForm('opsgenie');
await testSubjects.setValue('nameInput', 'Opsgenie test connector');
await testSubjects.setValue('secrets.apiKey-input', 'testkey');
await commonScreenshots.takeScreenshot('opsgenie-connector', screenshotDirectories);
await testSubjects.click('create-connector-flyout-save-test-btn');
await testSubjects.click('toastCloseButton');
await commonScreenshots.takeScreenshot('opsgenie-params-test', screenshotDirectories);
await testSubjects.click('euiFlyoutCloseButton');
});
});
}