FEATURE: Send notification when member was accepted to group. (#7614)

This commit is contained in:
Bianca Nenciu
2019-08-06 13:29:46 +03:00
committed by GitHub
parent b60b2a342f
commit 37e7998a82
9 changed files with 104 additions and 5 deletions

View File

@ -21,7 +21,7 @@ widgetTest("notifications", {
test(assert) {
const $links = find(".notifications li a");
assert.equal($links.length, 2);
assert.equal($links.length, 5);
assert.ok($links[0].href.includes("/t/a-slug/123"));
assert.ok(
@ -36,6 +36,32 @@ widgetTest("notifications", {
count: 5
})}`
);
assert.ok($links[2].href.includes("/u/test2/messages/group/test"));
assert.ok(
$links[2].innerHTML.includes(
I18n.t("notifications.group_message_summary", {
count: 5,
group_name: "test"
})
)
);
assert.ok($links[3].href.includes("/u/test1"));
assert.ok(
$links[3].innerHTML.includes(
I18n.t("notifications.invitee_accepted", { username: "test1" })
)
);
assert.ok($links[4].href.includes("/g/test"));
assert.ok(
$links[4].innerHTML.includes(
I18n.t("notifications.membership_request_accepted", {
group_name: "test"
})
)
);
}
});