DEV: refactors select-kit helper to prevent it to leak into global state (#7708)

This commit is contained in:
Joffrey JAFFEUX
2019-06-06 10:47:10 +02:00
committed by GitHub
parent 782da448a2
commit b339d67401
43 changed files with 299 additions and 307 deletions

View File

@ -1,3 +1,4 @@
import selectKit from "helpers/select-kit-helper";
import { acceptance, logIn } from "helpers/qunit-helpers";
acceptance("Group", {
@ -48,7 +49,7 @@ QUnit.test("Anonymous Viewing Group", async assert => {
);
assert.ok(count(".user-stream-item") > 0, "it lists stream items");
await expandSelectKit(".group-dropdown");
await selectKit(".group-dropdown").expand();
assert.equal(
find(".select-kit-row")
@ -70,7 +71,7 @@ QUnit.test("Anonymous Viewing Group", async assert => {
await visit("/g");
await visit("/g/discourse");
await expandSelectKit(".group-dropdown");
await selectKit(".group-dropdown").expand();
assert.equal(
find(".group-dropdown-filter").length,