flights_gui_tests 2.4.96 → 2.4.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d12e5ead5b991199f06cfa933b50543b9a095c1f
|
|
4
|
+
data.tar.gz: 59abc73f1dd3d06f7fa5b82d56d4d8fe3d4a72d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88936b060ee8c22ef64d36652caef29912fd9311d27b87199a396be7e7dc43e25bdc5f2018f183ccaf1d9a5d3594487e243c54f89382c821db239257e2a5af7c
|
|
7
|
+
data.tar.gz: f49e3840e3124747465c9f89eff8ca3efae50500d393254bdb09c5536248e2a63871ff1b49004ee118a6c9d30cfd8d9547929d73d46f9661b4b88f760fa64982
|
|
@@ -9,12 +9,17 @@ Entonces(/^(?:verifico|valido) los valores del desglose del checkout$/) do
|
|
|
9
9
|
if key == "total" and !@itinerario_checkout.tarifas["descuento"].value.zero? and !value.value.zero?
|
|
10
10
|
value.value.should be_within(4).of(@itinerario_checkout.tarifas[key].value-@itinerario_checkout.tarifas["descuento"].value)
|
|
11
11
|
else
|
|
12
|
-
if @itinerario_checkout.tarifas[key] and !value.zero? and value.currency == @itinerario_checkout.tarifas[key].currency
|
|
12
|
+
if @itinerario_checkout.tarifas[key] and !value.zero? and value.currency == @itinerario_checkout.tarifas[key].currency
|
|
13
13
|
if AllPages.site=="BR"
|
|
14
14
|
value.value.should be_within(14).of(@itinerario_checkout.tarifas[key].value)
|
|
15
15
|
else
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
begin
|
|
17
|
+
value.value.should be_within(4).of(@itinerario_checkout.tarifas[key].value)
|
|
18
|
+
rescue RSpec::Expectations::ExpectationNotMetError
|
|
19
|
+
puts "Error en precio entre resultados[#{value.value}] y checkout[#{@itinerario_checkout.tarifas[key].value}] en el campo #{key}"
|
|
20
|
+
value.value.should be_within(4).of(@itinerario_checkout.tarifas[key].value)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
18
23
|
end
|
|
19
24
|
end
|
|
20
25
|
end
|
|
@@ -93,7 +93,11 @@ module Results
|
|
|
93
93
|
|
|
94
94
|
campo = (html/"li").empty? ? "total" : "fare"
|
|
95
95
|
@tarifas['total'] = (html/"li.#{campo}-price span.currency").empty? ? Price.new("$ 0",true) : Price.new((html/"li.#{campo}-price span.currency").first.inner_text.strip + " " + (html/"li.#{campo}-price span.amount").first.inner_text.strip)
|
|
96
|
-
|
|
96
|
+
|
|
97
|
+
if (html/".fare-description").inner_text.match(/Precio Total Final/)
|
|
98
|
+
@tarifas['total'] = @tarifas['tarifa_adulto']
|
|
99
|
+
@tarifas['tarifa_adulto'] = Price.new("$ 0",true)
|
|
100
|
+
end
|
|
97
101
|
end
|
|
98
102
|
|
|
99
103
|
def validar_ecuacion_tarifas_por_cantidad_de_pasajeros(cant)
|
data/features/support/env.rb
CHANGED
|
@@ -83,8 +83,8 @@ end
|
|
|
83
83
|
$ENV = $HENRY_PARAMS['env']
|
|
84
84
|
|
|
85
85
|
$date = Dater::Resolver.new("%Y-%m-%d","es")
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
$aerolineas_prohibidas = ["DL", "AA", "US", "LA", "4M", "LP", "XL", "Y4", "TK","CM","AV"]
|
|
87
|
+
#$aerolineas_prohibidas = []
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
@@error_navegador = nil
|
data/features/support/version.rb
CHANGED