mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: migrate components tests to async/await
This commit is contained in:
@ -4,16 +4,14 @@ moduleForComponent("categories-admin-dropdown", { integration: true });
|
||||
componentTest("default", {
|
||||
template: "{{categories-admin-dropdown}}",
|
||||
|
||||
test(assert) {
|
||||
async 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();
|
||||
await subject.expandAwait();
|
||||
|
||||
andThen(() => {
|
||||
assert.equal(subject.rowByValue("create").name(), "New Category");
|
||||
});
|
||||
assert.equal(subject.rowByValue("create").name(), "New Category");
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user