Skip to content

Commit

Permalink
[DOCS][Cases] Automate more screenshots for cases (#188697)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl authored Jul 23, 2024
1 parent ebdc6be commit ee38bdc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
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',
Expand All @@ -29,12 +28,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
);
await testSubjects.setValue('custom-field-label-input', 'my-field');
await testSubjects.click('common-flyout-save');
await commonScreenshots.takeScreenshot(
'cases-custom-field-settings',
screenshotDirectories,
1400,
1024
);
await commonScreenshots.takeScreenshot('cases-settings', screenshotDirectories, 1400, 1024);
});
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,5 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
1024
);
});

it('case settings screenshot', async () => {
await cases.navigation.navigateToApp('observability/cases', 'cases-all-title');
await testSubjects.click('configure-case-button');
await commonScreenshots.takeScreenshot('add-case-connector', screenshotDirectories);
});
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ export default function ({ getPageObject, getPageObjects, getService }: FtrProvi
it('case settings screenshots', async () => {
await navigateToCasesApp(getPageObject, getService, owner);
await testSubjects.click('configure-case-button');
await testSubjects.click('add-custom-field');
await svlCommonScreenshots.takeScreenshot(
'observability-cases-custom-fields',
screenshotDirectories,
1400,
700
);
await testSubjects.setValue('custom-field-label-input', 'my-field');
await testSubjects.click('common-flyout-save');
await svlCommonScreenshots.takeScreenshot(
'observability-cases-settings',
screenshotDirectories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ export default function ({ getPageObject, getPageObjects, getService }: FtrProvi
await navigateToCasesApp(getPageObject, getService, owner);
await testSubjects.click('configure-case-button');
await pageObjects.header.waitUntilLoadingHasFinished();
await testSubjects.click('add-custom-field');
await svlCommonScreenshots.takeScreenshot(
'security-cases-custom-fields',
screenshotDirectories,
1400,
700
);
await testSubjects.setValue('custom-field-label-input', 'my-field');
await testSubjects.click('common-flyout-save');
await svlCommonScreenshots.takeScreenshot('security-cases-settings', screenshotDirectories);
await testSubjects.click('add-template');
await svlCommonScreenshots.takeScreenshot(
Expand Down

0 comments on commit ee38bdc

Please sign in to comment.