Changes in spec

Due to the splitting of products_v3_spec in 4 parts.
This commit is contained in:
cyrillefr
2025-02-12 15:58:17 +01:00
parent 0aecb6873a
commit 2bc5ed49e6
2 changed files with 8 additions and 2 deletions

View File

@@ -90,9 +90,9 @@ RSpec.describe 'As an enterprise user, I can manage my products' do
select taxon.name, from: 'Category'
if stock == "on_hand"
find('input[id$="_on_hand"]').fill_in with: "66"
find('input[id$="_on_hand_desired"]').fill_in with: "66"
elsif stock == "on_demand"
find('input[id$="_on_demand"]').check
find('input[id$="_on_demand_desired"]').check
end
end

View File

@@ -667,6 +667,9 @@ RSpec.describe 'As an enterprise user, I can update my products' do
fill_in "Name", with: "Large box"
click_on "On Hand"
fill_in "On Hand", with: "19"
tomselect_select("Weight (kg)", from: "Unit scale")
click_on "Unit"
fill_in "Unit value", with: "1"
end
click_button "Save changes"
@@ -682,6 +685,9 @@ RSpec.describe 'As an enterprise user, I can update my products' do
fill_in "Name", with: "Large box"
click_on "On Hand"
check "On demand"
tomselect_select("Weight (kg)", from: "Unit scale")
click_on "Unit"
fill_in "Unit value", with: "1"
end
click_button "Save changes"