-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS] Automate ServiceNow ITOM connector screenshots
- Loading branch information
Showing
8 changed files
with
174 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+21 KB
(110%)
docs/management/connectors/images/servicenow-itom-connector-basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+45.2 KB
(120%)
docs/management/connectors/images/servicenow-itom-connector-oauth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-112 KB
(56%)
docs/management/connectors/images/servicenow-itom-params-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
.../screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_itom_connector.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* 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('servicenow itom connector', function () { | ||
beforeEach(async () => { | ||
await pageObjects.common.navigateToApp('connectors'); | ||
await pageObjects.header.waitUntilLoadingHasFinished(); | ||
}); | ||
|
||
it('servicenow itom connector screenshots', async () => { | ||
await pageObjects.common.navigateToApp('connectors'); | ||
await pageObjects.header.waitUntilLoadingHasFinished(); | ||
await actions.common.openNewConnectorForm('servicenow-itom'); | ||
await testSubjects.setValue('nameInput', 'ServiceNow ITOM test connector'); | ||
await testSubjects.setValue('credentialsApiUrlFromInput', 'https://dev123.service-now.com'); | ||
await testSubjects.click('input'); | ||
await commonScreenshots.takeScreenshot( | ||
'servicenow-itom-connector-oauth', | ||
screenshotDirectories, | ||
1920, | ||
1400 | ||
); | ||
await testSubjects.click('input'); | ||
await testSubjects.setValue('connector-servicenow-username-form-input', 'testuser'); | ||
await testSubjects.setValue('connector-servicenow-password-form-input', 'testpassword'); | ||
await commonScreenshots.takeScreenshot( | ||
'servicenow-itom-connector-basic', | ||
screenshotDirectories | ||
); | ||
await testSubjects.click('create-connector-flyout-save-test-btn'); | ||
await testSubjects.click('toastCloseButton'); | ||
await testSubjects.click('toastCloseButton'); | ||
await commonScreenshots.takeScreenshot( | ||
'servicenow-itom-params-test', | ||
screenshotDirectories, | ||
1920, | ||
1400 | ||
); | ||
await testSubjects.click('euiFlyoutCloseButton'); | ||
}); | ||
}); | ||
} |