flights_gui_tests 2.4.88 → 2.4.89

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: f4c4fc06299ff91a3693071bd5bb93af90047b4a
4
- data.tar.gz: 0db2683e65dc3a30f1dcb2e90ef85187b8af5438
3
+ metadata.gz: f68504ea3c0f2cdb4ee61c202429f0360d1f63a4
4
+ data.tar.gz: 0dda5a6afee6a4eee5b2f9a502745cbf79efa477
5
5
  SHA512:
6
- metadata.gz: 34d2e4567da416290d392ac49726c8f7f3c0b8fde95ef910bc8cc91deb932a3231aebc93d1e6e3dd0b47a64c606fa621ee8c04b0a048eb91896f8d8c16d224f3
7
- data.tar.gz: 62aa553f250a035387a3a2e2c7290c24e8b64578d8292394bc4797ca2cf712c6dbda475b6b981876c76ea7beda2464144821bb2a0e170a4ba8a3ebaa14db0eac
6
+ metadata.gz: 25a6e2cfc88e22e1ba6bf45cdcdd321bb2600211bcdc0bc72424db2fc7bb253b486f39ca76d698515b871c6cdae45026e567033eb4d97c0fc64269e70717bd38
7
+ data.tar.gz: da2a7d79e202f1cf709878d9d93821620d58482d8178b46c39df5a3eb0a14d72e10000937f2a53e1e1553279b425bce8a99f3ab12bf936d4a3a194765a7a7243
@@ -72,7 +72,7 @@ Entonces(/^espero que termine el pedido de compra$/) do
72
72
  puts "Rompe Net::ReadTimeout"
73
73
  end
74
74
  @page.popup_transicion_compra_element.when_not_visible(timeout=200)
75
- Watir::Wait.until(timeout=200){@page.desglose_gracias_element.present? or @page.notificacion_error_cac_element.present? or @page.mensaje_error_ux_element.present? or @page.notificacion_warning_ux_element.present? or @page.checkout_id_cash_element.present? or @page.checkout_id_element.present? or @page.popup_nuevo_vuelo_element.present? or @page.popup_nuevo_precio_element.present? or @page.notificacion_error_element.present? or @page.notificacion_warning_element.present? or @page.notificacion_error_ux_element.present? or @page.mensaje_error_emision_last_minute_element.present? or @page.mensaje_eva_alerta_element.present?}
75
+ Watir::Wait.until(timeout=200){@page.popup_error_multipleoneway_element.present? or @page.desglose_gracias_element.present? or @page.notificacion_error_cac_element.present? or @page.mensaje_error_ux_element.present? or @page.notificacion_warning_ux_element.present? or @page.checkout_id_cash_element.present? or @page.checkout_id_element.present? or @page.popup_nuevo_vuelo_element.present? or @page.popup_nuevo_precio_element.present? or @page.notificacion_error_element.present? or @page.notificacion_warning_element.present? or @page.notificacion_error_ux_element.present? or @page.mensaje_error_emision_last_minute_element.present? or @page.mensaje_eva_alerta_element.present?}
76
76
  end
77
77
 
78
78
  Y(/^(?:verifico|valido) si no trae errores$/) do
