diff --git a/spec/system/admin/product_import_spec.rb b/spec/system/admin/product_import_spec.rb index c0929e5ef2..37b3de2004 100644 --- a/spec/system/admin/product_import_spec.rb +++ b/spec/system/admin/product_import_spec.rb @@ -187,6 +187,8 @@ RSpec.describe "Product Import" do end it "records a timestamp on import that can be viewed and filtered under Bulk Edit Products" do + pending "This feature was removed, see: + https://github.com/openfoodfoundation/openfoodnetwork/issues/10694#issuecomment-1578097339" csv_data = <<~CSV name, producer, category, on_hand, price, units, unit_type, shipping_category_id Carrots, User Enterprise, Vegetables, 5, 3.20, 500, g, #{shipping_category_id_str} @@ -209,15 +211,18 @@ RSpec.describe "Product Import" do potatoes = Spree::Product.find_by(name: 'Potatoes') expect(potatoes.variants.first.import_date).to be_within(1.minute).of Time.zone.now - puts "TODO: migrate to v3" - Flipper.disable(:admin_style_v3) # disabling BUU for legacy products page click_link 'Go To Products Page' - wait_until { page.find("#p_#{carrots.id}").present? } + # displays product list + expect(page).to have_field("_products_2_name", with: carrots.name.to_s) + expect(page).to have_field("_products_5_name", with: potatoes.name.to_s) - expect(page).to have_field "product_name", with: carrots.name - expect(page).to have_field "product_name", with: potatoes.name - toggle_columns "Import" + click_button "Save changes" + + ofn_drop_down("Columns").click + within ofn_drop_down("Columns") do + check "Import" + end within "tr#p_#{carrots.id} td.import_date" do expect(page).to have_content Time.zone.now.year