flights_gui_tests 1.1.4 → 1.1.5

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: 62e47aba15162d8dddfa89f2b5b56144878cb602
4
- data.tar.gz: ed0094cbec6c7f375ccf07c22549af51e7a40eef
3
+ metadata.gz: 8373b3c7abcf54880b0188a3f858850724f16ad0
4
+ data.tar.gz: 352acdadc14f5456e8d8a3d39459f85bf5446020
5
5
  SHA512:
6
- metadata.gz: 4e68d7e72fc19257be73ca594984ac09ad88a12c41caf7461a4adc8cb99a77d56962db0c6c446c611914e0dfc5ccd6ce2a2282d01e51848b4a32aa6067233530
7
- data.tar.gz: 6ff0679dadff57b134d0c7b305046129b187ac272ea1a6248bb6ea186173e8bae2ffe4e611ec5157c9fdd20443fd98416ca0635285329c1d44f895dd5ff22097
6
+ metadata.gz: dac8a493e8d9c3d644a42c2bc3f5f5cb805c043ec1c478be0a7e9ae5393f28de6b168a905e85aa48299d23d2490932f7ed80a75e27af8eb3859edaf41eeee44e
7
+ data.tar.gz: f5d481780b1d3d486606c69b4100f13ff968dacbcc41dc24546e4b6225067018919de65897750af2bbbeec7c7a0b004226b91e3c33ad047b51d088193850228e
@@ -4,11 +4,8 @@ Entonces(/^(?:verifico|valido) que el mensaje de error en el cluster sea correct
4
4
  clusters=@page.datos_de_itinerarios
5
5
  clusters.each_with_index do |cluster,i|
6
6
  if (cluster.idas.length>1 or (cluster.vueltas and cluster.vueltas.length>1))
7
- if @page.browser.div(:class=>"cluster",:index=>i).links(:class,/buy/)[0].present?
8
- @page.browser.div(:class=>"cluster",:index=>i).links(:class,/buy/)[0].click
9
- else
10
- @page.browser.div(:class=>"cluster",:index=>i).links(:class,/buy/)[1].click
11
- end
7
+ boton_comprar = @page.browser.div(:class=>"cluster",:index=>i).links(:class,/buy/).select{|boton| boton.present?}
8
+ boton_comprar.first.click
12
9
  @page.browser.div(:class=>"cluster",:index=>i).li(:class=>'item error-message',:index=>((cluster.idas.length>1) ? 0 : 1)).text.no_accents.should match("Choose a (return|departure) flight|Por favor, seleccione un vuelo de|Por favor, selecione um voo de")
13
10
  end
14
11
  end
@@ -41,11 +41,7 @@ Entonces(/^filtro por un itinerario en la matriz$/) do
41
41
  end
42
42
 
43
43
  Entonces(/^(?:verifico|valido) la base tarifaria$/) do
44
- if AllPages.site == 'PE'
45
- @page.precio_itinerario_pe_element.when_visible(20)
46
- else
47
- @page.precio_itinerario_element.when_visible(20)
48
- end
44
+ Watir::Wait.until(timeout = 20){@page.precio_itinerario_pe_element.present? or @page.precio_itinerario_mx_element.present? or @page.precio_itinerario_element.present?}
49
45
  if @page.desglose_element.present?
50
46
  @basefare = 'tot'
51
47
  else
@@ -54,7 +50,11 @@ Entonces(/^(?:verifico|valido) la base tarifaria$/) do
54
50
  price_cluster = Hash.new
55
51
  doc = Hpricot.parse(@page.html)
56
52
  price_matrix = (doc / "div#matrix span[@class='price-currency #{Helpers.currency(AllPages.site)} ']").first.inner_text.strip
57
- price_cluster['adt'] = (doc / "div.cluster span.fare span[@class='price-currency #{Helpers.currency(AllPages.site)} ']").first.inner_text.strip
53
+ if (doc / "div.cluster span.fare span[@class='price-currency #{Helpers.currency(AllPages.site)} ']").first
54
+ price_cluster['adt'] = (doc / "div.cluster span.fare span[@class='price-currency #{Helpers.currency(AllPages.site)} ']").first.inner_text.strip
55
+ else
56
+ price_cluster['adt'] = (doc / "div.cluster span.total-price-only span[@class='price-currency #{Helpers.currency(AllPages.site)} ']").first.inner_text.strip
57
+ end
58
58
  if @basefare == 'tot'
59
59
  price_cluster['tot'] = (doc / "div.cluster div.fare-detail li.fare-price span[@class='price-currency #{Helpers.currency(AllPages.site)} ']").first.inner_text.strip
60
60
  end
@@ -25,6 +25,7 @@ module Results
25
25
  div(:filtro_duracion_visible,:class=>"inline-filters-detail inline-filters-detail-duration")
26
26
  div(:filtro_escalas_visible,:class=>"inline-filters-detail inline-filters-detail-scales")
27
27
  div(:filtro_alianzas_visible,:class=>"inline-filters-detail inline-filters-detail-alliances")
28
+ div(:slider_horario_salida,:css=>".ux-flights-filter-outboundhours-slider")
28
29
 
29
30
  span(:mas_filtros,:css=>"div#inline-filters li.inline-filters-item-more span.inline-filters-item-content")
30
31
 
@@ -42,6 +43,7 @@ module Results
42
43
  elements(:opciones_escalas,:input,:name=>"inline-filters-stops")
43
44
  elements(:opciones_alianzas,:input,:name=>"inline-filters-alliances")
44
45
 
46
+
45
47
  link(:aplicar_filtros,:class=>"inline-filters-apply flights-button")
46
48
 
47
49
  span(:remover_filtro_de_horario_de_ida,:id=>"inline-filters-time-outbound-slider-applied")
@@ -51,6 +53,10 @@ module Results
51
53
  checkbox(:remover_filtro_de_aeropuerto_origen,:id=>"inline-filters-airport-outbound-all")
52
54
  checkbox(:remover_filtro_de_aeropuerto_destino,:id=>"inline-filters-airport-inbound-all")
53
55
  checkbox(:remover_filtro_de_escalas,:id=>"inline-filters-stops-all")
56
+ checkbox(:limpiar_filtro_aerolinea,:id=>"airlines-all")
57
+ checkbox(:limpiar_filtro_aeropuerto_salida,:id=>"airport-outbound-all")
58
+ checkbox(:limpiar_filtro_aeropuerto_llegada,:id=>"airport-inbound-all")
59
+ checkbox(:limpiar_filtro_escalas,:id=>'stops-all')
54
60
 
55
61
  span(:remover_filtro_de_duracion_de_ida,:id=>"inline-filters-duration-outbound-slider-applied")
56
62
  span(:remover_filtro_de_duracion_de_vuelta,:id=>"inline-filters-duration-inbound-slider-applied")
@@ -66,6 +72,7 @@ module Results
66
72
  link(:remover_ultima_accion,:class=>"remove-last-action")
67
73
  link(:slider_nuevo_filtro_duracion_salida,:css=>"div.inline-filters-detail-duration div#inline-filters-duration-outbound-slider .ui-slider-handle-min")
68
74
  link(:slider_nuevo_filtro_duracion_llegada,:css=>"div.inline-filters-detail-duration div#inline-filters-duration-inbound-slider .ui-slider-handle-min")
75
+ link(:ver_mas_aerolineas, :class=>"ux-common-filter-more")
69
76
 
70
77
  def se_muestra_filtro_de_alianzas(alianza)
71
78
  return browser.span(:id,"inline-filters-alliances-#{alianza}-applied")
@@ -16,6 +16,7 @@ module Landing
16
16
  elements(:detalle_precio_itinerario, :li, :css=>"#clusters .cluster .fare-detail li")
17
17
 
18
18
  element(:precio_itinerario, :span, :css=>".cluster .fare .price-currency")
19
+ element(:precio_itinerario_mx, :span, :css=>".cluster .total-price-only .price-currency")
19
20
  element(:precio_itinerario_pe, :span, :css=>".cluster .fare .PEN")
20
21
  element(:itinerario, :div, :css=>"#clusters .cluster")
21
22
  element(:desglose,:li,:css=>"#clusters .cluster .fare-detail li")
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
@@ -27,6 +27,7 @@ Característica: results.search
27
27
  Y verifico el tag de groovinads
28
28
  Y verifico el logger en resultado de fgui
29
29
  Y verifico el tag de canonical
30
+ Y cierro popups
30
31
  Y verifico el popup de alertas
31
32
  Y si el site es "AR", verifico el tag de remarketing de facebook
32
33
  Y si el site es "MX|CO|BR", verifico el tag de facebook
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez