mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[DOCS] Fix automated screenshots (#178445)
This commit is contained in:
parent
50889e0e27
commit
6404deebf5
5 changed files with 10 additions and 12 deletions
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue