mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-11 09:45:24 +01:00
a17948cf99
Fixes #1223 Fixes #1224
23 lines
750 B
JavaScript
23 lines
750 B
JavaScript
import {
|
|
getUrl, notificationsTabAll, notificationsTabMentions,
|
|
notificationsNavButton, validateTimeline
|
|
} from '../utils'
|
|
import { loginAsFoobar } from '../roles'
|
|
import { notificationsMentions, notifications } from '../fixtures'
|
|
|
|
fixture`033-notification-mentions.js`
|
|
.page`http://localhost:4002`
|
|
|
|
test('Shows notification mentions', async t => {
|
|
await loginAsFoobar(t)
|
|
await t
|
|
.click(notificationsNavButton)
|
|
.expect(getUrl()).match(/\/notifications$/)
|
|
.click(notificationsTabMentions)
|
|
.expect(getUrl()).match(/\/notifications\/mentions$/)
|
|
await validateTimeline(t, notificationsMentions)
|
|
await t.click(notificationsTabAll)
|
|
.expect(getUrl()).match(/\/notifications$/)
|
|
await validateTimeline(t, notifications)
|
|
})
|