mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 09:14:48 +08:00
UX: Consolidation group manangement into a single tab.
This commit is contained in:
@ -9,11 +9,6 @@ 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'
|
||||
@ -34,11 +29,6 @@ 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'
|
||||
@ -50,23 +40,4 @@ QUnit.test("Viewing Members as an admin user", assert => {
|
||||
'it should display the right filter placehodler'
|
||||
);
|
||||
});
|
||||
|
||||
selectKit('.group-navigation-dropdown').expand().selectRowByValue('manageMembership');
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(
|
||||
count('.group-membership') === 1,
|
||||
'it should display the right modal'
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
count('#group-membership-user-selector') === 1,
|
||||
'it should display the user selector'
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
count(".group-membership-make-owner input[type='checkbox']") === 1,
|
||||
'it should display the input to set users as owners'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user