[Metrics UI] Unskip Home Page Functional Test (#98085)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
8de766904d
commit
aa281ffad7
|
@ -5,24 +5,17 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import expect from '@kbn/expect/expect.js';
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { DATES } from './constants';
|
||||
|
||||
const DATE_WITH_DATA = DATES.metricsAndLogs.hosts.withData;
|
||||
const DATE_WITHOUT_DATA = DATES.metricsAndLogs.hosts.withoutData;
|
||||
|
||||
const COMMON_REQUEST_HEADERS = {
|
||||
'kbn-xsrf': 'some-xsrf-token',
|
||||
};
|
||||
|
||||
export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const pageObjects = getPageObjects(['common', 'infraHome']);
|
||||
const supertest = getService('supertest');
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/75724
|
||||
describe.skip('Home page', function () {
|
||||
describe('Home page', function () {
|
||||
this.tags('includeFirefox');
|
||||
before(async () => {
|
||||
await esArchiver.load('empty_kibana');
|
||||
|
@ -54,45 +47,6 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
await pageObjects.infraHome.goToTime(DATE_WITHOUT_DATA);
|
||||
await pageObjects.infraHome.getNoMetricsDataPrompt();
|
||||
});
|
||||
|
||||
it('records telemetry for hosts', async () => {
|
||||
await pageObjects.infraHome.goToTime(DATE_WITH_DATA);
|
||||
await pageObjects.infraHome.getWaffleMap();
|
||||
|
||||
const resp = await supertest
|
||||
.post(`/api/telemetry/v2/clusters/_stats`)
|
||||
.set(COMMON_REQUEST_HEADERS)
|
||||
.set('Accept', 'application/json')
|
||||
.send({
|
||||
unencrypted: true,
|
||||
})
|
||||
.expect(200)
|
||||
.then((res: any) => res.body);
|
||||
|
||||
expect(
|
||||
resp[0].stack_stats.kibana.plugins.infraops.last_24_hours.hits.infraops_hosts
|
||||
).to.be.greaterThan(0);
|
||||
});
|
||||
|
||||
it('records telemetry for docker', async () => {
|
||||
await pageObjects.infraHome.goToTime(DATE_WITH_DATA);
|
||||
await pageObjects.infraHome.getWaffleMap();
|
||||
await pageObjects.infraHome.goToDocker();
|
||||
|
||||
const resp = await supertest
|
||||
.post(`/api/telemetry/v2/clusters/_stats`)
|
||||
.set(COMMON_REQUEST_HEADERS)
|
||||
.set('Accept', 'application/json')
|
||||
.send({
|
||||
unencrypted: true,
|
||||
})
|
||||
.expect(200)
|
||||
.then((res: any) => res.body);
|
||||
|
||||
expect(
|
||||
resp[0].stack_stats.kibana.plugins.infraops.last_24_hours.hits.infraops_docker
|
||||
).to.be.greaterThan(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
|
@ -8,15 +8,19 @@
|
|||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export default ({ loadTestFile }: FtrProviderContext) => {
|
||||
describe('InfraOps app', function () {
|
||||
describe('InfraOps App', function () {
|
||||
this.tags('ciGroup7');
|
||||
loadTestFile(require.resolve('./metrics_anomalies'));
|
||||
loadTestFile(require.resolve('./home_page'));
|
||||
loadTestFile(require.resolve('./feature_controls'));
|
||||
loadTestFile(require.resolve('./log_entry_categories_tab'));
|
||||
loadTestFile(require.resolve('./log_entry_rate_tab'));
|
||||
loadTestFile(require.resolve('./logs_source_configuration'));
|
||||
loadTestFile(require.resolve('./metrics_source_configuration'));
|
||||
loadTestFile(require.resolve('./link_to'));
|
||||
describe('Metrics UI', function () {
|
||||
loadTestFile(require.resolve('./home_page'));
|
||||
loadTestFile(require.resolve('./metrics_source_configuration'));
|
||||
loadTestFile(require.resolve('./metrics_anomalies'));
|
||||
});
|
||||
describe('Logs UI', function () {
|
||||
loadTestFile(require.resolve('./log_entry_categories_tab'));
|
||||
loadTestFile(require.resolve('./log_entry_rate_tab'));
|
||||
loadTestFile(require.resolve('./logs_source_configuration'));
|
||||
loadTestFile(require.resolve('./link_to'));
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
|
@ -22,7 +22,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
|
||||
const traceId = '433b4651687e18be2c6c8e3b11f53d09';
|
||||
|
||||
describe('Infra link-to', function () {
|
||||
describe('link-to Logs', function () {
|
||||
it('redirects to the logs app and parses URL search params correctly', async () => {
|
||||
const location = {
|
||||
hash: '',
|
||||
|
|
Loading…
Reference in a new issue