flights_gui_tests 0.0.29 → 0.0.30

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: 3a6a65e867b62a25951f8dd14ccf3a0840177eee
4
- data.tar.gz: e197f754e23af36275e9350814af61cca51f3192
3
+ metadata.gz: 1e56090f01a0de8d04b593d31071889831038d78
4
+ data.tar.gz: e2508721ccf42af0613d3911f89e98a16d3a73c7
5
5
  SHA512:
6
- metadata.gz: 9c699cfa1fbe171d09d840c2b014c07599b857a711c33b76d968ab551b9d45647572d2d3c6c724df29f3e447c2ec983b1640b06677de5f7f8a6fb242b8892e3a
7
- data.tar.gz: 213b3cdd366e08d8c961cbe09484a625eb261e65ad7768af23226319de1d8ff6ec51350fdb22c34ae50afd3f71d7586b9237724cfca4e5dd5b25c43f0ab8e350
6
+ metadata.gz: cf18e2e0f019e665f6390c3f7d500ff9d846861ab4c6c6dddf64aedbb968460edb8b16ea6ef0541e7c00af23e71609f4ed2f644efafdad30e4cb7aed2175e15c
7
+ data.tar.gz: 7ed654ed097300544d4d0554ada89c2ce857e91ce9bb692acdb0fdb18537cb3f6e227833998d75f3d055fd05a97f6849312306c608a18030b958f0adcbdd5a33
@@ -25,12 +25,15 @@ end
25
25
 
26
26
  Entonces(/^espero que termine el pedido de compra$/) do
27
27
  @page.popup_transicion_compra_element.when_not_visible(timeout=200)
28
- Watir::Wait.until(timeout=200){@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.error_datos_element.present? or @page.notificacion_error_element.present? or @page.notificacion_warning_element.present? or @page.notificacion_error_ux_element.present?}
28
+ Watir::Wait.until(timeout=200){@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.error_datos_element.present? or @page.notificacion_error_element.present? or @page.notificacion_warning_element.present? or @page.notificacion_error_ux_element.present?}
29
29
  end
30
30
 
31
31
  Y(/^verifico si no trae errores$/) do
32
32
  if @page.notificacion_warning_ux_element.present?
33
- pending(@page.notificacion_warning_ux_element.text) unless @popup_no_disponibilidad_page or @page.checkout_id_element.present? or @page.checkout_id_cash_element.present?
33
+ pending(@page.notificacion_warning_ux_element.text) unless @page.popup_nuevo_vuelo_element.present? or @page.checkout_id_element.present? or @page.checkout_id_cash_element.present?
34
+ end
35
+ if @page.mensaje_error_ux_element.present?
36
+ 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?
34
37
  end
35
38
  if @page.notificacion_error_element.present?
36
39
  pending(@page.notificacion_error_element.text)
@@ -19,7 +19,7 @@ end
19
19
 
20
20
  Cuando(/^elijo un itinerario y paso a checkout$/) do
21
21
  @page.cargar_itinerarios
22
- @index, permitida = @page.sanear_itinerarios(["DL","Y4"])
22
+ @index, permitida = @page.sanear_itinerarios(["DL","Y4","4O"])
23
23
  pending("No se encontraron vuelos de aerolineas permitidas") unless permitida
24
24
  @itinerario_resultados = @page.elegir_itinerario(@index)
25
25
  end
@@ -196,5 +196,5 @@ end
196
196
  Y(/^verifico el pixel de doubleclick/) do
197
197
  pixel_doubleclick = @page.buscar_elemento_por_atributo("iframe","src","fls.doubleclick").first
198
198
  pixel_doubleclick.should be_true
199
- pixel_doubleclick.attributes['src'].should equal("https://4487021.fls.doubleclick.net/activityi;src=4487021;type=sales;cat=MEmL6cH6;qty=#{@page.manage_data.get_childrens+@page.manage_data.adt};cost=0;u1=BRL;u3=[PRODUCT];ord=#{@id_reserva}?")
199
+ pixel_doubleclick.attributes['src'].should match("https://4487021.fls.doubleclick.net/activityi;src=4487021;type=sales;cat=MEmL6cH6;qty=#{@page.manage_data.get_childrens+@page.manage_data.adt};cost=(.+);u1=BRL;u3=flights;ord=#{@id_reserva}?")
200
200
  end
@@ -29,6 +29,7 @@ module Checkout
29
29
  div(:notificacion_error,:class=>"notification-box error-box")
30
30
  div(:notificacion_warning,:class=>"notification-box warn-box")
31
31
  div(:notificacion_warning_ux,:class=>"ux-common-message ux-common-message-warning ")
32
+ div(:mensaje_error_ux,:class=>"ux-common-message ux-common-message-error ")
32
33
  div(:notificacion_error_ux,:class=>"ux-common-error")
33
34
  div(:boton_si_cambio_precio,:class=>"button-yes")
34
35
  div(:agencia_afiliada,:id=>"agency")
@@ -104,7 +104,7 @@ module Results
104
104
  end
105
105
 
106
106
  def datos_itinerario()
107
- index, permitida = sanear_itinerarios(["DL","Y4"])
107
+ index, permitida = sanear_itinerarios(["DL","Y4","4O"])
108
108
  @datos_de_itinerarios[index]
109
109
  end
110
110
  end
@@ -36,6 +36,7 @@ Característica: checkout.book_ok
36
36
  Y verifico el tag de datalayer
37
37
  Y verifico el pixel de Efrontier
38
38
  Y si el site es "BR", verifico el pixel de doubleclick
39
+
39
40
  @ar
40
41
  @roundtrip
41
42
  Ejemplos:
@@ -15,7 +15,7 @@
15
15
 
16
16
  gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
17
17
 
18
- gem.version = '0.0.29' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
18
+ gem.version = '0.0.30' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
19
19
 
20
20
  gem.add_dependency('henry-container', '>= 0.1.39')
21
21
  gem.add_dependency('page-object')
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: 0.0.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez,lsimean
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-27 00:00:00.000000000 Z
11
+ date: 2014-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container