discourse/test/javascripts/components/categories-admin-dropdown-test.js.es6
2017-11-23 18:24:26 +01:00

20 lines
549 B
JavaScript

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