Interface for reviewing queued posts

This commit is contained in:
Robin Ward
2015-04-10 17:00:50 -04:00
parent f1ede42569
commit 96d2c5069b
21 changed files with 219 additions and 17 deletions

View File

@ -0,0 +1,29 @@
import { acceptance } from "helpers/qunit-helpers";
acceptance("Queued Posts", { loggedIn: true });
test("approve a post", () => {
visit("/queued-posts");
andThen(() => {
ok(exists('.queued-post'), 'it has posts listed');
});
click('.queued-post:eq(0) button.approve');
andThen(() => {
ok(!exists('.queued-post'), 'it removes the post');
});
});
test("reject a post", () => {
visit("/queued-posts");
andThen(() => {
ok(exists('.queued-post'), 'it has posts listed');
});
click('.queued-post:eq(0) button.reject');
andThen(() => {
ok(!exists('.queued-post'), 'it removes the post');
});
});