FIX: Selecting & moving posts not working on megatopics.

This commit is contained in:
Guo Xiang Tan
2018-07-13 11:12:35 +08:00
parent 18e281606a
commit 409a30ce1c
4 changed files with 38 additions and 5 deletions

View File

@@ -252,6 +252,11 @@ QUnit.test("selecting posts", async assert => {
"it should show the multi select menu"
);
assert.ok(
exists(".select-all"),
"it should allow users to select all the posts"
);
await click(".toggle-admin-menu");
assert.ok(

View File

@@ -123,6 +123,16 @@ QUnit.test("selectedAllPosts", function(assert) {
controller.get("selectedAllPosts"),
"all posts (including filtered posts) are selected"
);
model.setProperties({
"postStream.isMegaTopic": true,
posts_count: 1
});
assert.ok(
controller.get("selectedAllPosts"),
"it uses the topic's post count for megatopics"
);
});
QUnit.test("selectedPostsUsername", function(assert) {