UX: New group membership management workflow.

https://meta.discourse.org/t/adding-owners-members-ux-is-inconsistent-and-misleading/58084
This commit is contained in:
Guo Xiang Tan
2018-03-26 14:30:37 +08:00
parent da6c268e56
commit 35745166b5
18 changed files with 218 additions and 60 deletions

View File

@@ -9,6 +9,11 @@ QUnit.test("Viewing Members as anon user", assert => {
assert.ok(count('.avatar-flair .fa-adjust') === 1, "it displays the group's avatar flair");
assert.ok(count('.group-members tr') > 0, "it lists group members");
assert.ok(
count('.group-navigation-dropdown') === 0,
'it should not display the group navigation dropdown menu'
);
assert.ok(
count('.group-member-dropdown') === 0,
'it does not allow anon user to manage group members'
@@ -29,6 +34,11 @@ QUnit.test("Viewing Members as an admin user", assert => {
visit("/groups/discourse");
andThen(() => {
assert.ok(
count('.group-navigation-dropdown') === 1,
'it should display the group navigation dropdown menu'
);
assert.ok(
count('.group-member-dropdown') > 0,
'it allows admin user to manage group members'