mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
fixed checkout tests by replacing state abbr with name in address selector boxes
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
|
||||
.small-6.columns
|
||||
%label{ for: 'order.bill_address.state_id' } {{ "state" | t }}
|
||||
%select.chunky{ id: 'order.bill_address.state_id', ng: { model: 'order.bill_address.state_id', options: 's.id as s.abbr for s in countriesById[order.bill_address.country_id].states' } }
|
||||
%select.chunky{ id: 'order.bill_address.state_id', ng: { model: 'order.bill_address.state_id', options: 's.id as s.name for s in countriesById[order.bill_address.country_id].states' } }
|
||||
|
||||
.row
|
||||
.small-6.columns
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
= validated_input t(:city), "order.ship_address.city"
|
||||
.small-6.columns
|
||||
%label{ for: 'order.ship_address.state_id' } {{ "state" | t }}
|
||||
%select.chunky{ id: 'order.ship_address.state_id', ng: { model: 'order.ship_address.state_id', options: 's.id as s.abbr for s in countriesById[order.ship_address.country_id].states' } }
|
||||
%select.chunky{ id: 'order.ship_address.state_id', ng: { model: 'order.ship_address.state_id', options: 's.id as s.name for s in countriesById[order.ship_address.country_id].states' } }
|
||||
|
||||
.row
|
||||
.small-6.columns
|
||||
|
||||
Reference in New Issue
Block a user