2019-05-05 00:58:44 +00:00
|
|
|
import {
|
2019-05-25 20:21:36 +00:00
|
|
|
getUrl, notificationsTabAll, notificationsTabMentions,
|
2019-05-05 00:58:44 +00:00
|
|
|
notificationsNavButton, validateTimeline
|
|
|
|
} from '../utils'
|
|
|
|
import { loginAsFoobar } from '../roles'
|
|
|
|
import { notificationsMentions, notifications } from '../fixtures'
|
|
|
|
|
2019-05-25 20:21:36 +00:00
|
|
|
fixture`033-notification-mentions.js`
|
2019-05-05 00:58:44 +00:00
|
|
|
.page`http://localhost:4002`
|
|
|
|
|
2019-05-25 20:21:36 +00:00
|
|
|
test('Shows notification mentions', async t => {
|
2019-05-05 00:58:44 +00:00
|
|
|
await loginAsFoobar(t)
|
|
|
|
await t
|
|
|
|
.click(notificationsNavButton)
|
|
|
|
.expect(getUrl()).match(/\/notifications$/)
|
2019-05-25 20:21:36 +00:00
|
|
|
.click(notificationsTabMentions)
|
2019-05-05 00:58:44 +00:00
|
|
|
.expect(getUrl()).match(/\/notifications\/mentions$/)
|
|
|
|
await validateTimeline(t, notificationsMentions)
|
2019-05-25 20:21:36 +00:00
|
|
|
await t.click(notificationsTabAll)
|
2019-05-05 00:58:44 +00:00
|
|
|
.expect(getUrl()).match(/\/notifications$/)
|
|
|
|
await validateTimeline(t, notifications)
|
|
|
|
})
|