From 4c7370de62453bf028115c101a663f32a3438268 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 2 Apr 2024 20:29:03 -0400 Subject: [PATCH] [8.13] [Data Discovery] Unskip tests skipped in #175740 (#178592) (#179878) # Backport This will backport the following commits from `main` to `8.13`: - [[Data Discovery] Unskip tests skipped in #175740 (#178592)](https://github.com/elastic/kibana/pull/178592) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Davis McPhee --- test/functional/apps/discover/group1/_discover.ts | 3 +-- test/functional/apps/discover/group1/_url_state.ts | 3 +-- .../test_suites/common/discover/group1/_discover.ts | 3 +-- .../common/discover/group1/_discover_histogram.ts | 5 ++--- .../common/discover_ml_uptime/discover/index.ts | 8 +++++++- .../discover_ml_uptime/discover/search_source_alert.ts | 3 +-- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/test/functional/apps/discover/group1/_discover.ts b/test/functional/apps/discover/group1/_discover.ts index 290069ac23832a..0210c7d8cc7f25 100644 --- a/test/functional/apps/discover/group1/_discover.ts +++ b/test/functional/apps/discover/group1/_discover.ts @@ -31,8 +31,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { defaultIndex: 'logstash-*', }; - // Failing: See https://github.com/elastic/kibana/issues/176882 - describe.skip('discover test', function describeIndexTests() { + describe('discover test', function describeIndexTests() { before(async function () { log.debug('load kibana index with default index pattern'); await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover'); diff --git a/test/functional/apps/discover/group1/_url_state.ts b/test/functional/apps/discover/group1/_url_state.ts index 95ef40a58698c9..e97ac332e8b6ed 100644 --- a/test/functional/apps/discover/group1/_url_state.ts +++ b/test/functional/apps/discover/group1/_url_state.ts @@ -35,8 +35,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { hideAnnouncements: true, }; - // Failing: See https://github.com/elastic/kibana/issues/176882 - describe.skip('discover URL state', () => { + describe('discover URL state', () => { before(async function () { log.debug('load kibana index with default index pattern'); await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover'); diff --git a/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover.ts b/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover.ts index db62c6b1c89738..1b5b3c8f6ff528 100644 --- a/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover.ts +++ b/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover.ts @@ -31,8 +31,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { defaultIndex: 'logstash-*', }; - // Failing: See https://github.com/elastic/kibana/issues/176882 - describe.skip('discover test', function describeIndexTests() { + describe('discover test', function describeIndexTests() { before(async function () { log.debug('load kibana index with default index pattern'); await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover'); diff --git a/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover_histogram.ts b/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover_histogram.ts index a02365ed056e82..7267ab20ace43e 100644 --- a/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover_histogram.ts +++ b/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover_histogram.ts @@ -32,8 +32,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const log = getService('log'); const queryBar = getService('queryBar'); - // Failing: See https://github.com/elastic/kibana/issues/176882 - describe.skip('discover histogram', function describeIndexTests() { + describe('discover histogram', function describeIndexTests() { before(async () => { await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional'); await esArchiver.load('test/functional/fixtures/es_archiver/long_window_logstash'); @@ -86,7 +85,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.discover.brushHistogram(); await PageObjects.discover.waitUntilSearchingHasFinished(); - renderingCountInc = 3; // Multiple renders caused by https://github.com/elastic/kibana/issues/177055 + renderingCountInc = 4; // Multiple renders caused by https://github.com/elastic/kibana/issues/177055 await retry.waitFor('chart rendering complete after being brushed', async () => { const actualCount = await elasticChart.getVisualizationRenderingCount(); const expectedCount = prevRenderingCount + renderingCountInc * 2; diff --git a/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/index.ts b/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/index.ts index f4f8c8c550cb23..e32235185df6de 100644 --- a/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/index.ts @@ -6,8 +6,14 @@ */ import { FtrProviderContext } from '../../../../ftr_provider_context'; -export default ({ loadTestFile }: FtrProviderContext) => { +export default ({ getService, loadTestFile }: FtrProviderContext) => { + const browser = getService('browser'); + describe('Discover alerting', function () { + before(async function () { + await browser.setWindowSize(1600, 1200); + }); + loadTestFile(require.resolve('./search_source_alert')); }); }; diff --git a/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts b/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts index 9c654b518d6f26..1a82e4b73b2be3 100644 --- a/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts +++ b/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts @@ -341,8 +341,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { expect(await titleElem.getAttribute('value')).to.equal(dataView); }; - // Failing: See https://github.com/elastic/kibana/issues/176882 - describe.skip('Search source Alert', () => { + describe('Search source Alert', () => { before(async () => { await security.testUser.setRoles(['discover_alert']); await PageObjects.svlCommonPage.loginAsAdmin();