From 2864aca48c11d4f50471b988d9f11fec7b8f825b Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 20 Jun 2013 13:29:17 +0300 Subject: Fix admin:groups test --- features/steps/admin/admin_groups.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'features') diff --git a/features/steps/admin/admin_groups.rb b/features/steps/admin/admin_groups.rb index 2f98b8100dc..c463d379d78 100644 --- a/features/steps/admin/admin_groups.rb +++ b/features/steps/admin/admin_groups.rb @@ -43,13 +43,16 @@ class AdminGroups < Spinach::FeatureSteps user = User.find_by_name("John") select2(user.id, from: "#user_ids", multiple: true) within "#new_team_member" do - select "Reporter", from: "project_access" + select "Reporter", from: "group_access" end click_button "Add users into group" end Then 'I should see "John" in team list in every project as "Reporter"' do - user = User.find_by_name("John") + within ".group-users-list" do + page.should have_content "John" + page.should have_content "Reporter" + end end protected -- cgit v1.2.1