From 5f48f2b8a1ea82899fd739c197b8e170cea2b696 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Mon, 19 Nov 2018 12:44:25 +0000 Subject: [PATCH] Fix enterprise groups spec by replacing select2_search with select2_select for country and state in enterprise group address --- spec/features/admin/enterprise_groups_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/enterprise_groups_spec.rb b/spec/features/admin/enterprise_groups_spec.rb index 2a118eb9b5..7755c2dcf3 100644 --- a/spec/features/admin/enterprise_groups_spec.rb +++ b/spec/features/admin/enterprise_groups_spec.rb @@ -40,8 +40,8 @@ feature %q{ fill_in 'enterprise_group_address_attributes_address1', with: 'My Street' fill_in 'enterprise_group_address_attributes_city', with: 'Block' fill_in 'enterprise_group_address_attributes_zipcode', with: '0000' - select2_search 'Australia', :from => 'Country' - select2_search 'Victoria', :from => 'State' + select2_select 'Australia', :from => 'enterprise_group_address_attributes_country_id' + select2_select 'Victoria', :from => 'enterprise_group_address_attributes_state_id' click_button 'Create' page.should have_content 'Enterprise group "EGEGEG" has been successfully created!'