fix group-test.js

This commit is contained in:
Neil Lalonde 2018-05-03 16:00:56 -04:00
parent 69a3ba0014
commit 3a145b7551
1 changed files with 5 additions and 5 deletions

View File

@ -24,26 +24,26 @@ QUnit.test("Anonymous Viewing Group", assert => {
click(".nav-pills li a[title='Activity']"); click(".nav-pills li a[title='Activity']");
andThen(() => { andThen(() => {
assert.ok(count('.group-post') > 0, "it lists stream items"); assert.ok(count('.user-stream-item') > 0, "it lists stream items");
}); });
click(".group-activity-nav li a[href='/groups/discourse/activity/topics']"); click(".activity-nav li a[href='/groups/discourse/activity/topics']");
andThen(() => { andThen(() => {
assert.ok(find('.topic-list'), "it shows the topic list"); assert.ok(find('.topic-list'), "it shows the topic list");
assert.equal(count('.topic-list-item'), 2, "it lists stream items"); assert.equal(count('.topic-list-item'), 2, "it lists stream items");
}); });
click(".group-activity-nav li a[href='/groups/discourse/activity/mentions']"); click(".activity-nav li a[href='/groups/discourse/activity/mentions']");
andThen(() => { andThen(() => {
assert.ok(count('.group-post') > 0, "it lists stream items"); assert.ok(count('.user-stream-item') > 0, "it lists stream items");
}); });
andThen(() => { andThen(() => {
assert.ok(find(".nav-pills li a[title='Edit Group']").length === 0, 'it should not show messages tab if user is not admin'); assert.ok(find(".nav-pills li a[title='Edit Group']").length === 0, 'it should not show messages tab if user is not admin');
assert.ok(find(".nav-pills li a[title='Logs']").length === 0, 'it should not show Logs tab if user is not admin'); assert.ok(find(".nav-pills li a[title='Logs']").length === 0, 'it should not show Logs tab if user is not admin');
assert.ok(count('.group-post') > 0, "it lists stream items"); assert.ok(count('.user-stream-item') > 0, "it lists stream items");
}); });
selectKit('.group-dropdown').expand(); selectKit('.group-dropdown').expand();