FEATURE: Add request membership button for allowed groups.

This commit is contained in:
Guo Xiang Tan
2016-12-12 22:46:45 +08:00
parent 664feca199
commit da7009a968
17 changed files with 172 additions and 16 deletions

View File

@@ -53,5 +53,19 @@ test("Admin Browsing Groups", () => {
ok(find('.edit-group-bio').length === 1, 'it should display group bio input');
ok(find('.edit-group-title').length === 1, 'it should display group title input');
ok(find('.edit-group-public').length === 1, 'it should display group public input');
ok(find('.edit-group-allow-membership-requests').length === 1, 'it should display group allow_membership_requets input');
});
click('.edit-group-public');
andThen(() => {
ok(find('.edit-group-allow-membership-requests[disabled]').length === 1, 'it should disable group allow_membership_requets input');
});
click('.edit-group-public');
click('.edit-group-allow-membership-requests');
andThen(() => {
ok(find('.edit-group-public[disabled]').length === 1, 'it should disable group public input');
});
});