From 8c3145ea5cc9021a046dedbccd5a6c08825f2efe 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 0019b817b72d8..35d7ac8adefa5 100644 --- a/test/functional/apps/home/_newsfeed.ts +++ b/test/functional/apps/home/_newsfeed.ts @@ -24,8 +24,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(); });