discourse/test/javascripts/acceptance/groups-test.js.es6
2016-06-02 18:51:43 +05:30

30 lines
746 B
JavaScript

import { acceptance } from "helpers/qunit-helpers";
acceptance("Groups");
test("Browsing Groups", () => {
visit("/groups/discourse");
andThen(() => {
ok(count('.group-members tr') > 0, "it lists group members");
});
visit("/groups/discourse/posts");
andThen(() => {
ok(count('.user-stream .item') > 0, "it lists stream items");
});
visit("/groups/discourse/topics");
andThen(() => {
ok(count('.user-stream .item') > 0, "it lists stream items");
});
visit("/groups/discourse/mentions");
andThen(() => {
ok(count('.user-stream .item') > 0, "it lists stream items");
});
visit("/groups/discourse/messages");
andThen(() => {
ok(count('.user-stream .item') > 0, "it lists stream items");
});
});