Adds verification of inventory import on inventory page

This commit is contained in:
filipefurtad0
2021-05-10 19:01:41 +01:00
parent bb5452ad26
commit 8e24c655b0

View File

@@ -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