From d72c13d42c2055423724be94a75ebfcbd71d9e62 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 6 Mar 2018 20:44:05 -0800 Subject: [PATCH] fix last test --- tests/spec/32-notifications.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/spec/32-notifications.js b/tests/spec/32-notifications.js index cfde9c0..9d7a480 100644 --- a/tests/spec/32-notifications.js +++ b/tests/spec/32-notifications.js @@ -9,8 +9,13 @@ fixture`32-notifications.js` test('shows unread notifications', async t => { await t.useRole(foobarRole) .hover(getNthStatus(0)) + .hover(getNthStatus(2)) + .hover(getNthStatus(4)) + .hover(getNthStatus(5)) .expect(notificationsNavButton.getAttribute('aria-label')).eql('Notifications') - await favoriteStatusAsAdmin('99548061995124415') + let statusId = (await getNthStatus(5).find('.status-relative-date').getAttribute('href')) + .split('/').slice(-1)[0] + await favoriteStatusAsAdmin(statusId) await t .expect(notificationsNavButton.getAttribute('aria-label')).eql('Notifications (1)') .click(notificationsNavButton)