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