From 45866085873964a1f0fd20f5c0e5d0dbd8295b44 Mon Sep 17 00:00:00 2001
From: Timothy Sullivan <tsullivan@elastic.co>
Date: Thu, 2 Jan 2020 13:27:10 -0700
Subject: [PATCH] [Test/Newsfeed] Re-enable test and add news item to be
 filtered

---
 .../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();
     });