mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 21:19:32 +08:00
FIX: Consolidated like notifications links to wrong user on user page.
This commit is contained in:
@ -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 => {
|
||||
|
Reference in New Issue
Block a user