Add tests for groups pages, DRY html into a component

This commit is contained in:
Robin Ward
2016-04-11 13:16:37 -04:00
parent a359a973e2
commit f6c460c207
8 changed files with 1124 additions and 33 deletions

View File

@ -11,4 +11,19 @@ test("Browsing Groups", () => {
andThen(() => {
ok(count('.group-members tr') > 0, "it lists group members");
});
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");
});
});