diff --git a/test/javascripts/acceptance/groups-test.js.es6 b/test/javascripts/acceptance/groups-test.js.es6 index d3ff6e5c22..8ba58086aa 100644 --- a/test/javascripts/acceptance/groups-test.js.es6 +++ b/test/javascripts/acceptance/groups-test.js.es6 @@ -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"); }); });