Allow multiple groups which can vote when creating a poll (#10015)

* FEATURE: Allow multiple groups which can vote when creating a poll

* DEV: Fix select-kit deprecations

* DEV: Fix lint
This commit is contained in:
Bianca Nenciu
2020-06-12 14:52:32 +03:00
committed by GitHub
parent 111877db1f
commit ff6811ceb8
6 changed files with 36 additions and 29 deletions

View File

@ -86,10 +86,10 @@ QUnit.test("will clear unsaved groups when switching user", async assert => {
"the name should be correct"
);
const groupSelector = selectKit(".admin-group-selector");
await groupSelector.expand();
await groupSelector.selectRowByValue(42);
assert.equal(groupSelector.header().value(), 42, "group should be set");
const groupChooser = selectKit(".group-chooser");
await groupChooser.expand();
await groupChooser.selectRowByValue(42);
assert.equal(groupChooser.header().value(), 42, "group should be set");
await visit("/admin/users/1/eviltrout");
@ -102,7 +102,7 @@ QUnit.test("will clear unsaved groups when switching user", async assert => {
);
assert.equal(
find('.admin-group-selector span[title="Macdonald"]').length,
find('.group-chooser span[title="Macdonald"]').length,
0,
"group should not be set"
);