mirror of
https://github.com/discourse/discourse.git
synced 2024-12-17 06:33:42 +08:00
315b9d796d
* better test helper * more reliable tests * more consistent use of data-value/data-name/title/aria-label everywhere: header and rows
20 lines
512 B
JavaScript
20 lines
512 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");
|
|
});
|
|
}
|
|
});
|