mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 17:37:53 +08:00
Correct tests.
This commit is contained in:
parent
5a917dd14e
commit
beb8245d04
@ -27,7 +27,8 @@ test("Browsing Groups", () => {
|
||||
|
||||
visit("/groups/discourse/messages");
|
||||
andThen(() => {
|
||||
ok($('.nav-stacked li').length === 4, 'it should not show messages tab');
|
||||
ok(find(".nav-stacked li a[title='Messages']").length === 0, 'it should not show messages tab if user is admin');
|
||||
ok(find(".nav-stacked li a[title='Logs']").length === 0, 'it should not show Logs tab if user is admin');
|
||||
ok(count('.user-stream .item') > 0, "it lists stream items");
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user