[8.10] [DOCS] Automate PagerDuty connector screenshots (#165413) (#165764)

# Backport

This will backport the following commits from `main` to `8.10`:
- [[DOCS] Automate PagerDuty connector screenshots
(#165413)](https://github.com/elastic/kibana/pull/165413)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Lisa
Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2023-09-05T19:18:28Z","message":"[DOCS]
Automate PagerDuty connector screenshots (#165413)\n\n##
Summary\r\n\r\nThis PR automates two screenshots
in\r\nhttps://www.elastic.co/guide/en/kibana/master/pagerduty-action-type.html","sha":"33dcda7b7007bdc390455eb1f6879c73b3ce1c52","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","docs","Feature:Actions/ConnectorTypes","backport:prev-minor","v8.11.0"],"number":165413,"url":"https://github.com/elastic/kibana/pull/165413","mergeCommit":{"message":"[DOCS]
Automate PagerDuty connector screenshots (#165413)\n\n##
Summary\r\n\r\nThis PR automates two screenshots
in\r\nhttps://www.elastic.co/guide/en/kibana/master/pagerduty-action-type.html","sha":"33dcda7b7007bdc390455eb1f6879c73b3ce1c52"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165413","number":165413,"mergeCommit":{"message":"[DOCS]
Automate PagerDuty connector screenshots (#165413)\n\n##
Summary\r\n\r\nThis PR automates two screenshots
in\r\nhttps://www.elastic.co/guide/en/kibana/master/pagerduty-action-type.html","sha":"33dcda7b7007bdc390455eb1f6879c73b3ce1c52"}}]}]
BACKPORT-->

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
This commit is contained in:
Kibana Machine 2023-09-05 16:22:15 -04:00 committed by GitHub
parent b2bd42d7b0
commit c034a6e57b
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');
});
});
}