flights_gui_tests 2.4.96 → 2.4.97

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef4862a7b1d644c15226a4d5d9b8e55445f14dc6
4
- data.tar.gz: 32770580b20f0b43948a48e30164e5e60a326f48
3
+ metadata.gz: d12e5ead5b991199f06cfa933b50543b9a095c1f
4
+ data.tar.gz: 59abc73f1dd3d06f7fa5b82d56d4d8fe3d4a72d8
5
5
  SHA512:
6
- metadata.gz: 33171ed9696d20b7881d8acc723b6750a672ed2ec5b6bee4f34bd820e77b7b86bbee0092e358dc628f664deb8f435f7b4c5e5a868712bf4d8fd30259f2a5f57e
7
- data.tar.gz: 1296c152a04183487b6bd905d1404b9c97dee6d1767c2b8ae85a81450bfe32c3ab1dd803d0567108c3ab8a53e9d162890b142b30e1f3ef6c5a0cbc19f9b860ea
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
- value.value.should be_within(4).of(@itinerario_checkout.tarifas[key].value)
17
- end
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)
@@ -83,8 +83,8 @@ end
83
83
  $ENV = $HENRY_PARAMS['env']
84
84
 
85
85
  $date = Dater::Resolver.new("%Y-%m-%d","es")
86
- #$aerolineas_prohibidas = ["DL", "AA", "US", "LA", "4M", "LP", "XL", "Y4", "TK","CM","AV"]
87
- $aerolineas_prohibidas = []
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
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.4.96"
2
+ VERSION = "2.4.97"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.96
4
+ version: 2.4.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez