mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
# Backport This will backport the following commits from `main` to `8.8`: - [[DOCS] Automate maintenance window screenshot (#157816)](https://github.com/elastic/kibana/pull/157816) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lisa Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2023-05-23T16:26:16Z","message":"[DOCS] Automate maintenance window screenshot (#157816)","sha":"877e2ac51c105994663ad88fd66c5df1e8376546","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","docs","backport:prev-minor","v8.8.0","v8.9.0"],"number":157816,"url":"https://github.com/elastic/kibana/pull/157816","mergeCommit":{"message":"[DOCS] Automate maintenance window screenshot (#157816)","sha":"877e2ac51c105994663ad88fd66c5df1e8376546"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/157816","number":157816,"mergeCommit":{"message":"[DOCS] Automate maintenance window screenshot (#157816)","sha":"877e2ac51c105994663ad88fd66c5df1e8376546"}}]}] BACKPORT--> Co-authored-by: Lisa Cawley <lcawley@elastic.co>
This commit is contained in:
parent
8de126b1f2
commit
1d2f1bc5ba
5 changed files with 54 additions and 1 deletions
|
@ -250,7 +250,7 @@ export const CreateMaintenanceWindowForm = React.memo<CreateMaintenanceWindowFor
|
|||
responsive={false}
|
||||
>
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiButtonEmpty onClick={onCancel} size="s">
|
||||
<EuiButtonEmpty onClick={onCancel} size="s" data-test-subj="cancelMaintenanceWindow">
|
||||
{i18n.CANCEL}
|
||||
</EuiButtonEmpty>
|
||||
</EuiFlexItem>
|
||||
|
|
|
@ -178,6 +178,9 @@ export default async function ({ readConfigFile }) {
|
|||
triggersActions: {
|
||||
pathname: '/app/management/insightsAndAlerting/triggersActions',
|
||||
},
|
||||
maintenanceWindows: {
|
||||
pathname: '/app/management/insightsAndAlerting/maintenanceWindows',
|
||||
},
|
||||
},
|
||||
|
||||
// choose where screenshots should be saved
|
||||
|
|
|
@ -42,6 +42,7 @@ export default function ({ getPageObject, getService, loadTestFile }: FtrProvide
|
|||
loadTestFile(require.resolve('./stack_alerting'));
|
||||
loadTestFile(require.resolve('./stack_cases'));
|
||||
loadTestFile(require.resolve('./stack_connectors'));
|
||||
loadTestFile(require.resolve('./maintenance_windows'));
|
||||
loadTestFile(require.resolve('./observability_cases'));
|
||||
});
|
||||
}
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* 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 find = getService('find');
|
||||
const pageObjects = getPageObjects(['common', 'header']);
|
||||
const screenshotDirectories = ['response_ops_docs', 'maintenance_windows'];
|
||||
const testSubjects = getService('testSubjects');
|
||||
|
||||
describe('create maintenance window', function () {
|
||||
it('create window screenshot', async () => {
|
||||
await pageObjects.common.navigateToApp('maintenanceWindows');
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
const createButton = await find.byCssSelector(
|
||||
'[data-test-subj="mw-empty-prompt"] .euiButton'
|
||||
);
|
||||
await createButton.click();
|
||||
await commonScreenshots.takeScreenshot(
|
||||
'create-maintenance-window',
|
||||
screenshotDirectories,
|
||||
1400,
|
||||
1024
|
||||
);
|
||||
const cancelButton = await testSubjects.find('cancelMaintenanceWindow');
|
||||
await cancelButton.click();
|
||||
});
|
||||
});
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* 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 ({ loadTestFile }: FtrProviderContext) {
|
||||
describe('maintenance windows', function () {
|
||||
loadTestFile(require.resolve('./create_window'));
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue