flights_gui_tests 2.3.84 → 2.3.86
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d9f2869276d781b945cfa4e4bf96ab7afd00f7a
|
4
|
+
data.tar.gz: 52ea308322a6ffa35e75faeb223d3490de9327e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a96f8f2a8cb84d3eac592ff1accd5230c05f0bd5362548667be7b02f16245acfd48c55f7fb527ec4c249bebcae83400f7d634d93621f18ad845b560392902c8
|
7
|
+
data.tar.gz: aa8c07fb7bd11dccc0c4bbc362a9866bdfe753ac00249e46f4399ba3aa61565c1921cd7681d8fa2ea69349d83b050eae84c4d30e86abadbebad63da283ac405e
|
@@ -36,7 +36,7 @@ Entonces(/^(?:verifico|valido) que el precio del seguro se muestre correctamente
|
|
36
36
|
price_detail=@page.precio_seguro_desglose_element.span(:class,'amount').text.gsub(/\.|\,/,'')
|
37
37
|
price_assistance=@page.precio_seguro_element.text.gsub(/\.|\,/,'')
|
38
38
|
dias = (@page.manage_data.date_to_1 - @page.manage_data.date_from_1).to_i + 1
|
39
|
-
if((Date.
|
39
|
+
if((Date.parse_new_result(@itinerario_checkout.vueltas.last['llegada']['fecha']) - Date.parse_new_result(@itinerario_checkout.vueltas.first['salida']['fecha'])).to_i>0)
|
40
40
|
dias = dias + 1
|
41
41
|
end
|
42
42
|
precio_por_dia = price_detail.to_i / dias
|
data/features/support/env.rb
CHANGED
data/features/support/hooks.rb
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
Before do |scenario|
|
3
|
+
$dunit ||= nil
|
3
4
|
@uow = "ROBOTFGUI-#{Socket.gethostname}-#{Time.now.strftime('%Y%m%d%H%M')}-#{scenario.tags.map{|tag| tag.name.gsub("@",'')}.join("-")}"
|
4
5
|
$browser.alert.ok if $browser.alert.exists?
|
5
|
-
$browser.goto("http://www.despegar.com/about")
|
6
|
+
$browser.goto("http://www.despegar.com/about") unless $dunit
|
6
7
|
$browser.alert.ok if $browser.alert.exists?
|
7
8
|
begin
|
8
9
|
$browser.execute_script("javascript:void(document.cookie = 'X-UOW-CUSTOM=#{@uow}; Path=/')")
|
9
10
|
rescue
|
10
11
|
puts "No se pudo cargar el X-UOW"
|
11
12
|
end
|
12
|
-
$
|
13
|
+
$dunit = true
|
13
14
|
end
|
14
15
|
|
15
16
|
After do |scenario|
|
@@ -19,7 +19,11 @@ module Checkout
|
|
19
19
|
def elegir_itinerario(index)
|
20
20
|
itinerarios_elements[index].div(:class,'sub-cluster outbound').radios[0].click unless tipo_de_busqueda=="multipledestinations"
|
21
21
|
itinerarios_elements[index].div(:class,'sub-cluster inbound').radios[0].click if tipo_de_busqueda=="roundtrip"
|
22
|
-
|
22
|
+
begin
|
23
|
+
@browser.execute_script("javascript:void($('.buy').click())")
|
24
|
+
rescue Net::ReadTimeout
|
25
|
+
puts "Net::ReadTimeout"
|
26
|
+
end
|
23
27
|
return @datos_de_itinerarios[index]
|
24
28
|
end
|
25
29
|
|
data/features/support/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flights_gui_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.86
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|