From 5e933af0797842f49ea2f749e085331410af4067 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Wed, 10 Jul 2024 17:05:37 +0100 Subject: [PATCH] Prepares spec for admin_style_v3 - replaces TODO (1) --- spec/system/admin/product_import_spec.rb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/spec/system/admin/product_import_spec.rb b/spec/system/admin/product_import_spec.rb index 85555f96bb..c0929e5ef2 100644 --- a/spec/system/admin/product_import_spec.rb +++ b/spec/system/admin/product_import_spec.rb @@ -97,16 +97,12 @@ RSpec.describe "Product Import" do expect(potatoes.variants.first.price).to eq 6.50 expect(potatoes.variants.first.import_date).to be_within(1.minute).of Time.zone.now - wait_until { page.find("a.button.view").present? } - - puts "TODO: migrate to v3" - Flipper.disable(:admin_style_v3) # disabling BUU for legacy products page click_link 'Go To Products Page' - expect(page).to have_content 'Bulk Edit Products' - wait_until { page.find("#p_#{potatoes.id}").present? } - expect(page).to have_field "product_name", with: carrots.name - expect(page).to have_field "product_name", with: potatoes.name + + # 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) end it "displays info about invalid entries but no save button if all items are invalid" do