mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
# Backport This will backport the following commits from `main` to `8.9`: - [[Flaky #118272] Unskip tests (#163319)](https://github.com/elastic/kibana/pull/163319) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2023-08-11T08:32:32Z","message":"[Flaky #118272] Unskip tests (#163319)","sha":"5de69cb567e8f6fde93f09b839710e1ee8a3cc72","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","technical debt","release_note:skip","backport:all-open","v8.10.0"],"number":163319,"url":"https://github.com/elastic/kibana/pull/163319","mergeCommit":{"message":"[Flaky #118272] Unskip tests (#163319)","sha":"5de69cb567e8f6fde93f09b839710e1ee8a3cc72"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/163319","number":163319,"mergeCommit":{"message":"[Flaky #118272] Unskip tests (#163319)","sha":"5de69cb567e8f6fde93f09b839710e1ee8a3cc72"}}]}] BACKPORT--> Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
This commit is contained in:
parent
0d8ff48975
commit
fd28e1182d
1 changed files with 29 additions and 18 deletions
|
@ -16,10 +16,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
let version: string = '';
|
||||
const find = getService('find');
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/118272
|
||||
describe.skip('feature controls saved objects management', () => {
|
||||
describe('feature controls saved objects management', () => {
|
||||
before(async () => {
|
||||
version = await kibanaServer.version.get();
|
||||
// version = await kibanaServer.version.get();
|
||||
// Using the version below instead because we don't need the extra `-SNAPSHOT` bit
|
||||
version = (await kibanaServer.status.get()).version.number;
|
||||
await kibanaServer.importExport.load(
|
||||
'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/feature_controls/security'
|
||||
);
|
||||
|
@ -76,24 +77,17 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
it('shows all saved objects', async () => {
|
||||
const objects = await PageObjects.savedObjects.getRowTitles();
|
||||
expect(objects).to.eql([
|
||||
`Advanced Settings [${version}]`,
|
||||
'A Dashboard',
|
||||
'logstash-*',
|
||||
'A Pie',
|
||||
'A Dashboard',
|
||||
`Global Settings [${version}]`,
|
||||
`Advanced Settings [${version}]`,
|
||||
]);
|
||||
});
|
||||
|
||||
it('can view all saved objects in applications', async () => {
|
||||
const bools = await PageObjects.savedObjects.getTableSummary();
|
||||
expect(bools).to.eql([
|
||||
{
|
||||
title: `Advanced Settings [${version}]`,
|
||||
canViewInApp: false,
|
||||
},
|
||||
{
|
||||
title: 'A Dashboard',
|
||||
canViewInApp: true,
|
||||
},
|
||||
{
|
||||
title: 'logstash-*',
|
||||
canViewInApp: true,
|
||||
|
@ -102,6 +96,18 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
title: 'A Pie',
|
||||
canViewInApp: true,
|
||||
},
|
||||
{
|
||||
title: 'A Dashboard',
|
||||
canViewInApp: true,
|
||||
},
|
||||
{
|
||||
title: `Global Settings [${version}]`,
|
||||
canViewInApp: false,
|
||||
},
|
||||
{
|
||||
title: `Advanced Settings [${version}]`,
|
||||
canViewInApp: false,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
|
@ -195,10 +201,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
it('shows all saved objects', async () => {
|
||||
const objects = await PageObjects.savedObjects.getRowTitles();
|
||||
expect(objects).to.eql([
|
||||
`Advanced Settings [${version}]`,
|
||||
'A Dashboard',
|
||||
'logstash-*',
|
||||
'A Pie',
|
||||
'A Dashboard',
|
||||
`Global Settings [${version}]`,
|
||||
`Advanced Settings [${version}]`,
|
||||
]);
|
||||
});
|
||||
|
||||
|
@ -206,7 +213,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
const bools = await PageObjects.savedObjects.getTableSummary();
|
||||
expect(bools).to.eql([
|
||||
{
|
||||
title: `Advanced Settings [${version}]`,
|
||||
title: 'logstash-*',
|
||||
canViewInApp: false,
|
||||
},
|
||||
{
|
||||
title: 'A Pie',
|
||||
canViewInApp: false,
|
||||
},
|
||||
{
|
||||
|
@ -214,11 +225,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
canViewInApp: false,
|
||||
},
|
||||
{
|
||||
title: 'logstash-*',
|
||||
title: `Global Settings [${version}]`,
|
||||
canViewInApp: false,
|
||||
},
|
||||
{
|
||||
title: 'A Pie',
|
||||
title: `Advanced Settings [${version}]`,
|
||||
canViewInApp: false,
|
||||
},
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue