mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 09:54:46 +08:00
FIX: Regressions in JS test suite
This commit is contained in:
@ -54,14 +54,14 @@ widgetTest("staff menu", {
|
||||
beforeEach() {
|
||||
this.currentUser.setProperties({
|
||||
staff: true,
|
||||
site_flagged_posts_count: 3
|
||||
reviewable_count: 3
|
||||
});
|
||||
},
|
||||
|
||||
test(assert) {
|
||||
assert.ok(find(".admin-link").length);
|
||||
assert.ok(find(".flagged-posts-link").length);
|
||||
assert.equal(find(".flagged-posts").text(), "3");
|
||||
assert.ok(find(".review").length);
|
||||
assert.equal(find(".reviewables").text(), "3");
|
||||
assert.ok(!find(".settings-link").length);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user