2015-04-06 14:14:00 -04:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("Groups");
|
2015-01-23 11:13:27 -05:00
|
|
|
|
2015-03-19 12:22:56 +01:00
|
|
|
test("Browsing Groups", () => {
|
2015-01-23 11:13:27 -05:00
|
|
|
visit("/groups/discourse");
|
2015-03-19 12:22:56 +01:00
|
|
|
andThen(() => {
|
2016-06-02 18:51:43 +05:30
|
|
|
ok(count('.group-members tr') > 0, "it lists group members");
|
2015-01-23 11:13:27 -05:00
|
|
|
});
|
2015-03-19 12:22:56 +01:00
|
|
|
|
2016-06-02 18:51:43 +05:30
|
|
|
visit("/groups/discourse/posts");
|
2015-03-19 12:22:56 +01:00
|
|
|
andThen(() => {
|
2016-06-02 18:51:43 +05:30
|
|
|
ok(count('.user-stream .item') > 0, "it lists stream items");
|
2015-01-23 11:13:27 -05:00
|
|
|
});
|
2016-04-11 13:16:37 -04:00
|
|
|
|
|
|
|
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");
|
|
|
|
});
|
2015-01-23 11:13:27 -05:00
|
|
|
});
|