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: 7c04d93f728b932c71083c354cd056953d5f5bc7
4
- data.tar.gz: bda00813bcac9319e8797b72dbfa069614cab4a4
3
+ metadata.gz: 9d9f2869276d781b945cfa4e4bf96ab7afd00f7a
4
+ data.tar.gz: 52ea308322a6ffa35e75faeb223d3490de9327e2
5
5
  SHA512:
6
- metadata.gz: 82546033fc7ad31d943323d8f00fefdbc856b701ec6f1b6c44ff17fdfa1479c8fe8c1922175711ea864955ae0a9a678425422214c1de4f87c9cb8832da6a8064
7
- data.tar.gz: 4f1ec56be62335c8aabdd8a1cbc866b404c638cb8ab282097e4ab57da96b2223093f6081f76da22c1cb4b86986b0509bc72c974b29e38f3e7129acf4db341992
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.parse(@itinerario_checkout.vueltas.last['llegada']['fecha']) - Date.parse(@itinerario_checkout.vueltas.first['salida']['fecha'])).to_i>0)
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
@@ -15,6 +15,7 @@ require 'byebug'
15
15
  require 'henry/config'
16
16
  require 'mock_search'
17
17
  require 'auto_uy_utils'
18
+ require 'timeout'
18
19
  #require 'roma_automation'
19
20
 
20
21
  $VERBOSE = nil
@@ -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
- $first = false
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
- @browser.execute_script("javascript:void($('.buy').click())")
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
 
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.3.84"
2
+ VERSION = "2.3.86"
3
3
  end
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.84
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-18 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container