add a sleep to the test

This commit is contained in:
Nolan Lawson 2018-03-19 20:10:20 -07:00
parent f6d1e5079a
commit 111d6201f3

View file

@ -24,6 +24,7 @@ test('fills in a status posted while away from timeline', async t => {
.click(localTimelineNavButton)
.expect(getNthStatus(0).innerText).contains('posted this while you were away!', {timeout})
.expect(getNthStatus(1).innerText).contains('heyo', {timeout})
await sleep(2000)
await postAs('admin', 'posted this while you were watching')
await t.expect(getNthStatus(0).innerText).contains('posted this while you were watching', {timeout})
})