@@ -169,11 +169,11 @@ public void iCanSeeModalWhereIAmAbleToSeeDetailedDataAboutMyPurchase() throws Th
169
169
170
170
Assert .assertEquals (productDetailsPage .popupPaneFinalProductTotalPrice .getText ()
171
171
.replaceAll ("[^$0-9.]" , "" ),
172
- $decimalFormat .format (contextInjection .finalProductTotalPrice ). replace ( "," , "." ) , VALUE_ERROR );
172
+ $decimalFormat .format (contextInjection .finalProductTotalPrice ), VALUE_ERROR );
173
173
174
174
Assert .assertEquals (productDetailsPage .popupPaneFinalOrderTotalPrice .getText ()
175
175
.replaceAll ("[^$0-9.]" , "" ),
176
- $decimalFormat .format (contextInjection .finalOrderTotalPrice ). replace ( "," , "." ) , VALUE_ERROR );
176
+ $decimalFormat .format (contextInjection .finalOrderTotalPrice ), VALUE_ERROR );
177
177
}
178
178
179
179
@ Step ("I click on Proceed To Checkout button \\ (from modal)" )
@@ -208,7 +208,7 @@ public void iCanSeeShoppingCartFormWithValidInformation(String shoppingSummaryTa
208
208
Assert .assertEquals (Double .parseDouble (shoppingCartSummaryPage .productQuantity .getAttribute
209
209
("value" ).toLowerCase ()), contextInjection .productQuantity , VALUE_ERROR );
210
210
Assert .assertEquals (shoppingCartSummaryPage .productTotalPrice .getText ()
211
- .replaceAll ("[^$0-9.]" , "" ). replace ( "." , "," ) ,
211
+ .replaceAll ("[^$0-9.]" , "" ),
212
212
$decimalFormat .format (contextInjection .finalProductTotalPrice ), VALUE_ERROR );
213
213
//TODO - how tax is calculated in america?
214
214
//Assert.assertEquals(shoppingCartSummaryPage.productTotalOrderPriceTAX.getText()
0 commit comments