-
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.
Automate ServiceNow SecOps screenshots
- Loading branch information
Showing
5 changed files
with
51 additions
and
0 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
+26.1 KB
(110%)
docs/management/connectors/images/servicenow-sir-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
+99 KB
(150%)
docs/management/connectors/images/servicenow-sir-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.
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
48 changes: 48 additions & 0 deletions
48
...t/screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_sir_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,48 @@ | ||
/* | ||
* 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 secops connector', function () { | ||
beforeEach(async () => { | ||
await pageObjects.common.navigateToApp('connectors'); | ||
await pageObjects.header.waitUntilLoadingHasFinished(); | ||
}); | ||
|
||
it('servicenow secops connector screenshots', async () => { | ||
await pageObjects.common.navigateToApp('connectors'); | ||
await pageObjects.header.waitUntilLoadingHasFinished(); | ||
await actions.common.openNewConnectorForm('servicenow-sir'); | ||
await testSubjects.setValue('nameInput', 'ServiceNow SecOps test connector'); | ||
await testSubjects.setValue('credentialsApiUrlFromInput', 'https://dev123.service-now.com'); | ||
await testSubjects.click('input'); | ||
await commonScreenshots.takeScreenshot( | ||
'servicenow-sir-connector-oauth', | ||
screenshotDirectories, | ||
1920, | ||
1600 | ||
); | ||
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-sir-connector-basic', | ||
screenshotDirectories, | ||
1920, | ||
1400 | ||
); | ||
await testSubjects.click('euiFlyoutCloseButton'); | ||
}); | ||
}); | ||
} |