discourse/test/javascripts/components/categories-admin-dropdown-test.js.es6
2018-06-15 17:03:24 +02:00

20 lines
514 B
JavaScript

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