Fix enterprise groups spec by replacing select2_search with select2_select for country and state in enterprise group address

This commit is contained in:
luisramos0
2018-11-19 12:44:25 +00:00
parent 5ecea06098
commit 5f48f2b8a1

View File

@@ -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!'