-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Connectors][ServiceNow ITSM] Edit labels, automate screenshots, add cross-scope privileges #172533
Merged
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
86c7230
[DOCS] Automate ServiceNow ITSM screenshots
lcawl 4920dd6
[Connectors][ServiceNow ITSM] Edit formatting for required labels
lcawl 75be0cc
[DOCS] Add cross-scope privilege steps for Servicenow ITSM
lcawl 500cb1f
Edits the cross-scope privileges table
lcawl 27d3104
Merge branch 'main' into itsm-connector
lcawl 5fa17ca
Merge branch 'main' into itsm-connector
lcawl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
+25 KB
(110%)
docs/management/connectors/images/servicenow-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
+100 KB
(150%)
docs/management/connectors/images/servicenow-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
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
48 changes: 48 additions & 0 deletions
48
.../screenshot_creation/apps/response_ops_docs/stack_connectors/servicenow_itsm_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 itsm connector', function () { | ||
beforeEach(async () => { | ||
await pageObjects.common.navigateToApp('connectors'); | ||
await pageObjects.header.waitUntilLoadingHasFinished(); | ||
}); | ||
|
||
it('servicenow itsm connector screenshots', async () => { | ||
await pageObjects.common.navigateToApp('connectors'); | ||
await pageObjects.header.waitUntilLoadingHasFinished(); | ||
await actions.common.openNewConnectorForm('servicenow'); | ||
await testSubjects.setValue('nameInput', 'ServiceNow ITSM test connector'); | ||
await testSubjects.setValue('credentialsApiUrlFromInput', 'https://dev123.service-now.com'); | ||
await testSubjects.click('input'); | ||
await commonScreenshots.takeScreenshot( | ||
'servicenow-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-connector-basic', | ||
screenshotDirectories, | ||
1920, | ||
1400 | ||
); | ||
await testSubjects.click('euiFlyoutCloseButton'); | ||
}); | ||
}); | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we going to do the same for SecOps on a different PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right.