From 5b412fbd2669fc83c40ebdd98caea44e3ce169f5 Mon Sep 17 00:00:00 2001 From: Tim Sullivan Date: Thu, 2 Jan 2020 15:25:54 -0700 Subject: [PATCH] [Test/Newsfeed] Re-enable test and add news item to be filtered (#53905) --- .../plugins/newsfeed/newsfeed_simulation.ts | 14 +++++++++++++- test/functional/apps/home/_newsfeed.ts | 3 +-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/test/common/fixtures/plugins/newsfeed/newsfeed_simulation.ts b/test/common/fixtures/plugins/newsfeed/newsfeed_simulation.ts index 2a7ea3793324d..4bf92868b0eca 100644 --- a/test/common/fixtures/plugins/newsfeed/newsfeed_simulation.ts +++ b/test/common/fixtures/plugins/newsfeed/newsfeed_simulation.ts @@ -88,7 +88,7 @@ const mockNewsfeed = (version: string) => ({ badge: null, image_url: null, publish_on: '2019-06-21T00:00:00', - expire_on: '2019-12-31T00:00:00', + expire_on: '2040-01-31T00:00:00', hash: '39ca7d409c7eb25f4c69a5a6a11309b2f5ced7ca3f9b3a0109517126e0fd91ca', }, { @@ -100,6 +100,18 @@ const mockNewsfeed = (version: string) => ({ badge: null, image_url: null, publish_on: '2019-06-21T00:00:00', + expire_on: '2040-01-31T00:00:00', + hash: 'db445c9443eb50ea2eb15f20edf89cf0f7dac2b058b11cafc2c8c288b6e4ce2a', + }, + { + title: { en: 'This item is expired!' }, + description: { en: 'This should not show up.' }, + link_text: { en: 'Generic feed-viewer could go here' }, + link_url: { en: 'https://feeds-staging.elastic.co' }, + languages: null, + badge: null, + image_url: null, + publish_on: '2019-06-21T00:00:00', expire_on: '2019-12-31T00:00:00', hash: 'db445c9443eb50ea2eb15f20edf89cf0f7dac2b058b11cafc2c8c288b6e4ce2a', }, diff --git a/test/functional/apps/home/_newsfeed.ts b/test/functional/apps/home/_newsfeed.ts index ca78a4c7ddfdb..99c6f142f56ab 100644 --- a/test/functional/apps/home/_newsfeed.ts +++ b/test/functional/apps/home/_newsfeed.ts @@ -25,8 +25,7 @@ export default function({ getService, getPageObjects }: FtrProviderContext) { const globalNav = getService('globalNav'); const PageObjects = getPageObjects(['common', 'newsfeed']); - // Failing: https://github.com/elastic/kibana/issues/53860 - describe.skip('Newsfeed', () => { + describe('Newsfeed', () => { before(async () => { await PageObjects.newsfeed.resetPage(); });