mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 00:43:38 +08:00
20 lines
549 B
JavaScript
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");
|
|
});
|
|
}
|
|
});
|