mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
FIX: CSS class names changed on group posts
This commit is contained in:
@ -54,19 +54,19 @@ 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('.user-stream .item') > 0, "it lists stream items");
|
assert.ok(count('.group-post') > 0, "it lists stream items");
|
||||||
});
|
});
|
||||||
|
|
||||||
click(".group-activity-nav li a[href='/groups/discourse/activity/topics']");
|
click(".group-activity-nav li a[href='/groups/discourse/activity/topics']");
|
||||||
|
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
assert.ok(count('.user-stream .item') > 0, "it lists stream items");
|
assert.ok(count('.group-post') > 0, "it lists stream items");
|
||||||
});
|
});
|
||||||
|
|
||||||
click(".group-activity-nav li a[href='/groups/discourse/activity/mentions']");
|
click(".group-activity-nav li a[href='/groups/discourse/activity/mentions']");
|
||||||
|
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
assert.ok(count('.user-stream .item') > 0, "it lists stream items");
|
assert.ok(count('.group-post') > 0, "it lists stream items");
|
||||||
});
|
});
|
||||||
|
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
@ -77,7 +77,7 @@ QUnit.test("Anonymous Viewing Group", assert => {
|
|||||||
);
|
);
|
||||||
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('.user-stream .item') > 0, "it lists stream items");
|
assert.ok(count('.group-post') > 0, "it lists stream items");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user