mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Allow admins to set users as owners while adding users.
https://meta.discourse.org/t/adding-owners-members-ux-is-inconsistent-and-misleading/58084/9
This commit is contained in:
@@ -50,4 +50,23 @@ 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