forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS] Automate Observability and Security case setting screenshots (e…
- Loading branch information
Showing
5 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
x-pack/test/screenshot_creation/apps/response_ops_docs/observability_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,40 @@ | ||
/* | ||
* 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 ({ getPageObjects, getService }: FtrProviderContext) { | ||
const cases = getService('cases'); | ||
const commonScreenshots = getService('commonScreenshots'); | ||
const pageObjects = getPageObjects(['common', 'header']); | ||
const screenshotDirectories = ['response_ops_docs', 'observability_cases']; | ||
const testSubjects = getService('testSubjects'); | ||
|
||
describe('Observability case settings and custom fields', function () { | ||
it('case settings screenshots', async () => { | ||
await cases.navigation.navigateToApp('observability/cases', 'cases-all-title'); | ||
await pageObjects.header.waitUntilLoadingHasFinished(); | ||
await testSubjects.click('configure-case-button'); | ||
await commonScreenshots.takeScreenshot('cases-settings', screenshotDirectories); | ||
await testSubjects.click('add-custom-field'); | ||
await commonScreenshots.takeScreenshot( | ||
'cases-add-custom-field', | ||
screenshotDirectories, | ||
1400, | ||
600 | ||
); | ||
await testSubjects.setValue('custom-field-label-input', 'my-field'); | ||
await testSubjects.click('custom-field-flyout-save'); | ||
await commonScreenshots.takeScreenshot( | ||
'cases-custom-field-settings', | ||
screenshotDirectories, | ||
1400, | ||
1024 | ||
); | ||
}); | ||
}); | ||
} |
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
39 changes: 39 additions & 0 deletions
39
x-pack/test/screenshot_creation/apps/response_ops_docs/security_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,39 @@ | ||
/* | ||
* 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 pageObjects = getPageObjects(['common', 'header']); | ||
const screenshotDirectories = ['response_ops_docs', 'security_cases']; | ||
const testSubjects = getService('testSubjects'); | ||
|
||
describe('Security case settings and custom fields', function () { | ||
it('case settings screenshots', async () => { | ||
await pageObjects.common.navigateToApp('security', { path: 'cases' }); | ||
await pageObjects.header.waitUntilLoadingHasFinished(); | ||
await testSubjects.click('configure-case-button'); | ||
await commonScreenshots.takeScreenshot('cases-settings', screenshotDirectories); | ||
await testSubjects.click('add-custom-field'); | ||
await commonScreenshots.takeScreenshot( | ||
'cases-add-custom-field', | ||
screenshotDirectories, | ||
1400, | ||
600 | ||
); | ||
await testSubjects.setValue('custom-field-label-input', 'my-field'); | ||
await testSubjects.click('custom-field-flyout-save'); | ||
await commonScreenshots.takeScreenshot( | ||
'cases-custom-field-settings', | ||
screenshotDirectories, | ||
1400, | ||
1024 | ||
); | ||
}); | ||
}); | ||
} |
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