flights_gui_tests 2.4.97 → 2.4.98
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/verifications_steps.rb +4 -1
- data/features/step_definitions/results/load_steps.rb +1 -5
- data/features/step_definitions/results/new_filters_steps.rb +2 -2
- data/features/step_definitions/results/results_steps.rb +4 -0
- data/features/step_definitions/thanks/thanks_steps.rb +3 -3
- data/features/support/env.rb +2 -2
- data/features/support/modules/checkout/new_checkout/fast_checkout.rb +1 -1
- data/features/support/modules/results/filters.rb +4 -4
- data/features/support/pages/results/search_page.rb +6 -0
- data/features/support/version.rb +1 -1
- data/features/tests/checkout/2_tc.feature +19 -4
- 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: 845848e37d9f1f186a03b9ee8acce708cf8841b0
|
4
|
+
data.tar.gz: 2fd81b3af4fc5cb4e31ba4f9334d78d072771fe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 264d16888243ddee269b9a41c7d7bda5ab7608c41415d1f48e3469b717118b1d437adec5dd830b9bec80830da108f63362169e7658f48abf2b8a42c355f3105d
|
7
|
+
data.tar.gz: ca004ed7e4fd97dc5b355f1697cb8a3c752ca951ec9f31a945bc84fb874d57976690e8b083c2710ce05fccc1fa426ded9e165bb20851ae94dcd8c2b0560141ed
|
@@ -118,6 +118,9 @@ Y(/^verifico los precios mostrados para cada tarjeta$/) do
|
|
118
118
|
end
|
119
119
|
|
120
120
|
Y(/^espero el popup de error de tarjeta$/) do
|
121
|
-
|
121
|
+
begin
|
122
|
+
@page.multipleoneway_popup_error_element.when_visible(timeout = 15)
|
123
|
+
rescue
|
124
|
+
end
|
122
125
|
pending("Se mostro el popup de error en 2 tc") if @page.popup_error_multipleoneway_element.present?
|
123
126
|
end
|
@@ -128,11 +128,7 @@ Cuando(/^ingreso a resultados con cookie "(.+)" al "(.+)"$/) do |key,value|
|
|
128
128
|
end
|
129
129
|
|
130
130
|
Entonces(/^pruebo angular$/) do
|
131
|
-
|
132
|
-
step "ingreso a resultados con cookie \"useAngular\" al \"1\""
|
133
|
-
else
|
134
|
-
step "ingreso a resultados con cookie \"useAngular\" al \"61\""
|
135
|
-
end
|
131
|
+
$HENRY_PARAMS['angular'] = true
|
136
132
|
end
|
137
133
|
|
138
134
|
Entonces(/^pruebo angular con valor "(.*)"$/) do |val|
|
@@ -27,13 +27,13 @@ Cuando(/^abro los filtros de aeropuertos$/) do
|
|
27
27
|
end
|
28
28
|
|
29
29
|
Cuando(/^elijo un aeropuerto de origen a aplicar - filtros nuevo -$/) do
|
30
|
-
options = @page.browser.div(:class,'inline-filters-detail-airports').divs(:class,'inline-filters-2-panel')[0].lis(:class,'item').select { |option| option.checkbox.present? and !option.checkbox.id.match(/inline-filters-airport-outbound-all|airport-outbound-all|airport-outbound-unique|inline-filters-airport-outbound-unique/)}
|
30
|
+
options = @page.browser.div(:class,'inline-filters-detail-airports').divs(:class,'inline-filters-2-panel')[0].lis(:class,'item').select { |option| option.checkbox.present? and !option.checkbox.id.match(/inline-filters-airport-outbound-all|airport-outbound-all|airport-outbound-unique|inline-filters-airport-outbound-unique/) and !option.checkbox.value.match(/NA|true/)}
|
31
31
|
@airport = options[rand(options.length)]
|
32
32
|
@total = @airport.span(:class,'total').text.gsub(/\D/,'').to_i
|
33
33
|
end
|
34
34
|
|
35
35
|
Cuando(/^elijo un aeropuerto de destino a aplicar - filtros nuevo -$/) do
|
36
|
-
options = @page.browser.div(:class,'inline-filters-detail-airports').divs(:class,'inline-filters-2-panel')[1].lis(:class,'item').select { |option| option.checkbox.present? and !option.checkbox.id.match(/inline-filters-airport-inbound-all|airport-inbound-all|airport-inbound-unique|inline-filters-airport-inbound-unique/)}
|
36
|
+
options = @page.browser.div(:class,'inline-filters-detail-airports').divs(:class,'inline-filters-2-panel')[1].lis(:class,'item').select { |option| option.checkbox.present? and !option.checkbox.id.match(/inline-filters-airport-inbound-all|airport-inbound-all|airport-inbound-unique|inline-filters-airport-inbound-unique/) and !option.checkbox.value.match(/NA|true/)}
|
37
37
|
@airport = options[rand(options.length)]
|
38
38
|
@total = @airport.span(:class,'total').text.gsub(/\D/,'').to_i
|
39
39
|
end
|
@@ -17,6 +17,10 @@ Cuando(/^(?:verifico|valido) que las datos de la pagina sean consistente a la bu
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
Cuando(/elijo la opcion mas baratos/) do
|
21
|
+
@page.elegir_mas_barato
|
22
|
+
end
|
23
|
+
|
20
24
|
Cuando(/^elijo un itinerario y paso a checkout$/) do
|
21
25
|
@page.cargar_itinerarios
|
22
26
|
@index, permitida = 0, true
|
@@ -152,7 +152,7 @@ Entonces(/^verifico que se muestra la encuesta de satisfaccion$/) do
|
|
152
152
|
end
|
153
153
|
|
154
154
|
Y(/^verifico los precios mostrados para cada tarjeta en gracias$/) do
|
155
|
-
primer_precio = @page.precios_tarjetas_elements[0].text
|
156
|
-
segundo_precio = @page.precios_tarjetas_elements[1].text
|
157
|
-
(primer_precio.
|
155
|
+
primer_precio = Price.new(@page.precios_tarjetas_elements[0].text)
|
156
|
+
segundo_precio = Price.new(@page.precios_tarjetas_elements[1].text)
|
157
|
+
(primer_precio.value + segundo_precio.value).should be_within(2).of(@itinerario_gracias.tarifas["total"].value)
|
158
158
|
end
|
data/features/support/env.rb
CHANGED
@@ -83,8 +83,8 @@ end
|
|
83
83
|
$ENV = $HENRY_PARAMS['env']
|
84
84
|
|
85
85
|
$date = Dater::Resolver.new("%Y-%m-%d","es")
|
86
|
-
|
87
|
-
|
86
|
+
#$aerolineas_prohibidas = ["DL", "AA", "US", "LA", "4M", "LP", "XL", "Y4", "TK","CM","AV"]
|
87
|
+
$aerolineas_prohibidas = []
|
88
88
|
|
89
89
|
|
90
90
|
@@error_navegador = nil
|
@@ -17,7 +17,7 @@ module NewCheckout
|
|
17
17
|
|
18
18
|
elements(:container_tarjetas,:ul,:class=>"card-container")
|
19
19
|
|
20
|
-
|
20
|
+
div(:usuario_logueado_checkout,:css=>"#checkout-login .logged-in")
|
21
21
|
|
22
22
|
radio_button(:opcion_tarjeta_guardada,:css=>"#stored-cards .radio")
|
23
23
|
|
@@ -49,10 +49,10 @@ module Results
|
|
49
49
|
span(:remover_filtro_de_horario_de_ida,:id=>"inline-filters-time-outbound-slider-applied")
|
50
50
|
span(:remover_filtro_de_horario_de_vuelta,:id=>"inline-filters-time-inbound-slider-applied")
|
51
51
|
span(:remover_filtro_de_precio,:id=>"inline-filters-price-slider-applied")
|
52
|
-
checkbox(:remover_filtro_de_aerolinea,:
|
53
|
-
checkbox(:remover_filtro_de_aeropuerto_origen,:
|
54
|
-
checkbox(:remover_filtro_de_aeropuerto_destino,:
|
55
|
-
checkbox(:remover_filtro_de_escalas,:
|
52
|
+
checkbox(:remover_filtro_de_aerolinea,:name=>"inline-filters-airlines")
|
53
|
+
checkbox(:remover_filtro_de_aeropuerto_origen,:name=>"inline-filters-outboundAirports")
|
54
|
+
checkbox(:remover_filtro_de_aeropuerto_destino,:name=>"inline-filters-inboundAirports")
|
55
|
+
checkbox(:remover_filtro_de_escalas,:name=>"inline-filters-stops")
|
56
56
|
checkbox(:limpiar_filtro_aerolinea,:id=>"airlines-all")
|
57
57
|
checkbox(:limpiar_filtro_aeropuerto_salida,:id=>"airport-outbound-all")
|
58
58
|
checkbox(:limpiar_filtro_aeropuerto_llegada,:id=>"airport-inbound-all")
|
@@ -23,6 +23,7 @@ module Results
|
|
23
23
|
div(:nuevo_cluster,:css=>".inline-detail-clusters-style")
|
24
24
|
div(:barra_progreso,:class=>'progress-bar')
|
25
25
|
link(:link_mejor_precio,:id=>"best-price")
|
26
|
+
span(:boton_mas_barato,:css=>".tabs-item .price-amount")
|
26
27
|
|
27
28
|
span(:header_mejor_precio,:class=>"nibbler-common-header-bestprice-inside ")
|
28
29
|
span(:loader,:class=>"loader-content")
|
@@ -109,6 +110,11 @@ module Results
|
|
109
110
|
return json
|
110
111
|
end
|
111
112
|
|
113
|
+
|
114
|
+
def elegir_mas_barato
|
115
|
+
boton_mas_barato_element.click
|
116
|
+
end
|
117
|
+
|
112
118
|
def reset_itinerarios
|
113
119
|
@datos_de_itinerarios = []
|
114
120
|
end
|
data/features/support/version.rb
CHANGED
@@ -33,7 +33,7 @@ Característica: checkout.2_tc
|
|
33
33
|
Y verifico que los datos cargados sean mostrados correctamente al lado del boton comprar
|
34
34
|
Cuando acepto y compro
|
35
35
|
Entonces espero que termine el pedido de compra
|
36
|
-
|
36
|
+
Entonces espero el popup de error de tarjeta
|
37
37
|
Y verifico si no trae errores
|
38
38
|
Entonces si aparece el popup de no disponibilidad, elijo un itinerario del popup de no disponibilidad
|
39
39
|
Entonces espero que termine de cargar la pagina de gracias
|
@@ -51,14 +51,29 @@ Característica: checkout.2_tc
|
|
51
51
|
@roundtrip
|
52
52
|
Ejemplos:
|
53
53
|
|pais|tipo|cabotage|
|
54
|
-
|AR |roundtrip|
|
54
|
+
|AR |roundtrip|nil|
|
55
55
|
@ar
|
56
56
|
@oneway
|
57
57
|
Ejemplos:
|
58
58
|
|pais|tipo|cabotage|
|
59
|
-
|AR |oneway|
|
59
|
+
|AR |oneway|nil|
|
60
60
|
@ar
|
61
61
|
@multipledestinations
|
62
62
|
Ejemplos:
|
63
63
|
|pais|tipo|cabotage|
|
64
|
-
|AR |multipledestinations|nil|
|
64
|
+
|AR |multipledestinations|nil|
|
65
|
+
@cl
|
66
|
+
@roundtrip
|
67
|
+
Ejemplos:
|
68
|
+
|pais|tipo|cabotage|
|
69
|
+
|CL |roundtrip|nil|
|
70
|
+
@cl
|
71
|
+
@oneway
|
72
|
+
Ejemplos:
|
73
|
+
|pais|tipo|cabotage|
|
74
|
+
|CL |oneway|nil|
|
75
|
+
@cl
|
76
|
+
@multipledestinations
|
77
|
+
Ejemplos:
|
78
|
+
|pais|tipo|cabotage|
|
79
|
+
|CL |multipledestinations|nil|
|
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.98
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|