[DOCS] Automate PagerDuty connector screenshots (#165413)

## Summary

This PR automates two screenshots in
https://www.elastic.co/guide/en/kibana/master/pagerduty-action-type.html
This commit is contained in:
Lisa Cawley 2023-09-05 12:18:28 -07:00 committed by GitHub
parent ccfb713ee4
commit 33dcda7b70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 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/pagerduty-connector.png[PagerDuty connector]
// NOTE: This is an autogenerated screenshot. Do not edit it directly.
[float]
[[pagerduty-connector-configuration]]
@ -63,6 +64,7 @@ as you're creating or editing the connector in {kib}. For example:
[role="screenshot"]
image::management/connectors/images/pagerduty-params-test.png[PagerDuty params test]
// NOTE: This is an autogenerated screenshot. Do not edit it directly.
PagerDuty actions have the following properties.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 140 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 129 KiB

Before After
Before After

View file

@ -171,5 +171,20 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await commonScreenshots.takeScreenshot('webhook-params-test', screenshotDirectories);
await testSubjects.click('euiFlyoutCloseButton');
});
it('pagerduty connector screenshots', async () => {
await pageObjects.common.navigateToApp('connectors');
await pageObjects.header.waitUntilLoadingHasFinished();
await actions.common.openNewConnectorForm('pagerduty');
await testSubjects.setValue('nameInput', 'PagerDuty test connector');
await testSubjects.setValue('pagerdutyApiUrlInput', 'https://dev-test.pagerduty.com/');
await testSubjects.setValue('pagerdutyRoutingKeyInput', 'testkey');
await commonScreenshots.takeScreenshot('pagerduty-connector', screenshotDirectories);
await testSubjects.click('create-connector-flyout-save-test-btn');
await testSubjects.click('toastCloseButton');
await testSubjects.setValue('eventActionSelect', 'trigger');
await commonScreenshots.takeScreenshot('pagerduty-params-test', screenshotDirectories);
await testSubjects.click('euiFlyoutCloseButton');
});
});
}