From beb8245d04f22d5dbfa09740cc145cc9ba3e5fce Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 12 Dec 2016 17:31:47 +0800 Subject: [PATCH] Correct tests. --- test/javascripts/acceptance/groups-test.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/javascripts/acceptance/groups-test.js.es6 b/test/javascripts/acceptance/groups-test.js.es6 index d3ff6e5c221..8ba58086aad 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"); }); });