DEV: Move requested_group_id custom field from post to topic (#9127)

Follow-up-to accbbded15
This commit is contained in:
Bianca Nenciu
2020-03-24 11:12:52 +02:00
committed by GitHub
parent bef8468510
commit d8640fd042
13 changed files with 71 additions and 56 deletions

View File

@@ -922,3 +922,18 @@ widgetTest("post notice - with name", {
);
}
});
widgetTest("show group request in post", {
template: '{{mount-widget widget="post" args=args}}',
beforeEach() {
this.set("args", {
username: "foo",
requestedGroupName: "testGroup"
});
},
test(assert) {
const link = find(".group-request a");
assert.equal(link.text().trim(), I18n.t("groups.requests.handle"));
assert.equal(link.attr("href"), "/g/testGroup/requests?filter=foo");
}
});