mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 20:42:44 -05:00
34 lines
861 B
JavaScript
34 lines
861 B
JavaScript
integration("User");
|
|
|
|
function hasStream() {
|
|
andThen(function() {
|
|
ok(exists('.user-main .about'), 'it has the about section');
|
|
ok(count('.user-stream .item') > 0, 'it has stream items');
|
|
});
|
|
}
|
|
|
|
function hasTopicList() {
|
|
andThen(function() {
|
|
equal(count('.user-stream .item'), 0, "has no stream displayed");
|
|
ok(count('.topic-list tr') > 0, 'it has a topic list');
|
|
});
|
|
}
|
|
|
|
test("Filters", function() {
|
|
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();
|
|
});
|