flights_gui_tests 2.3.11 → 2.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/support/classes/checkout/new_cluster.rb +12 -12
- data/features/support/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc0c6e04c2e6acdbf2b102d6990425b799eb8575
|
4
|
+
data.tar.gz: 04be0898326d1569c5d2a5ca4270ae23ab0ae3c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1656ee28a93f61981dae2b6523785f75f02371f9cc3be60ec28727b13263f2aa4d5d4575c15b42a4046353b8177c803c8f7faaa7c6bd3e3f16564ac710865d5
|
7
|
+
data.tar.gz: 59baf203a078e484c3889c4648be35f8b08ac918c650f95bd42eb676906b62e4480cee79f3b6b04ade5937dd2cc829d7c6143e31ab7f9abccf82a8c258644fd0
|
@@ -61,20 +61,20 @@ module NewCheckout
|
|
61
61
|
def cargar_precios(html)
|
62
62
|
@tarifas = Hash.new
|
63
63
|
if (html/".adult-price span.price-currency").first
|
64
|
-
@tarifas['tarifa_adulto'] = Price.new((html/".adult-price span.price-currency").first.inner_text.strip)
|
64
|
+
@tarifas['tarifa_adulto'] = Price.new((html/".adult-price span.price-currency").first.inner_text.strip.gsub(',','.'))
|
65
65
|
else
|
66
|
-
@tarifas['tarifa_adulto'] = Price.new((html/"div.adult-price-conversion span#local-currency").first.inner_text.strip)
|
66
|
+
@tarifas['tarifa_adulto'] = Price.new((html/"div.adult-price-conversion span#local-currency").first.inner_text.strip.gsub(',','.'))
|
67
67
|
end
|
68
|
-
@tarifas['adt'] = Price.new((html/"li.adult_fare span.price-currency").first.inner_text.strip.gsub(
|
69
|
-
@tarifas['cnn'] = (html/"li.child_fare").first ? Price.new((html/"li.child_fare span.price-currency").first.inner_text.strip.gsub(
|
70
|
-
@tarifas['inf'] = (html/"li.infant_fare").first ? Price.new((html/"li.infant_fare span.price-currency").first.inner_text.strip.gsub(
|
71
|
-
@tarifas['tasas'] = (html/"li.taxes").first ? Price.new((html/"li.taxes span.price-currency").first.inner_text.strip.gsub(
|
72
|
-
@tarifas['cargos'] = (html/"li.charges").first ? Price.new((html/"li.charges span.price-currency").first.inner_text.strip.gsub(
|
73
|
-
@tarifas['afip'] = (html/"li.tax_afip").first ? Price.new((html/"li.tax_afip span.price-currency").first.inner_text.strip.gsub(
|
74
|
-
@tarifas['encargos'] = (html/"li.service_taxes").first ? Price.new((html/"li.service_taxes span.price-currency").first.inner_text.strip.gsub(
|
75
|
-
@tarifas['seguros'] = (html/"li.destination_service_insurance").first ? Price.new((html/"li.destination_service_insurance span.price-currency").first.inner_text.strip.gsub(
|
76
|
-
@tarifas['descuento'] = (html/"li.payment_discount").first ? Price.new((html/"li.payment_discount span.price-currency span.currency").first.inner_text.strip.gsub(
|
77
|
-
@tarifas['total'] = (html/"span#total-price").first ? Price.new((html/"span#total-price").first.inner_text.strip.gsub(
|
68
|
+
@tarifas['adt'] = Price.new((html/"li.adult_fare span.price-currency").first.inner_text.strip.gsub(',','.'))
|
69
|
+
@tarifas['cnn'] = (html/"li.child_fare").first ? Price.new((html/"li.child_fare span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
|
70
|
+
@tarifas['inf'] = (html/"li.infant_fare").first ? Price.new((html/"li.infant_fare span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
|
71
|
+
@tarifas['tasas'] = (html/"li.taxes").first ? Price.new((html/"li.taxes span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
|
72
|
+
@tarifas['cargos'] = (html/"li.charges").first ? Price.new((html/"li.charges span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
|
73
|
+
@tarifas['afip'] = (html/"li.tax_afip").first ? Price.new((html/"li.tax_afip span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
|
74
|
+
@tarifas['encargos'] = (html/"li.service_taxes").first ? Price.new((html/"li.service_taxes span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
|
75
|
+
@tarifas['seguros'] = (html/"li.destination_service_insurance").first ? Price.new((html/"li.destination_service_insurance span.price-currency").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
|
76
|
+
@tarifas['descuento'] = (html/"li.payment_discount").first ? Price.new((html/"li.payment_discount span.price-currency span.currency").first.inner_text.strip.gsub(',','.')+" "+((html/"li.payment_discount span.price-currency span.amount").first.inner_text.strip.gsub(/\D/,'').to_i*-1).to_s) : Price.new("$ 0",true)
|
77
|
+
@tarifas['total'] = (html/"span#total-price").first ? Price.new((html/"span#total-price").first.inner_text.strip.gsub(',','.')) : Price.new("$ 0",true)
|
78
78
|
end
|
79
79
|
|
80
80
|
def validar_suma_desgloce(linea = "total|tarifa_adulto|tarifa_adulto_dolar")
|
data/features/support/version.rb
CHANGED