[Discover] Unskip security tests (#130083)

This commit is contained in:
Matthias Wilhelm 2022-04-14 12:11:59 +02:00 committed by GitHub
parent adbdf274ce
commit 37ebf93c02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 8 deletions

View file

@ -682,6 +682,7 @@ exports[`Overview when there is no user data view 1`] = `
Object {
"actions": Object {
"elasticAgent": Object {
"data-test-subj": "kbnOverviewAddIntegrations",
"description": "Use Elastic Agent or Beats to collect data and build out Analytics solutions.",
"title": "Add integrations",
},

View file

@ -98,6 +98,7 @@ export const Overview: FC<Props> = ({ newsFetchResult, solutions, features }) =>
defaultMessage:
'Use Elastic Agent or Beats to collect data and build out Analytics solutions.',
}),
'data-test-subj': 'kbnOverviewAddIntegrations',
},
},
docsLink: docLinks.links.kibana.guide,

View file

@ -31,8 +31,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await PageObjects.timePicker.setDefaultAbsoluteRange();
}
// Failing: See https://github.com/elastic/kibana/issues/106631
describe.skip('discover feature controls security', () => {
describe('discover feature controls security', () => {
before(async () => {
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/security'

View file

@ -28,14 +28,12 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await PageObjects.timePicker.setDefaultAbsoluteRange();
}
// Failing: See https://github.com/elastic/kibana/issues/113067
describe.skip('spaces', () => {
describe('spaces', () => {
before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
});
// FLAKY: https://github.com/elastic/kibana/issues/60559
describe.skip('space with no features disabled', () => {
describe('space with no features disabled', () => {
before(async () => {
// we need to load the following in every situation as deleting
// a space deletes all of the associated saved objects
@ -174,13 +172,15 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await spacesService.delete('custom_space_no_index_patterns');
});
it('Navigates to Kibana home rather than index pattern management when no index patterns exist', async () => {
it('Navigates to Kibana Analytics overview when no data views exist', async () => {
await PageObjects.common.navigateToUrl('discover', '', {
basePath: '/s/custom_space_no_index_patterns',
ensureCurrentUrl: false,
shouldUseHashForSubUrl: false,
});
await testSubjects.existOrFail('homeApp', { timeout: config.get('timeouts.waitFor') });
await testSubjects.existOrFail('kbnOverviewAddIntegrations', {
timeout: config.get('timeouts.waitFor'),
});
});
});
});