mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Adds number localization preferences test
This commit is contained in:
@@ -39,7 +39,6 @@ describe "General Settings" do
|
||||
within('.currency') do
|
||||
find("[for='currency_symbol_position_after']").click
|
||||
end
|
||||
|
||||
click_button 'Update'
|
||||
|
||||
expect(page).to have_content(Spree.t(:successfully_updated,
|
||||
@@ -47,4 +46,14 @@ describe "General Settings" do
|
||||
expect(page).to have_checked_field('10.00 $')
|
||||
end
|
||||
end
|
||||
|
||||
context "editing number localization preferences" do
|
||||
it "enables international thousand/decimal separator logic" do
|
||||
find("#enable_localized_number_").set "true"
|
||||
click_button 'Update'
|
||||
expect(page).to have_content(Spree.t(:successfully_updated,
|
||||
resource: Spree.t(:general_settings)))
|
||||
expect(Spree::Config.preferred_enable_localized_number?).to eq(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user