flights_gui_tests 0.2.1 → 0.2.2
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/landing/filters_steps.rb +4 -0
- data/features/step_definitions/landing/long_tail_steps.rb +3 -2
- data/features/step_definitions/landing/new_landing_steps.rb +2 -1
- data/features/step_definitions/results/filters_steps.rb +2 -1
- data/features/support/modules/results/filters.rb +1 -0
- data/features/tests/checkout/agency.feature +27 -5
- data/flights_gui_tests.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e49de1db0ea09fd7b330a8ac459ee50e32f244f9
|
4
|
+
data.tar.gz: 57462a6449dad48da1e6a730144ca0120cb44e39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 870e5094a0ea5155a32b1f259f0992a76f8e6944efde37631a2d21d86b5b95898ede2f075c5e6b74c46c8f8f071cf6fb91c9f8e3028f01e81ed1d1b0aedf20d5
|
7
|
+
data.tar.gz: a670b3cf67fbf76600895f8b99727f4511b790dc0f886bf9305620f6ea9279f0730fae6f5120091a1e68f047c03a64d3c9bc32c1b67a62f49e4e93b6b514e77d
|
@@ -27,7 +27,7 @@ end
|
|
27
27
|
|
28
28
|
Entonces(/^verifico las nuevas urls de vuelos a destino por aeropuerto de llegada$/) do
|
29
29
|
doc = Hpricot.parse(@page.html)
|
30
|
-
options = (doc/"div.ux-flights-filter-destinyairports li.item").select { |option| !(option / "input")[0].attributes['id'].match(/airport-
|
30
|
+
options = (doc/"div.ux-flights-filter-destinyairports li.item").select { |option| !(option / "input")[0].attributes['id'].match(/airport-inbound-all|airport-inbound-unique/)}
|
31
31
|
@airport = options[rand(options.length)]
|
32
32
|
puts @page.manage_data.generate_url_landing_arrival_airport((@airport/"input").first.attributes['value'])
|
33
33
|
@page.ir(@page.manage_data.generate_url_landing_arrival_airport((@airport/"input").first.attributes['value']))
|
@@ -35,8 +35,9 @@ end
|
|
35
35
|
|
36
36
|
Cuando(/^verifico las nuevas urls de vuelos a destino por aeropuerto de salida$/) do
|
37
37
|
doc = Hpricot.parse(@page.html)
|
38
|
-
options = (doc/"div.ux-flights-filter-originairports li.item").select { |option| !(option / "input")[0].attributes['id'].match(/airport-
|
38
|
+
options = (doc/"div.ux-flights-filter-originairports li.item").select { |option| !(option / "input")[0].attributes['id'].match(/airport-outbound-all|airport-outbound-unique/)}
|
39
39
|
@airport = options[rand(options.length)]
|
40
|
+
puts @page.manage_data.generate_url_landing_origin_airport((@airport/"input").first.attributes['value'],@arrival)
|
40
41
|
@page.ir(@page.manage_data.generate_url_landing_origin_airport((@airport/"input").first.attributes['value'],@arrival))
|
41
42
|
end
|
42
43
|
|
@@ -16,7 +16,8 @@ Entonces(/^ingreso y espero que cargue la vieja pagina de landing$/) do
|
|
16
16
|
step "fuerzo el abztesting de \"applicationType\" al \"55\""
|
17
17
|
sleep(1)
|
18
18
|
@page.load_page(@page.tipo_de_busqueda,AllPages.site,$ENV)
|
19
|
-
|
19
|
+
Watir::Wait.until(timeout = 100){@page.titulo_element.present? or @page.mensaje_sin_resultados_element.present?}
|
20
|
+
@page.mensaje_sin_resultados_element.should_not visible("Sin resultados")
|
20
21
|
end
|
21
22
|
end
|
22
23
|
|
@@ -19,6 +19,7 @@ Cuando(/^elijo una aerolinea a aplicar$/) do
|
|
19
19
|
end
|
20
20
|
|
21
21
|
Entonces(/^filtro por aerolinea$/) do
|
22
|
+
@page.ver_mas_aerolineas_element.click if @page.ver_mas_aerolineas_element.present?
|
22
23
|
@page.browser.checkbox(:id, (@airline / 'input').first.attributes['id']).set
|
23
24
|
end
|
24
25
|
|
@@ -57,7 +58,7 @@ Cuando(/^elijo un aeropuerto (outbound|inbound) a aplicar$/) do |_class|
|
|
57
58
|
else
|
58
59
|
_clase = 'destiny'
|
59
60
|
end
|
60
|
-
options = (doc / "div.ux-flights-filter-#{_clase}airports li.item").select { |option| !(option / "input")[0].attributes['id'].match(/airport-#{_class}-all|airport-#{_class}-unique/)}
|
61
|
+
options = (doc / "div.ux-flights-filter-#{_clase}airports li.item").select { |option| !(option / "input")[0].attributes['id'].match(/airport-#{_class}-all|airport-#{_class}-unique/) and !(option / "input.ux-common-filter-disabled")[0]}
|
61
62
|
@airport = options[rand(options.length)]
|
62
63
|
@total = (@airport / 'span.total').inner_text.strip.to_i
|
63
64
|
end
|
@@ -11,6 +11,7 @@ module Results
|
|
11
11
|
link(:limpiar_filtro_precio,:id=>"flights-price-filter-clean")
|
12
12
|
link(:aplicar_filtro_precio,:class=>"ux-common-filter-apply apply")
|
13
13
|
link(:remover_ultima_accion,:class=>"remove-last-action")
|
14
|
+
link(:ver_mas_aerolineas, :class=>"ux-common-filter-more")
|
14
15
|
|
15
16
|
div(:filtros_precio,:id=>"ux-flights-filters")
|
16
17
|
div(:slider_horario_salida,:css=>".ux-flights-filter-outboundhours-slider")
|
@@ -24,10 +24,6 @@ Característica: checkout.agency
|
|
24
24
|
Y verifico los datos del vuelo comprado
|
25
25
|
Y verifico los valores del desglose en gracias contra los del checkout
|
26
26
|
|
27
|
-
@br
|
28
|
-
Ejemplos:
|
29
|
-
|pais|cabotage|tipo|
|
30
|
-
|BR|nil|oneway|
|
31
27
|
@us
|
32
28
|
Ejemplos:
|
33
29
|
|pais|cabotage|tipo|
|
@@ -35,4 +31,30 @@ Característica: checkout.agency
|
|
35
31
|
@ar
|
36
32
|
Ejemplos:
|
37
33
|
|pais|cabotage|tipo|
|
38
|
-
|AR|true|oneway|
|
34
|
+
|AR|true|oneway|
|
35
|
+
|
36
|
+
@agency
|
37
|
+
Esquema del escenario: Se ingresa a la pagina de checkout para una agencia afiliada.
|
38
|
+
Cuando ingreso a la pagina de checkout de agencia en "<pais>" para una busqueda "<tipo>" del tipo "<cabotage>"
|
39
|
+
Cuando espero que termine de cargar la pagina de checkout
|
40
|
+
Entonces verifico que ingrese al checkout
|
41
|
+
Y verifico que la pagina no rompa
|
42
|
+
Y si existe la opcion de cobertura, elijo "no_chequear" si quiero cobertura
|
43
|
+
Y verifico los datos de agencia afiliada
|
44
|
+
Entonces cargo los pasajeros
|
45
|
+
Y espero que termine de cargar la pagina de checkout
|
46
|
+
Y cargo los datos de contacto
|
47
|
+
Cuando acepto y compro
|
48
|
+
Entonces espero que termine el pedido de compra
|
49
|
+
Y verifico si no trae errores
|
50
|
+
Entonces si aparece el popup de no disponibilidad, elijo un itinerario del popup de no disponibilidad
|
51
|
+
Entonces espero que termine de cargar la pagina de gracias
|
52
|
+
Y verifico que ingrese a la pagina de gracias
|
53
|
+
Y verifico el popup de asistencia al viajero
|
54
|
+
Y verifico los datos del vuelo comprado
|
55
|
+
Y verifico los valores del desglose en gracias contra los del checkout
|
56
|
+
|
57
|
+
@br
|
58
|
+
Ejemplos:
|
59
|
+
|pais|cabotage|tipo|
|
60
|
+
|BR|nil|oneway|
|
data/flights_gui_tests.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
|
15
15
|
gem.require_paths = ["lib"] # Usualmente es solo lib -> ["lib"]
|
16
16
|
|
17
|
-
gem.version = '0.2.
|
17
|
+
gem.version = '0.2.2' # La version se debe incrementar cada vez que se desea publicar una nueva version del test.
|
18
18
|
|
19
19
|
gem.add_dependency('henry-container', '>= 0.1.39')
|
20
20
|
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.2.
|
4
|
+
version: 0.2.2
|
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-10-
|
11
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|
@@ -206,6 +206,7 @@ files:
|
|
206
206
|
- features/step_definitions/desambiguation_steps.rb
|
207
207
|
- features/step_definitions/devtools_steps.rb
|
208
208
|
- features/step_definitions/flights_tracker/flights_tracker_steps.rb
|
209
|
+
- features/step_definitions/landing/filters_steps.rb
|
209
210
|
- features/step_definitions/landing/itineraries_steps.rb
|
210
211
|
- features/step_definitions/landing/landing_steps.rb
|
211
212
|
- features/step_definitions/landing/load_steps.rb
|