Skip to content
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

[DOCS][Cases] Automate more screenshots for cases #188697

Merged
merged 3 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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