-
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] Custom fields in cases (#169057)
(cherry picked from commit aaa6c36)
- Loading branch information
Showing
14 changed files
with
202 additions
and
104 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include::cases.asciidoc[] | ||
include::setup-cases.asciidoc[leveloffset=+1] | ||
include::manage-cases.asciidoc[leveloffset=+1] | ||
include::add-connectors.asciidoc[leveloffset=+1] | ||
include::add-connectors.asciidoc[leveloffset=+1] |
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
53 changes: 53 additions & 0 deletions
53
x-pack/test/screenshot_creation/apps/response_ops_docs/stack_cases/custom_fields.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,53 @@ | ||
/* | ||
* 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 ({ getPageObject, getService }: FtrProviderContext) { | ||
const cases = getService('cases'); | ||
const commonScreenshots = getService('commonScreenshots'); | ||
const find = getService('find'); | ||
const header = getPageObject('header'); | ||
const testSubjects = getService('testSubjects'); | ||
const screenshotDirectories = ['response_ops_docs', 'stack_cases']; | ||
|
||
describe('add custom fields', function () { | ||
it('case settings screenshot', async () => { | ||
await cases.navigation.navigateToApp(); | ||
await cases.navigation.navigateToConfigurationPage(); | ||
await testSubjects.click('add-custom-field'); | ||
await commonScreenshots.takeScreenshot( | ||
'cases-custom-fields-add', | ||
screenshotDirectories, | ||
1400, | ||
600 | ||
); | ||
await testSubjects.setValue('custom-field-label-input', 'my-field'); | ||
await testSubjects.click('custom-field-flyout-save'); | ||
await commonScreenshots.takeScreenshot( | ||
'cases-custom-fields-view', | ||
screenshotDirectories, | ||
1400, | ||
1024 | ||
); | ||
await cases.navigation.navigateToApp(); | ||
await cases.casesTable.waitForCasesToBeListed(); | ||
await cases.casesTable.goToFirstListedCase(); | ||
await header.waitUntilLoadingHasFinished(); | ||
await find.byCssSelector('[data-test-subj="no-custom-field-value"]'); | ||
await commonScreenshots.takeScreenshot( | ||
'cases-custom-fields', | ||
screenshotDirectories, | ||
1400, | ||
1400 | ||
); | ||
await cases.navigation.navigateToApp(); | ||
await testSubjects.click('createNewCaseBtn'); | ||
await commonScreenshots.takeScreenshot('cases-create', screenshotDirectories, 1400, 1900); | ||
await testSubjects.click('create-case-cancel'); | ||
}); | ||
}); | ||
} |
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
Oops, something went wrong.