mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Move requested_group_id custom field from post to topic (#9127)
Follow-up-to accbbded15
This commit is contained in:
@@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user