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'))