From af95e3871faaf99452c4532151410d03e6478be7 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Fri, 15 Feb 2019 01:15:58 +0800 Subject: [PATCH] Move check for table presence out of helper --- spec/features/admin/enterprise_roles_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/enterprise_roles_spec.rb b/spec/features/admin/enterprise_roles_spec.rb index d9a12820b4..d0aa59c766 100644 --- a/spec/features/admin/enterprise_roles_spec.rb +++ b/spec/features/admin/enterprise_roles_spec.rb @@ -99,6 +99,7 @@ feature %q{ click_link 'Enterprises' click_link 'Test Enterprise' navigate_to_enterprise_users + expect(page).to have_selector "table.managers" end it "lists managers and shows icons for owner, contact, and email confirmation" do @@ -131,6 +132,7 @@ feature %q{ select2_select user2.email, from: 'receives_notifications_dropdown' within('#save-bar') { click_button 'Update' } navigate_to_enterprise_users + expect(page).to have_selector "table.managers" within 'table.managers' do within "tr#manager-#{user1.id}" do @@ -178,8 +180,6 @@ feature %q{ within ".side_menu" do click_link "Users" end - - expect(page).to have_selector "table.managers" end def have_relationship(user, enterprise)