[DOCS] Automates xMatters connector screenshots (#165922)

This commit is contained in:
Lisa Cawley 2023-09-08 11:47:13 -07:00 committed by GitHub
parent e34f9ce937
commit c7ab78eeb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 50 additions and 0 deletions

View file

@ -3,6 +3,10 @@
++++
<titleabbrev>xMatters</titleabbrev>
++++
:frontmatter-description: Add a connector that can send alerts to xMatters.
:frontmatter-tags-products: [kibana]
:frontmatter-tags-content-type: [how-to]
:frontmatter-tags-user-goals: [configure]
The xMatters connector uses the https://help.xmatters.com/integrations/#cshid=Elastic[xMatters Workflow for Elastic] to send actionable alerts to on-call xMatters resources.
@ -15,9 +19,11 @@ or as needed when you're creating a rule. You must choose between basic and URL
[role="screenshot"]
image::management/connectors/images/xmatters-connector-basic.png[xMatters connector with basic authentication]
// NOTE: This is an autogenerated screenshot. Do not edit it directly.
[role="screenshot"]
image::management/connectors/images/xmatters-connector-url.png[xMatters connector with url authentication]
// NOTE: This is an autogenerated screenshot. Do not edit it directly.
[float]
[[xmatters-connector-configuration]]
@ -90,6 +96,7 @@ as you're creating or editing the connector in {kib}. For example:
[role="screenshot"]
image::management/connectors/images/xmatters-params-test.png[xMatters params test]
// NOTE: This is an autogenerated screenshot. Do not edit it directly.
xMatters rules have the following properties:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 182 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 154 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Before After
Before After

View file

@ -56,5 +56,6 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) {
loadTestFile(require.resolve('./connectors'));
loadTestFile(require.resolve('./connector_types'));
loadTestFile(require.resolve('./generative_ai_connector'));
loadTestFile(require.resolve('./xmatters_connector'));
});
}

View file

@ -0,0 +1,42 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { FtrProviderContext } from '../../../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const commonScreenshots = getService('commonScreenshots');
const screenshotDirectories = ['response_ops_docs', 'stack_connectors'];
const pageObjects = getPageObjects(['common', 'header']);
const actions = getService('actions');
const testSubjects = getService('testSubjects');
describe('xmatters connector', function () {
beforeEach(async () => {
await pageObjects.common.navigateToApp('connectors');
await pageObjects.header.waitUntilLoadingHasFinished();
});
it('generative ai connector screenshots', async () => {
await pageObjects.common.navigateToApp('connectors');
await pageObjects.header.waitUntilLoadingHasFinished();
await actions.common.openNewConnectorForm('xmatters');
await testSubjects.setValue('nameInput', 'xMatters test connector');
await commonScreenshots.takeScreenshot('xmatters-connector-basic', screenshotDirectories);
const authentication = await testSubjects.find('button-group');
// a radio button consists of a div tag that contains an input, a div, and a label
// we can't click the input directly, need to click the label
const label = await authentication.findByCssSelector('label[title="URL Authentication"]');
await label.click();
await commonScreenshots.takeScreenshot('xmatters-connector-url', screenshotDirectories);
await testSubjects.setValue('secrets.secretsUrl', 'https://example.com');
await testSubjects.click('create-connector-flyout-save-test-btn');
await testSubjects.click('toastCloseButton');
await commonScreenshots.takeScreenshot('xmatters-params-test', screenshotDirectories);
await testSubjects.click('euiFlyoutCloseButton');
});
});
}