forked from cybrespace/pinafore
fix last test
This commit is contained in:
parent
92c59a18e4
commit
d72c13d42c
|
@ -9,8 +9,13 @@ fixture`32-notifications.js`
|
||||||
test('shows unread notifications', async t => {
|
test('shows unread notifications', async t => {
|
||||||
await t.useRole(foobarRole)
|
await t.useRole(foobarRole)
|
||||||
.hover(getNthStatus(0))
|
.hover(getNthStatus(0))
|
||||||
|
.hover(getNthStatus(2))
|
||||||
|
.hover(getNthStatus(4))
|
||||||
|
.hover(getNthStatus(5))
|
||||||
.expect(notificationsNavButton.getAttribute('aria-label')).eql('Notifications')
|
.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
|
await t
|
||||||
.expect(notificationsNavButton.getAttribute('aria-label')).eql('Notifications (1)')
|
.expect(notificationsNavButton.getAttribute('aria-label')).eql('Notifications (1)')
|
||||||
.click(notificationsNavButton)
|
.click(notificationsNavButton)
|
||||||
|
|
Loading…
Reference in New Issue