diff --git a/spec/system/item_system_spec.rb b/spec/system/item_system_spec.rb index 047458daf4..5708a0f1ac 100644 --- a/spec/system/item_system_spec.rb +++ b/spec/system/item_system_spec.rb @@ -203,11 +203,8 @@ expect(tab_items_quantity_location_text).not_to have_content num_pullups_second_donation expect(tab_items_quantity_location_text).not_to have_content num_tampons_in_donation expect(tab_items_quantity_location_text).not_to have_content num_tampons_second_donation - click_link item_pullups.name # href="#sectionD" - click_link item_tampons.name # href="#sectionD" + find(item_tampons.name).find(:xpath, "..").click expect(tab_items_quantity_location_text).to have_content storage_name - expect(tab_items_quantity_location_text).to have_content num_pullups_in_donation - expect(tab_items_quantity_location_text).to have_content num_pullups_second_donation expect(tab_items_quantity_location_text).to have_content num_tampons_in_donation expect(tab_items_quantity_location_text).to have_content num_tampons_second_donation end