From ddd565c708cfdc2bbbaf3e789da71760dca0c9d1 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Mon, 15 Feb 2021 16:45:51 -0800 Subject: [PATCH] test: fix flakey notification test (#1958) --- tests/spec/125-notification-timeline-filters.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/spec/125-notification-timeline-filters.js b/tests/spec/125-notification-timeline-filters.js index 567a40f9..260c3d23 100644 --- a/tests/spec/125-notification-timeline-filters.js +++ b/tests/spec/125-notification-timeline-filters.js @@ -43,6 +43,7 @@ test('Notification timeline filters correctly affect counts - favs', async t => await loginAsFoobar(t) await t .expect(getNthStatusContent(1).innerText).contains('I do not care if you fav this') + await sleep(500) await favoriteStatusAs('admin', statusId) await t .expect(notificationBadge.innerText).eql('1', { timeout }) @@ -62,6 +63,7 @@ test('Notification timeline filters correctly affect counts - favs', async t => await loginAsFoobar(t) await t .expect(getNthStatusContent(1).exists).ok() + await sleep(500) await postAs('admin', 'hey yo @foobar') await t .expect(notificationBadge.innerText).eql('1', { timeout }) @@ -81,6 +83,7 @@ test('Notification timeline filters correctly affect counts - follows', async t await loginAsFoobar(t) await t .expect(getNthStatusContent(1).exists).ok() + await sleep(500) await followAs('ExternalLinks', 'foobar') await t .expect(notificationBadge.innerText).eql('1', { timeout })