Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update spec

Matthew Kennedy0cdd79e4e9ff
diff --git a/backend/spec/features/admin/configuration/countries_spec.rb b/backend/spec/features/admin/configuration/countries_spec.rb
index 0177bc8173..21d36866d4 100644
--- a/backend/spec/features/admin/configuration/countries_spec.rb
+++ b/backend/spec/features/admin/configuration/countries_spec.rb
@@ -9,11 +9,19 @@ module Spree
click_link 'New Country'
fill_in 'Name', with: 'Brazil'
- fill_in 'Iso Name', with: 'BRL'
- fill_in 'Iso', with: 'BR'
- fill_in 'Iso3', with: 'BRL'
+ fill_in 'ISO Name', with: 'BRAZIL'
+ fill_in 'ISO Alpha-2', with: 'BR'
+ fill_in 'ISO Alpha-3', with: 'BRL'
+ check 'States Required'
+ uncheck 'Zip Code Required'
+
click_button 'Create'
+ expect(page).to have_content('Brazil')
+ expect(page).to have_content('BRL')
+ expect(page).to have_content('Yes')
+ expect(page).to have_content('No')
+
accept_confirm do
click_icon :delete
end
diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml
index 3e1d2795bf..11a992cae3 100644
--- a/core/config/locales/en.yml
+++ b/core/config/locales/en.yml
@@ -986,8 +986,8 @@ en:
inventory_error_flash_for_insufficient_quantity: An item in your cart has become unavailable.
inventory_state: Inventory State
is_not_available_to_shipment_address: is not available to shipment address
- iso: ISO Alpha-2 Code
- iso3: ISO Alpha-3 Code
+ iso: ISO Alpha-2
+ iso3: ISO Alpha-3
iso_name: ISO Name
issued_on: Issued On
item: Item