FIX: ensures group automatic membership dropdown works (#9022)

This commit also fixes a deprecation warning as the previous  component was overriding a computed property from the group model.

Finally a test has been added as this is the only place where we use list-setting outside of the settings, this was highly subject to regressions.
This commit is contained in:
Joffrey JAFFEUX
2020-02-21 22:14:24 +01:00
committed by GitHub
parent 90e701b470
commit 69a2ad626b
3 changed files with 22 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import { acceptance, updateCurrentUser } from "helpers/qunit-helpers";
import selectKit from "helpers/select-kit-helper";
acceptance("Managing Group Membership", {
loggedIn: true
@@ -65,6 +66,13 @@ QUnit.test("As an admin", async assert => {
1,
"it should display the membership request template field"
);
const emailDomains = selectKit(".group-form-automatic-membership-automatic");
await emailDomains.expand();
await emailDomains.fillInFilter("foo.com");
await emailDomains.keyboard("enter");
assert.equal(emailDomains.header().value(), "foo.com");
});
QUnit.test("As a group owner", async assert => {