fixed checkout tests by replacing state abbr with name in address selector boxes

This commit is contained in:
luisramos0
2018-05-31 00:39:36 +01:00
committed by Maikel Linke
parent 836a5836d9
commit 3cb0b76d21
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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