flights_gui_tests 2.4.88 → 2.4.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/features/step_definitions/checkout/load_steps.rb +1 -1
- data/features/step_definitions/checkout/verifications_steps.rb +8 -3
- data/features/step_definitions/landing/filters_steps.rb +1 -1
- data/features/step_definitions/landing/landing_steps.rb +1 -5
- data/features/step_definitions/results/basefare_steps.rb +11 -17
- data/features/step_definitions/results/filters_steps.rb +1 -1
- data/features/support/modules/checkout/new_checkout/2tc.rb +3 -0
- data/features/support/pages/landing/search_page.rb +1 -0
- data/features/support/version.rb +1 -1
- data/features/tests/checkout/2_tc.feature +6 -14
- data/features/tests/results/itineraries.feature +1 -2
- data/features/tests/results/orders.feature +0 -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: f68504ea3c0f2cdb4ee61c202429f0360d1f63a4
|
|
4
|
+
data.tar.gz: 0dda5a6afee6a4eee5b2f9a502745cbf79efa477
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
20
|
-
if
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
options.
|
|
28
|
-
options.
|
|
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("
|
|
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")
|
data/features/support/version.rb
CHANGED
|
@@ -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
|
-
@
|
|
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
|
-
|
|
|
68
|
-
@
|
|
59
|
+
|CL |oneway|true|
|
|
60
|
+
@cl
|
|
69
61
|
@multipledestinations
|
|
70
62
|
Ejemplos:
|
|
71
63
|
|pais|tipo|cabotage|
|
|
72
|
-
|
|
|
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
|
|
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.
|
|
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
|
|
11
|
+
date: 2016-05-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: henry-container
|