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 +4 -4
- data/features/step_definitions/checkout/load_steps.rb +5 -2
- data/features/step_definitions/results/results_steps.rb +1 -1
- data/features/step_definitions/tags_steps.rb +1 -1
- data/features/support/pages/checkout/checkout_page.rb +1 -0
- data/features/support/pages/results/search_page.rb +1 -1
- data/features/tests/checkout/book_ok.feature +1 -0
- data/flights_gui_tests.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e56090f01a0de8d04b593d31071889831038d78
|
4
|
+
data.tar.gz: e2508721ccf42af0613d3911f89e98a16d3a73c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 @
|
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
|
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")
|
data/flights_gui_tests.gemspec
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
|
17
17
|
|
18
|
-
gem.version = '0.0.
|
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.
|
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-
|
11
|
+
date: 2014-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|