mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Users can see their pending posts
This commit is contained in:
parent
26693c16ac
commit
5bf8c31af4
17 changed files with 225 additions and 101 deletions
41
test/javascripts/acceptance/user-anonymous-test.js.es6
Normal file
41
test/javascripts/acceptance/user-anonymous-test.js.es6
Normal file
|
@ -0,0 +1,41 @@
|
|||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("User Anonymous");
|
||||
|
||||
export function hasStream() {
|
||||
andThen(() => {
|
||||
ok(exists('.user-main .about'), 'it has the about section');
|
||||
ok(count('.user-stream .item') > 0, 'it has stream items');
|
||||
});
|
||||
}
|
||||
|
||||
function hasTopicList() {
|
||||
andThen(() => {
|
||||
equal(count('.user-stream .item'), 0, "has no stream displayed");
|
||||
ok(count('.topic-list tr') > 0, 'it has a topic list');
|
||||
});
|
||||
}
|
||||
|
||||
test("Filters", () => {
|
||||
expect(14);
|
||||
|
||||
visit("/users/eviltrout");
|
||||
hasStream();
|
||||
|
||||
visit("/users/eviltrout/activity/topics");
|
||||
hasTopicList();
|
||||
|
||||
visit("/users/eviltrout/activity/posts");
|
||||
hasStream();
|
||||
|
||||
visit("/users/eviltrout/activity/replies");
|
||||
hasStream();
|
||||
|
||||
visit("/users/eviltrout/activity/likes-given");
|
||||
hasStream();
|
||||
|
||||
visit("/users/eviltrout/activity/likes-received");
|
||||
hasStream();
|
||||
|
||||
visit("/users/eviltrout/activity/edits");
|
||||
hasStream();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue