From 3cb0b76d21be4b7c1d6d7bc9d2fc067dd63754a2 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Thu, 31 May 2018 00:39:36 +0100 Subject: [PATCH] fixed checkout tests by replacing state abbr with name in address selector boxes --- app/views/checkout/_billing.html.haml | 2 +- app/views/checkout/_shipping_ship_address.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/checkout/_billing.html.haml b/app/views/checkout/_billing.html.haml index ef3d09e052..4e451b51cd 100644 --- a/app/views/checkout/_billing.html.haml +++ b/app/views/checkout/_billing.html.haml @@ -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 diff --git a/app/views/checkout/_shipping_ship_address.html.haml b/app/views/checkout/_shipping_ship_address.html.haml index 99605480b2..aa64e6c521 100644 --- a/app/views/checkout/_shipping_ship_address.html.haml +++ b/app/views/checkout/_shipping_ship_address.html.haml @@ -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