flights_gui_tests 2.0.1 → 2.0.2

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: e91d5ec57b815d769aaeae53f5d2981d77ecf007
4
- data.tar.gz: 35b11ed19e0449ddde8449360447b30031a99df2
3
+ metadata.gz: e58c2bb01b4b65e61a37ce07f557fdd3c76a7b5b
4
+ data.tar.gz: 580ea620bb29617c8544cee14d9c121bc0788b5e
5
5
  SHA512:
6
- metadata.gz: dd4b1b0ab76d7f6e530e11e23da79ffd156fbb3c20fc87713777d634bac42b578e58e25eaa133d121825098229fb7fded07accc6e4cef0fe92e13fdf296167ab
7
- data.tar.gz: 3dcaed2d28ec971f5b1ee35f76cafe6f09fd089a6230b69b6eb202dc15c31e7416810707c22dc419418e977ca1c22b482c4640501e1d0b80b0099782c8600b4c
6
+ metadata.gz: f7ef9325b27f25643f5a6a8cc37e510cfe006f5a1a711e39525211183baea9d4bc1fae9aeef7e61e7165e08d9597ab6ee6c1311516a95bef4bdef29a89f3f9ea
7
+ data.tar.gz: 8204846845daccc9061b355822dece05312d0cda430325cfc64980cfede0d3490cd09020a98278500306034ba1baa6a87a0ba3d0bb6263a78c017c79addce18d
@@ -70,7 +70,10 @@ Y(/^(?:verifico|valido) si no trae errores$/) do
70
70
  end
71
71
  if @page.mensaje_error_ux_element.present?
72
72
  pending(@page.mensaje_error_ux_element.text) unless @page.popup_nuevo_vuelo_element.present? or @page.checkout_id_element.present? or @page.checkout_id_cash_element.present?
73
- end
73
+ end
74
+ if @page.notificacion_error_cac_element.present?
75
+ pending(@page.notificacion_error_cac_element.text)
76
+ end
74
77
  if @page.notificacion_error_element.present?
75
78
  pending(@page.notificacion_error_element.text)
76
79
  end
@@ -2,7 +2,7 @@
2
2
  Entonces(/^(?:verifico|valido) los valores del desglose del checkout$/) do
3
3
  @itinerario_checkout = @page.datos_itinerario
4
4
  @itinerario_checkout.validar_suma_desgloce.should be_within(4).of(@itinerario_checkout.tarifas['total'].value)
5
- unless @itinerario_checkout.tarifas['adt'].valor.zero?
5
+ unless @itinerario_checkout.tarifas['adt'].valor.zero?
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|
@@ -31,20 +31,7 @@ Entonces(/^(?:verifico|valido) los datos del vuelo comprado$/) do
31
31
  @page.popup_desglose_gracias_element.when_visible(timeout=20)
32
32
  itinerario_gracias = Hpricot.parse(@page.popup_desglose_gracias_element.html)
33
33
  itinerario_gracias.inner_text.empty?.should_not be_true
34
- @monto_total=(itinerario_gracias/"span#total-price span.amount").inner_text.gsub(/\.|\,/,'').to_i
35
- @page.links_mas_detalles_gracias_elements.each do |a|
36
- a.click
37
- begin
38
- @page.popup_desglose_detalles_gracias_element.when_visible(timeout=20)
39
- doc = Hpricot.parse(@page.popup_desglose_detalles_gracias_element.html)
40
- detail = OldDetailsCluster.new(doc)
41
- @page.cerrar_popup_desglose_detalles_gracias_element.click
42
- @page.popup_desglose_detalles_gracias_element.when_not_visible(visible=20)
43
- sleep(1)
44
- rescue Watir::Wait::TimeoutError
45
- puts @page.url
46
- end
47
- end
34
+ @monto_total=(itinerario_gracias/"span#total-price span.amount").inner_text.gsub(/\.|\,/,'').to_i
48
35
  @itinerario_gracias = @page.datos_itinerario
49
36
  @page.cerrar_popup_desglose_gracias_element.click
50
37
  end
@@ -56,8 +56,8 @@ module NewCheckout
56
56
 
57
57
  def cargar_precios(html)
58
58
  @tarifas = Hash.new
59
- if (html/"div.adult-price span.price-currency").first
60
- @tarifas['tarifa_adulto'] = Price.new((html/"div.adult-price span.price-currency").first.inner_text.strip)
59
+ if (html/".adult-price span.price-currency").first
60
+ @tarifas['tarifa_adulto'] = Price.new((html/".adult-price span.price-currency").first.inner_text.strip)
61
61
  else
62
62
  @tarifas['tarifa_adulto'] = Price.new((html/"div.adult-price-conversion span#local-currency").first.inner_text.strip)
63
63
  end
@@ -69,7 +69,7 @@ module NewCheckout
69
69
  @tarifas['afip'] = (html/"li.tax_afip").first ? Price.new((html/"li.tax_afip span.price-currency").first.inner_text.strip) : Price.new("$ 0",true)
70
70
  @tarifas['encargos'] = (html/"li.service_taxes").first ? Price.new((html/"li.service_taxes span.price-currency").first.inner_text.strip) : Price.new("$ 0",true)
71
71
  @tarifas['seguros'] = (html/"li.destination_service_insurance").first ? Price.new((html/"li.destination_service_insurance span.price-currency").first.inner_text.strip) : Price.new("$ 0",true)
72
- @tarifas['total'] = (html/"li.total span.price-currency").first ? Price.new((html/"li.total span.price-currency").first.inner_text.strip) : Price.new("$ 0",true)
72
+ @tarifas['total'] = (html/"span#total-price").first ? Price.new((html/"span#total-price").first.inner_text.strip) : Price.new("$ 0",true)
73
73
  end
74
74
 
75
75
  def validar_suma_desgloce(linea = "total|tarifa_adulto|tarifa_adulto_dolar")
@@ -49,7 +49,7 @@ module Checkout
49
49
  span(:precio_seguro,:css=>"#upselling .col7 .details-title .amount")
50
50
  span(:valor_desglose_ingresos_brutos,:css=>".local_taxes .price-currency")
51
51
  span(:valor_ingresos_brutos,:css=>"#local-taxes-advice .bold .amount")
52
- span(:valor_desglose_total,:css=>".total .price-currency")
52
+ span(:valor_desglose_total,:id=>"total-price")
53
53
 
54
54
  text_field(:cupon_email,:id=>"voucher-email")
55
55
  text_field(:cupon_voucher,:id=>"voucher-code-0")
@@ -33,7 +33,7 @@ module Thanks
33
33
  link(:ver_desglose_gracias,:class=>"ux-shared-checkout-thanks-more")
34
34
 
35
35
  def datos_itinerario()
36
- return OldCheckout::Cluster.new(tipo_de_busqueda,Hpricot.parse(popup_desglose_gracias_element.html))
36
+ return NewCheckout::Cluster.new(tipo_de_busqueda,Hpricot.parse(popup_desglose_gracias_element.html))
37
37
  end
38
38
  end
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
@@ -294,6 +294,7 @@ Característica: checkout.book_ok
294
294
  Y verifico el tag de datalayer
295
295
  Y verifico el pixel de Efrontier
296
296
  Y verifico el pixel de doubleclick
297
+ Y verifico el pixel de trackeame en gracias
297
298
  Y cancelo la reserva en el proveedor
298
299
 
299
300
  @br
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.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-11 00:00:00.000000000 Z
11
+ date: 2015-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container