flights_gui_tests 2.3.23 → 2.3.25
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: 704fd90aa58e22da8ce4ab09778c5ed56ce68ec9
|
|
4
|
+
data.tar.gz: 01d23c69604943dd2ab9bfcf513b2b3808b51750
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 35ff6dde0618739ebf96a8f23af8d8697de9efc9552b7eb4181fb3d7fb4487c9eb5e7d0dc26357f1e9439280ee742cf605dd433f842e89da1ed09cc72ab987b9
|
|
7
|
+
data.tar.gz: 1bc8b82a1766c6bb223d3af00fdb75f2ca80f56da2bec43655a722b2510e86092a296f4eff3eff79e739a1a78efe0e93852a0108fba978ef80a377711770d7d5
|
|
@@ -25,12 +25,16 @@ Entonces(/^(?:verifico|valido) que se muestre correctamente la caja de seguro ch
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
Entonces(/^(?:verifico|valido) que el precio del seguro se muestre correctamente en el desglose$/) do
|
|
28
|
+
@itinerario_checkout = @page.datos_itinerario
|
|
28
29
|
@page.precio_seguro_desglose_element.should visible
|
|
29
30
|
price_detail=@page.precio_seguro_desglose_element.span(:class,'amount').text.gsub(/\.|\,/,'')
|
|
30
31
|
price_assistance=@page.precio_seguro_element.text.gsub(/\.|\,/,'')
|
|
31
32
|
dias = (@page.manage_data.date_to_1 - @page.manage_data.date_from_1).to_i + 1
|
|
33
|
+
if((Date.parse(@itinerario_checkout.vueltas.last['salida']['fecha']) - Date.parse(@itinerario_checkout.vueltas.first['llegada']['fecha'])).to_i>0)
|
|
34
|
+
dias = dias + 1
|
|
35
|
+
end
|
|
32
36
|
precio_por_dia = price_detail.to_i / dias
|
|
33
|
-
precio_por_dia.to_i.should be_within(3).of(price_assistance.to_i
|
|
37
|
+
precio_por_dia.to_i.should be_within(3).of(price_assistance.to_i * (@page.manage_data.adt+@page.manage_data.cnn+@page.manage_data.inf))
|
|
34
38
|
end
|
|
35
39
|
|
|
36
40
|
Cuando(/^muestro el popup de la cobertura completa$/) do
|
|
@@ -10,15 +10,18 @@ module NewCheckout
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def roundtrip(html)
|
|
13
|
-
tramos
|
|
14
|
-
@ida
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
tramos = cargar_tramos((html/"div.outbound-route div.segment"))
|
|
14
|
+
@ida = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").first.inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
|
|
15
|
+
@idas = tramos
|
|
16
|
+
tramos = cargar_tramos((html/"div.inbound-route div.segment"))
|
|
17
|
+
@vuelta = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").first.inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
|
|
18
|
+
@vueltas = tramos
|
|
17
19
|
end
|
|
18
20
|
|
|
19
21
|
def oneway(html)
|
|
20
22
|
tramos = cargar_tramos((html/"div.outbound-route div.segment"))
|
|
21
23
|
@ida = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").first.inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
|
|
24
|
+
@idas = tramos
|
|
22
25
|
end
|
|
23
26
|
|
|
24
27
|
def multipledestinations(html)
|
|
@@ -37,7 +37,7 @@ module Checkout
|
|
|
37
37
|
div(:protegido,:css=>"#upselling-success")
|
|
38
38
|
div(:desprotegido,:css=>"#upselling-warning")
|
|
39
39
|
div(:aviso_ingresos_brutos,:id=>"local-taxes-advice")
|
|
40
|
-
|
|
40
|
+
span(:cluster_doble,:class=>"fare-detail-multipleoneway-title")
|
|
41
41
|
|
|
42
42
|
radio_button(:opcion_no_seguro, :id=>"upselling-radios-1")
|
|
43
43
|
radio_button(:opcion_si_seguro, :id=>"upselling-radios-0")
|
data/features/support/version.rb
CHANGED