From 50aa9ba3965cf71ca0a9944cc94e2bb84721a22b Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 15 Dec 2016 13:02:50 +0800 Subject: [PATCH] Fix JS tests. --- test/javascripts/acceptance/groups-test.js.es6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/javascripts/acceptance/groups-test.js.es6 b/test/javascripts/acceptance/groups-test.js.es6 index 04c8e6f5bf..f7f649f26d 100644 --- a/test/javascripts/acceptance/groups-test.js.es6 +++ b/test/javascripts/acceptance/groups-test.js.es6 @@ -12,7 +12,7 @@ test("Browsing Groups", () => { click("a[href='/groups/discourse/members']"); andThen(() => { - equal(find('.group-header').text().trim(), 'Awesome Team', "it displays the group page"); + equal(find('.group-info-name').text().trim(), 'Awesome Team', "it displays the group page"); }); }); @@ -58,7 +58,7 @@ test("Admin Viewing Group", () => { ok(find(".nav-stacked li a[title='Messages']").length === 1, 'it should show messages tab if user is admin'); ok(find(".nav-stacked li a[title='Edit Group']").length === 1, 'it should show edit group tab if user is admin'); ok(find(".nav-stacked li a[title='Logs']").length === 1, 'it should show Logs tab if user is admin'); - equal(find('.group-title').text(), 'Awesome Team', 'it should display the group title'); - equal(find('.group-name').text(), '@discourse', 'it should display the group name'); + + equal(find('.group-info-name').text(), 'Awesome Team', 'it should display the group name'); }); });