mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #12934 from rioug/fix-unit-price-spec
Use the correct spanish translation
This commit is contained in:
@@ -66,13 +66,14 @@ RSpec.describe '
|
||||
it "creating a new variant with a comma separated decimal price" do
|
||||
product = create(:simple_product, variant_unit: "weight", variant_unit_scale: "1")
|
||||
login_as_admin
|
||||
|
||||
visit spree.admin_dashboard_path(locale: 'es')
|
||||
visit spree.admin_product_variants_path product
|
||||
click_link 'Nueva Variante'
|
||||
|
||||
tomselect_select "Peso (g)", from: "Unit scale"
|
||||
click_on "Unit" # activate popout
|
||||
fill_in "Unit value", with: "1"
|
||||
click_on "Unidad" # activate popout
|
||||
fill_in "Valor unidad", with: "1"
|
||||
fill_in 'Precio', with: '1,5'
|
||||
|
||||
expect(find_field("Precio por unidad", disabled: true).value).to eq '1.500,00 $ / kg'
|
||||
|
||||
Reference in New Issue
Block a user