discourse/test/javascripts/components/categories-admin-dropdown-test.js.es6
2018-10-02 15:20:11 -04:00

17 lines
427 B
JavaScript

import componentTest from "helpers/component-test";
moduleForComponent("categories-admin-dropdown", { integration: true });
componentTest("default", {
template: "{{categories-admin-dropdown}}",
async test(assert) {
const subject = selectKit();
assert.equal(subject.el().find(".d-icon-bars").length, 1);
await subject.expand();
assert.equal(subject.rowByValue("create").name(), "New Category");
}
});