diff --git a/spec/features/contribute/graduate_school_arts_spec.rb b/spec/features/contribute/graduate_school_arts_spec.rb index c659318c..f66cf886 100644 --- a/spec/features/contribute/graduate_school_arts_spec.rb +++ b/spec/features/contribute/graduate_school_arts_spec.rb @@ -15,7 +15,7 @@ end scenario do visit '/contribute' - find('#deposit_type').find(:xpath, 'option[7]').select_option + select 'Graduate School of Arts and Sciences Education Qualifying Papers', from: 'deposit_type' click_button 'Begin' attach_file('PDF to upload', pdf_path) fill_in 'Title', with: FFaker::Book.title diff --git a/spec/features/contribute/masters_in_animal_and_public_spec.rb b/spec/features/contribute/masters_in_animal_and_public_spec.rb index a18f0bd1..944c9ee1 100644 --- a/spec/features/contribute/masters_in_animal_and_public_spec.rb +++ b/spec/features/contribute/masters_in_animal_and_public_spec.rb @@ -15,7 +15,7 @@ end scenario do visit '/contribute' - find('#deposit_type').find(:xpath, 'option[7]').select_option + select 'Masters in Animal and Public Policy', from: 'deposit_type' click_button 'Begin' attach_file('PDF to upload', pdf_path) fill_in 'Title', with: FFaker::Book.title diff --git a/spec/features/contribute/phpd_capstone_spec.rb b/spec/features/contribute/phpd_capstone_spec.rb index ac91b4de..f7d345ad 100644 --- a/spec/features/contribute/phpd_capstone_spec.rb +++ b/spec/features/contribute/phpd_capstone_spec.rb @@ -15,7 +15,7 @@ end scenario do visit '/contribute' - find('#deposit_type').find(:xpath, 'option[9]').select_option + select 'PHPD Field Experience/Capstone', from: 'deposit_type' click_button 'Begin' attach_file('PDF to upload', pdf_path) fill_in 'Capstone Project Title', with: FFaker::Book.title diff --git a/spec/features/contribute/tish_library_reward_spec.rb b/spec/features/contribute/tish_library_reward_spec.rb index 1c7af113..2e7f5d3a 100644 --- a/spec/features/contribute/tish_library_reward_spec.rb +++ b/spec/features/contribute/tish_library_reward_spec.rb @@ -16,7 +16,7 @@ scenario do visit '/contribute' - find('#deposit_type').find(:xpath, 'option[10]').select_option + select 'Tisch Library Undergraduate Research Award', from: 'deposit_type' click_button 'Begin' attach_file('PDF to upload', pdf_path) fill_in 'Title', with: FFaker::Book.title diff --git a/spec/features/contribute/undergrad_summer_scholars_spec.rb b/spec/features/contribute/undergrad_summer_scholars_spec.rb index b6556394..7274d967 100644 --- a/spec/features/contribute/undergrad_summer_scholars_spec.rb +++ b/spec/features/contribute/undergrad_summer_scholars_spec.rb @@ -15,7 +15,7 @@ end scenario do visit '/contribute' - find('#deposit_type').find(:xpath, 'option[12]').select_option + select 'Undergraduate Summer Scholars', from: 'deposit_type' click_button 'Begin' attach_file('PDF to upload', pdf_path) fill_in 'Title', with: FFaker::Book.title