From 08ad25f67773a2b15ea7b120a5c6878a58c73ef1 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 8 Jun 2018 21:53:45 -0700 Subject: [PATCH] tests: improve flakiness in basic timeline spec (#378) --- tests/spec/003-basic-timeline-spec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/spec/003-basic-timeline-spec.js b/tests/spec/003-basic-timeline-spec.js index c89d149..4521f77 100644 --- a/tests/spec/003-basic-timeline-spec.js +++ b/tests/spec/003-basic-timeline-spec.js @@ -13,6 +13,8 @@ fixture`003-basic-timeline-spec.js` test('Shows the home timeline', async t => { await loginAsFoobar(t) await t + .expect(getUrl()).eql('http://localhost:4002/') + .expect(getNthStatus(0).exists).ok({timeout: 30000}) .hover(getNthStatus(0)) .expect(getFirstVisibleStatus().exists).ok() .expect(getFirstVisibleStatus().hasAttribute('aria-setsize')).ok() @@ -26,6 +28,8 @@ test('Shows the home timeline', async t => { test('Shows notifications', async t => { await loginAsFoobar(t) await t + .expect(getUrl()).eql('http://localhost:4002/') + .expect(getNthStatus(0).exists).ok({timeout: 30000}) .click(notificationsNavButton) .expect(getUrl()).contains('/notifications') @@ -35,6 +39,8 @@ test('Shows notifications', async t => { test('Shows the local timeline', async t => { await loginAsFoobar(t) await t + .expect(getUrl()).eql('http://localhost:4002/') + .expect(getNthStatus(0).exists).ok({timeout: 30000}) .click(localTimelineNavButton) .expect(getUrl()).contains('/local') @@ -44,6 +50,8 @@ test('Shows the local timeline', async t => { test('Shows the federated timeline', async t => { await loginAsFoobar(t) await t + .expect(getUrl()).eql('http://localhost:4002/') + .expect(getNthStatus(0).exists).ok({timeout: 30000}) .click(communityNavButton) .expect(getUrl()).contains('/community') .click($('a').withText('Federated')) @@ -55,6 +63,8 @@ test('Shows the federated timeline', async t => { test('Shows favorites', async t => { await loginAsFoobar(t) await t + .expect(getUrl()).eql('http://localhost:4002/') + .expect(getNthStatus(0).exists).ok({timeout: 30000}) .click(communityNavButton) .expect(getUrl()).contains('/community') .click($('a').withText('Favorites'))