[DOCS] Fix automated screenshots (#178445)

This commit is contained in:
Lisa Cawley 2024-03-13 12:09:00 -07:00 committed by GitHub
parent 50889e0e27
commit 6404deebf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 12 deletions

View file

@ -25,7 +25,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'cases-add-custom-field',
screenshotDirectories,
1400,
600
700
);
await testSubjects.setValue('custom-field-label-input', 'my-field');
await testSubjects.click('custom-field-flyout-save');

View file

@ -24,7 +24,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'cases-add-custom-field',
screenshotDirectories,
1400,
600
700
);
await testSubjects.setValue('custom-field-label-input', 'my-field');
await testSubjects.click('custom-field-flyout-save');

View file

@ -101,10 +101,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
// Edit the rule that was created as part of startup
await testSubjects.setValue('ruleSearchField', esQueryRuleName);
await browser.pressKeys(browser.keys.ENTER);
const actionPanel = await testSubjects.find('collapsedItemActions');
await actionPanel.click();
const editRuleMenu = await testSubjects.find('editRule');
await editRuleMenu.click();
const rulesList = await testSubjects.find('rulesList');
const alertRule = await rulesList.findByCssSelector(`[title="${esQueryRuleName}"]`);
await alertRule.click();
const editRule = await testSubjects.find('openEditRuleFlyoutButton');
await editRule.click();
await pageObjects.header.waitUntilLoadingHasFinished();
await commonScreenshots.takeScreenshot(
'es-query-rule-conditions',

View file

@ -23,7 +23,7 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
'cases-custom-fields-add',
screenshotDirectories,
1400,
600
700
);
await testSubjects.setValue('custom-field-label-input', 'my-field');
await testSubjects.click('custom-field-flyout-save');

View file

@ -26,11 +26,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await actions.common.openNewConnectorForm('xmatters');
await testSubjects.setValue('nameInput', 'xMatters test connector');
await commonScreenshots.takeScreenshot('xmatters-connector-basic', screenshotDirectories);
const authentication = await testSubjects.find('button-group');
// a radio button consists of a div tag that contains an input, a div, and a label
// we can't click the input directly, need to click the label
const label = await authentication.findByCssSelector('label[title="URL Authentication"]');
await label.click();
const auth = await testSubjects.find('URL Authentication');
await auth.click();
await commonScreenshots.takeScreenshot('xmatters-connector-url', screenshotDirectories);
await testSubjects.setValue('secrets.secretsUrl', 'https://example.com');
await testSubjects.click('create-connector-flyout-save-test-btn');