FIX: Consolidated like notifications links to wrong user on user page.

This commit is contained in:
Guo Xiang Tan
2019-01-16 15:55:18 +08:00
parent 27e2b6575b
commit f8db93df5f
4 changed files with 27 additions and 4 deletions

View File

@ -15,6 +15,16 @@ QUnit.test("Messages", async assert => {
QUnit.test("Notifications", async assert => {
await visit("/u/eviltrout/notifications");
assert.ok($("body.user-notifications-page").length, "has the body class");
await visit("/u/test/notifications");
const $links = find(".item.notification a");
assert.ok(
$links[1].href.includes(
"/u/test/notifications/likes-received?acting_username=aquaman"
)
);
});
QUnit.test("Root URL - Viewing Self", async assert => {