mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: migrate widgets tests to async/await
This commit is contained in:
@ -46,11 +46,9 @@ widgetTest("collapsed links", {
|
||||
]
|
||||
});
|
||||
},
|
||||
test(assert) {
|
||||
async test(assert) {
|
||||
assert.ok(this.$(".expand-links").length === 1, "collapsed by default");
|
||||
click("a.expand-links");
|
||||
andThen(() => {
|
||||
assert.equal(this.$(".post-links a.track-link").length, 7);
|
||||
});
|
||||
await click("a.expand-links");
|
||||
assert.equal(this.$(".post-links a.track-link").length, 7);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user