flights_gui_tests 2.4.92 → 2.4.93

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: 6eb39b36ab17f2af21bec793ddc2396399c9ef2f
4
- data.tar.gz: f3a83f76dbf174548808210ecba12130922d1c17
3
+ metadata.gz: 8295eaf8a5c5e6df7ba0f751f8b8bce34e7e1e3a
4
+ data.tar.gz: 7d3de60c0d20289106e09a3f468516dd1f055750
5
5
  SHA512:
6
- metadata.gz: cec49c9eddaa9c68a49bd63a6a2d95deaccec61399dcd03a82a6f36982c7107f82cacf9b09605b1f84d33297406e97874e74f48041b6bfef8edc59fc22f2c3b1
7
- data.tar.gz: 119cc8a32e37c0490b506b1802c9496b30a154bab53c751577b8dd70f3bd87d5db5f16b16c44cc99783fe91cce8a6dd333b857ac4ba55b9728b8ce9fae5d4483
6
+ metadata.gz: 3649278eb07cd96dd54eff17768d042fa3e781da943263c81aaf58f0a43091aaed50c7c6c3678dea3f256574266de23e561453882926ac50e810b51c19bc8a2d
7
+ data.tar.gz: 3ea2c4f4996143665dbf7fe667d79e1babd42ab23f1b7dc8c70e34d2097214c64cc90299ec43b0d1039efaf66801c15f5bece479eecf6c881ba09ad24737020d
@@ -6,7 +6,7 @@ Entonces(/^(?:verifico|valido) los valores del desglose del checkout$/) do
6
6
  @itinerario_checkout.tarifas['adt'].valor.should be_within(4).of(@itinerario_checkout.tarifas['tarifa_adulto'].valor * @page.manage_data.adt)
7
7
  end
8
8
  @itinerario_resultados.tarifas.each_pair do |key,value|
9
- if key == "total" and !@itinerario_checkout.tarifas["descuento"].value.zero?
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
12
  if @itinerario_checkout.tarifas[key] and !value.zero? and value.currency == @itinerario_checkout.tarifas[key].currency
@@ -72,6 +72,27 @@ Cuando(/^(?:realizo|genero|ingreso) la busqueda para 2 tc$/) do
72
72
  #@page.cargar_valores_abtesting
73
73
  end
74
74
 
75
+ Cuando(/^(?:realizo|genero|ingreso) la busqueda con '(.+)' adt, '(.+)' cnn y '(.+)' chd$/) do |adt,cnn,chd|
76
+ if AllPages.internacional
77
+ @page.manage_data.set_header_json({"host"=>"www.us.despegar.com"})
78
+ @page.ir("www.despegar.com/vuelos/about")
79
+ $browser.alert.ok if $browser.alert.exists?
80
+ $browser.execute_script("javascript:void(document.cookie = 'x-locale=#{AllPages.lang.downcase}-#{AllPages.site.upcase}; domain=despegar.com; Path=/')")
81
+ end
82
+ @page.manage_data.set_passengers_for_2tc(adt.to_i,cnn.to_i,chd.to_i)
83
+ begin
84
+ @page.ir(@page.url_busqueda)
85
+ rescue Net::ReadTimeout
86
+ pending("Tiempo expirado al cargar el navegador, reiniciar corrida.")
87
+ end
88
+ @page.set_cookies(@uow)
89
+ puts "URL: #{@page.url_busqueda}"
90
+ puts "UOW: #{@uow}"
91
+ puts "PARAMS: #{$HENRY_PARAMS}"
92
+ @page.elegir_idioma
93
+ #@page.cargar_valores_abtesting
94
+ end
95
+
75
96
  Cuando(/^espero que (?:termine|finalize|acabe) de cargar la pagina de resultados$/) do
76
97
  @page.carga_element.when_not_visible(timeout=200)
77
98
  @page.actualizar_filtro_element.when_not_visible(timeout=120)
@@ -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.92"
2
+ VERSION = "2.4.93"
3
3
  end
@@ -7,7 +7,7 @@ Característica: checkout.cupones
7
7
  Esquema del escenario: Se realiza un book con un cupon de descuento, se verifica la funcionalidad correcta de la cuponera.
8
8
  Dado como un usuario de '<pais>'
9
9
  * ingreso una busqueda '<tipo>' del tipo '<cabotage>'
10
- Cuando realizo la busqueda
10
+ Entonces realizo la busqueda con '<adt>' adt, '<cnn>' cnn y '<chd>' chd
11
11
  Entonces verifico que la pagina no rompa
12
12
  Cuando espero que termine de cargar la pagina de resultados
13
13
  Cuando pruebo angular
@@ -38,5 +38,5 @@ Característica: checkout.cupones
38
38
 
39
39
  @ar
40
40
  Ejemplos:
41
- |pais|tipo|cabotage|
42
- |AR |roundtrip|nil|
41
+ |pais|tipo|cabotage|adt|cnn|chd|
42
+ |AR |roundtrip|nil|1 |0 |0 |
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.4.92
4
+ version: 2.4.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container