@@ -108,6 +108,11 @@ Y(/^(?:verifico|valido) que los datos cargados sean mostrados correctamente al l
108
108
  end
109
109
  end
110
110
 
111
- # Y(/^valido que no se muestre la leyenda de tarifas en pesos$/) do
112
- # @page.leyenda_tarifa_en_pesos_element.should_not visible("leyenda de tarifas en pesos")
113
- # end
111
+ Y(/^verifico los precios mostrados para cada tarjeta$/) do
112
+ (@page.precio_primer_tarjeta_element.text.gsub(/\D/,'').to_i + @page.precio_segunda_tarjeta_element.text.gsub(/\D/,'').to_i).should be_within(2).of(@itinerario_checkout.tarifas["total"].value)
113
+ end
114
+
115
+ Y(/^espero el popup de error de tarjeta$/) do
116
+ @page.popup_error_multipleoneway_element.when_visible(timeout = 5)
117
+ pending("Se mostro el popup de error en 2 tc") if @page.popup_error_multipleoneway_element.present?
118
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  Entonces(/^(?:verifico|valido) que se muestren los filtros de estadia$/) do
3
- @page.execute_script("javascript:void($('.ux-common-filter-toggle').click())") unless @page.browser.div(:class,'ux-common-filter-body').present?
3
+ @page.browser.div(:id,'inline-filters-VERTICAL_FILTERS-wrapper').li(:class,'inline-filters-item inline-filters-item-departures inline-fitlers-detail-title').span(:class,'inline-filters-item-content').click unless @page.browser.div(:class,'ux-common-filter-body').present?
4
4
  @page.filtro_salidas_element.should visible("filtros de salidas")
5
5
  end
@@ -29,11 +29,7 @@ end
29
29
  Entonces(/^valido el sorting de landing$/) do
30
30
  doc = Hpricot.parse(@page.orden_element.html)
31
31
  options = (doc/"option").collect{|option| option.attributes['value']}
32
- if AllPages.site=="BR"
33
- @page.orden_element.value.should match("FARE_ASCENDING")
34
- elsif AllPages.site != "MX"
35
- @page.orden_element.value.should match("TOTALFARE_ASCENDING")
36
- end
32
+ @page.orden_element.value.should match("FARE_ASCENDING")
37
33
  options.should include?("FARE_ASCENDING")
38
34
  options.should include?("STOPSCOUNT_ASCENDING")
39
35
  options.should include?("TOTALFARE_ASCENDING")
@@ -16,22 +16,16 @@ end
16
16
  Entonces(/^(?:verifico|valido) las ociones de ordenamiento$/) do
17
17
  doc = Hpricot.parse(@page.orden_element.html)
18
18
  options = (doc / 'option').map { |option| option.attributes['value'] }
19
- value=@page.recuperar_valor_abtesting("defaultSortingStrategy")
20
- if value<20
21
- options.should include?('TOTAL_FARE_YIELD_ASCENDING') unless AllPages.site == 'BR'
22
- @page.orden_element.value.should match('FARE_YIELD_ASCENDING') if AllPages.site == 'BR'
23
- else
24
- options.should include?('TOTALFARE_ASCENDING')
25
- @page.orden_element.value.should match('FARE_ASCENDING') if AllPages.site == 'BR'
26
- end
27
- options.should include?('FARE_ASCENDING') unless AllPages.site == 'BR'
28
- options.should include?('STOPSCOUNT_ASCENDING')
29
- options.should include?('DURATION_ASCENDING')
30
- options.should include?('PERSONAL_ASCENDING')
31
- options.should_not include?('FLIGHTCLASS_ASCENDING')
32
- options.should_not include?('FARE_DESCENDING')
33
- options.should_not include?('STOPSCOUNT_DESCENDING')
34
- options.should_not include?('TOTALFARE_DESCENDING')
19
+ options.should include?('TOTALFARE__ASCENDING')
20
+ @page.orden_element.value.should match('FARE__ASCENDING') if AllPages.site == 'BR'
21
+ options.should include?('FARE__ASCENDING') unless AllPages.site == 'BR'
22
+ options.should include?('STOPSCOUNT__ASCENDING')
23
+ options.should include?('DURATION__ASCENDING')
24
+ options.should include?('PERSONAL__ASCENDING')
25
+ options.should_not include?('FLIGHTCLASS__ASCENDING')
26
+ options.should_not include?('FARE__DESCENDING')
27
+ options.should_not include?('STOPSCOUNT__DESCENDING')
28
+ options.should_not include?('TOTALFARE__DESCENDING')
35
29
  end
36
30
 
37
31
  Entonces(/^elijo moneda local$/) do
@@ -48,7 +42,7 @@ Entonces(/^filtro por un itinerario en la matriz$/) do
48
42
  end
49
43
 
50
44
  Entonces(/^(?:verifico|valido) la base tarifaria$/) do
51
- Watir::Wait.until(timeout = 20){@page.precio_itinerario_pe_element.present? or @page.precio_itinerario_mx_element.present? or @page.precio_itinerario_element.present?}
45
+ Watir::Wait.until(timeout = 20){@page.precio_itinerario_dolar_element.present? or @page.precio_itinerario_pe_element.present? or @page.precio_itinerario_mx_element.present? or @page.precio_itinerario_element.present?}
52
46
  if @page.desglose_element.present?
53
47
  @basefare = 'tot'
54
48
  else
@@ -246,7 +246,7 @@ end
246
246
  Cuando(/^Recupero los precios limites de la lista$/) do
247
247
  if AllPages.site.match("MX|PE|UY|BR|CR|PA")
248
248
  @li_class = "span.fare"
249
- @page.orden_element.select_value("FARE_ASCENDING")
249
+ @page.orden_element.select_value("FARE__ASCENDING")
250
250
  step "espero que termine de cargar la pagina de resultados"
251
251
  else
252
252
  @li_class = "li.fare-price"
@@ -14,6 +14,9 @@ module NewCheckout
14
14
  div(:modulo_primer_tarjeta_nf,:id=>"paymentContainerDefinition.multipleCardPaymentDefinitions[0].paymentDefinition")
15
15
  div(:modulo_segunda_tarjeta_nf,:id=>"paymentContainerDefinition.multipleCardPaymentDefinitions[1].paymentDefinition")
16
16
 
17
+ span(:precio_primer_tarjeta,:id=>"payment-price_0")
18
+ span(:precio_segunda_tarjeta,:id=>"payment-price_1")
19
+
17
20
  def cargar_datos_pago(modulo)
18
21
  @provider = self.provider
19
22
  if provider == "VOL"
@@ -20,6 +20,7 @@ module Landing
20
20
  element(:precio_itinerario, :span, :css=>".cluster .fare .price-currency")
21
21
  element(:precio_itinerario_mx, :span, :css=>".cluster .total-price-only .price-currency")
22
22
  element(:precio_itinerario_pe, :span, :css=>".cluster .fare .PEN")
23
+ element(:precio_itinerario_dolar, :span, :css=>".cluster .fare .USD")
23
24
  element(:itinerario, :div, :css=>"#clusters .cluster")
24
25
  element(:desglose,:li,:css=>"#clusters .cluster .fare-detail li")
25
26
  element(:filtro_salidas,:checkbox,:css=>".ux-flights-filter-departures input")
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.4.88"
2
+ VERSION = "2.4.89"
3
3
  end
@@ -29,9 +29,11 @@ Característica: checkout.2_tc
29
29
  Y cargo los datos de tarjetas
30
30
  Y si el site es "AR|MX|PE|EC|BR", cargo los datos de facturacion para 2 tc
31
31
  Y cargo los datos de contacto
32
+ Y verifico los precios mostrados para cada tarjeta
32
33
  Y verifico que los datos cargados sean mostrados correctamente al lado del boton comprar
33
34
  Cuando acepto y compro
34
35
  Entonces espero que termine el pedido de compra
36
+ Entonces espero el popup de error de tarjeta
35
37
  Y verifico si no trae errores
36
38
  Entonces si aparece el popup de no disponibilidad, elijo un itinerario del popup de no disponibilidad
37
39
  Entonces espero que termine de cargar la pagina de gracias
@@ -50,23 +52,13 @@ Característica: checkout.2_tc
50
52
  Ejemplos:
51
53
  |pais|tipo|cabotage|
52
54
  |CL |roundtrip|true|
53
- @ar
54
- @roundtrip
55
- Ejemplos:
56
- |pais|tipo|cabotage|
57
- |AR |roundtrip|true|
58
- @mx
59
- @roundtrip
60
- Ejemplos:
61
- |pais|tipo|cabotage|
62
- |MX |roundtrip|true|
63
- @pe
55
+ @cl
64
56
  @oneway
65
57
  Ejemplos:
66
58
  |pais|tipo|cabotage|
67
- |PE |oneway|true|
68
- @co
59
+ |CL |oneway|true|
60
+ @cl
69
61
  @multipledestinations
70
62
  Ejemplos:
71
63
  |pais|tipo|cabotage|
72
- |CO |multipledestinations|nil|
64
+ |CL |multipledestinations|nil|
@@ -12,8 +12,7 @@ Característica: results.itineraries
12
12
  Cuando espero que termine de cargar la pagina de resultados
13
13
  Cuando pruebo angular
14
14
  Entonces verifico que traiga resultados
15
- Cuando si el ordenamiento es YIELD, ordeno por "TOTAL_FARE_YIELD_ASCENDING"
16
- Cuando si el ordenamiento no es YIELD, ordeno por "TOTALFARE_ASCENDING"
15
+ Cuando ordeno por "TOTALFARE_ASCENDING"
17
16
  Cuando espero que termine de cargar la pagina de resultados
18
17
  Y cierro popups
19
18
  Entonces recorro y verifico cada itinerario
@@ -10,7 +10,6 @@ Característica: results.orders
10
10
  Cuando realizo la busqueda
11
11
  Entonces verifico que la pagina no rompa
12
12
  Cuando espero que termine de cargar la pagina de resultados
13
- Entonces ingreso a resultados con cookie "defaultSortingStrategy" al "50"
14
13
  Cuando pruebo angular
15
14
  Entonces verifico que traiga resultados
16
15
  Cuando ordeno por "<order>"
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.88
4
+ version: 2.4.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-29 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container