discourse/test/javascripts/acceptance/user-anonymous-test.js.es6

37 lines
911 B
Plaintext
Raw Normal View History

2015-04-22 02:36:46 +08:00
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');
});
}
2016-04-01 05:33:25 +08:00
// 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", () => {
// visit("/users/eviltrout");
// hasStream();
//
// visit("/users/eviltrout/activity/topics");
// hasTopicList();
//
// visit("/users/eviltrout/activity/posts");
// hasStream();
//
// });
//
// test("Restricted Routes", () => {
// visit("/users/eviltrout/preferences");
//
// andThen(() => {
// equal(currentURL(), '/users/eviltrout/activity', "it redirects from preferences");
// });
// });