From 8e24c655b041efd5f80d4953defa7646bb956d60 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 10 May 2021 19:01:41 +0100 Subject: [PATCH] Adds verification of inventory import on inventory page --- spec/features/admin/product_import_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/features/admin/product_import_spec.rb b/spec/features/admin/product_import_spec.rb index 30e67f07a5..78e1d8af27 100644 --- a/spec/features/admin/product_import_spec.rb +++ b/spec/features/admin/product_import_spec.rb @@ -325,6 +325,12 @@ feature "Product Import", js: true do save_data expect(page).to have_selector '.inv-created-count', text: '1' + + visit main_app.admin_inventory_path + + expect(page).to have_content "Beets" + expect(page).to have_select "variant-overrides-#{Spree::Product.find_by(name: 'Beets').variants.first.id}-on_demand", selected: "Yes" + expect(page).to have_input "variant-overrides-#{Spree::Product.find_by(name: 'Beets').variants.first.id}-price", with: "3.2" end it "handles on_demand and on_hand validations with inventory" do