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