flights_gui_tests 0.0.47 → 0.0.48
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/landing/new_landing_steps.rb +22 -4
- data/features/support/pages/all_pages.rb +4 -0
- data/features/support/pages/landing/new_landing_page.rb +1 -1
- data/features/tests/landing/new_search.feature +1 -0
- data/features/tests/landing/orders.feature +12 -12
- 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: 892087bc14f54d0e09d8af26a228cc07f93a95c1
|
4
|
+
data.tar.gz: a745d0028b6b9ce2a36b3712d9743226cc6caaf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 390cfee6203b5a94ad3a83f2ba9138eddf66296eb67026fc89a98c57e1da44de9e8c89e9c87a967123d67f0be48d816d027cae092ca53cd8c5c70fb5bcfb2de3
|
7
|
+
data.tar.gz: 785a67a3b7c60f88049d213203ecc76a626e2e6e70a719e86136710f1700bd5311fa8a082bd46c5da81266b96f13ad5a071c25f47c0cc3ab0e5d1a6f487c9a37
|
@@ -5,14 +5,18 @@ Entonces(/^ingreso y espero que cargue la nueva pagina de landing$/) do
|
|
5
5
|
step "mostrar devtools"
|
6
6
|
step "fuerzo el abztesting por devtool de \"applicationType\" al \"11\""
|
7
7
|
sleep(1)
|
8
|
-
|
8
|
+
if @page.itinerario_element.present?
|
9
|
+
puts "Ingreso resultados"
|
10
|
+
@page.load_page(@page.tipo_de_busqueda,AllPages.site,$ENV,@ciudad_destino.code)
|
11
|
+
@page.manage_data.set_to_city(@ciudad_destino.code)
|
12
|
+
end
|
9
13
|
@page.titulo_banner_element.when_visible(timeout=100)
|
10
14
|
end
|
11
15
|
end
|
12
16
|
|
13
17
|
Cuando(/^elijo la cantidad de dias de la busqueda$/) do
|
14
|
-
@cantidad_dias = @page.dias_viaje_element.options[rand(@page.dias_viaje_element.options.length)]
|
15
|
-
@page.dias_viaje_element.select_value @cantidad_dias
|
18
|
+
@cantidad_dias = @page.dias_viaje_element.options[rand(@page.dias_viaje_element.options.length)].value
|
19
|
+
@page.dias_viaje_element.select_value @cantidad_dias
|
16
20
|
@page.loader_fare_chart_element.when_not_visible(timeout=10)
|
17
21
|
end
|
18
22
|
|
@@ -59,10 +63,24 @@ Y(/^verifico el grafico de fare chart$/) do
|
|
59
63
|
if @page.tipo_de_busqueda=='oneway'
|
60
64
|
@page.mensaje_fare_chart_element.text.no_accents.gsub(/\n/,' ').should match("de vuelos Solo ida desde (.+), saliendo en (.+)")
|
61
65
|
else
|
62
|
-
@page.mensaje_fare_chart_element.text.no_accents.gsub(/\n/,' ').should match("de vuelos Ida y vuelta desde (.+), #{@cantidad_dias
|
66
|
+
@page.mensaje_fare_chart_element.text.no_accents.gsub(/\n/,' ').should match("de vuelos Ida y vuelta desde (.+), #{@cantidad_dias} dias saliendo en (.+)")
|
63
67
|
end
|
64
68
|
end
|
65
69
|
|
66
70
|
Y(/^elijo el mes mas barato de fare chart$/) do
|
71
|
+
@page.enviar_tecla :escape
|
67
72
|
@page.mes_mas_barato_element.click
|
73
|
+
@page.enviar_tecla :escape
|
74
|
+
end
|
75
|
+
|
76
|
+
Y(/^verifico que la pagina de resultados sea la correcta$/) do
|
77
|
+
url = @page.url
|
78
|
+
if @page.tipo_de_busqueda=="roundtrip"
|
79
|
+
@page.url.should match("\/roundtrip\/#{@page.manage_data.city_from_1.code.downcase}\/#{@page.manage_data.city_to_1.code.downcase}\/....-..-..\/....-..-..\/2\/C\/0")
|
80
|
+
match = @page.url.match("\/roundtrip\/#{@page.manage_data.city_from_1.code.downcase}\/#{@page.manage_data.city_to_1.code.downcase}\/(....-..-..)\/(....-..-..)\/2\/C\/0")
|
81
|
+
dias_estadia = Date.parse(match[2])-Date.parse(match[1])
|
82
|
+
dias_estadia.to_i.should equal(@cantidad_dias.to_i)
|
83
|
+
else
|
84
|
+
@page.url.should match("\/oneway\/#{@page.manage_data.city_from_1.code.downcase}\/#{@page.manage_data.city_to_1.code.downcase}\/....-..-..\/2\/C\/0")
|
85
|
+
end
|
68
86
|
end
|
@@ -17,7 +17,7 @@ module Landing
|
|
17
17
|
div(:precio_fare_chart,:css=>".fare-chart-value-min .fare-chart-value-content")
|
18
18
|
div(:titulo,:class=>"mainTitle")
|
19
19
|
div(:warning,:class=>"ux-common-message ux-common-message-warning fare-chart-loader-text loader-text ")
|
20
|
-
div(:mes_mas_barato,:
|
20
|
+
div(:mes_mas_barato,:css=>".fare-chart-min-price .fare-chart-bar-content")
|
21
21
|
|
22
22
|
link(:ver_mas,:class=>"show-more-text-link show-more-text-more")
|
23
23
|
link(:ver_ofertas,:class=>"wizard-search-button flights-button-yes")
|
@@ -22,60 +22,60 @@ Característica: landing.orders
|
|
22
22
|
@ar
|
23
23
|
Ejemplos:
|
24
24
|
|pais|tipo|order|
|
25
|
-
|AR |oneway|
|
25
|
+
|AR |oneway|TOTALFARE_ASCENDING|
|
26
26
|
|AR |roundtrip|TOTALFARE_ASCENDING|
|
27
27
|
@br
|
28
28
|
Ejemplos:
|
29
29
|
|pais|tipo|order|
|
30
|
-
|BR |oneway|
|
30
|
+
|BR |oneway|TOTALFARE_ASCENDING|
|
31
31
|
|BR |roundtrip|TOTALFARE_ASCENDING|
|
32
32
|
@cl
|
33
33
|
Ejemplos:
|
34
34
|
|pais|tipo|order|
|
35
|
-
|CL |oneway|
|
35
|
+
|CL |oneway|TOTALFARE_ASCENDING|
|
36
36
|
|CL |roundtrip|TOTALFARE_ASCENDING|
|
37
37
|
@co
|
38
38
|
Ejemplos:
|
39
39
|
|pais|tipo|order|
|
40
|
-
|CO |oneway|
|
40
|
+
|CO |oneway|TOTALFARE_ASCENDING|
|
41
41
|
|CO |roundtrip|TOTALFARE_ASCENDING|
|
42
42
|
@cr
|
43
43
|
Ejemplos:
|
44
44
|
|pais|tipo|order|
|
45
|
-
|CR |oneway|
|
45
|
+
|CR |oneway|TOTALFARE_ASCENDING|
|
46
46
|
|CR |roundtrip|TOTALFARE_ASCENDING|
|
47
47
|
@pa
|
48
48
|
Ejemplos:
|
49
49
|
|pais|tipo|order|
|
50
|
-
|PA |oneway|
|
50
|
+
|PA |oneway|TOTALFARE_ASCENDING|
|
51
51
|
|PA |roundtrip|TOTALFARE_ASCENDING|
|
52
52
|
@ec
|
53
53
|
Ejemplos:
|
54
54
|
|pais|tipo|order|
|
55
|
-
|EC |oneway|
|
55
|
+
|EC |oneway|TOTALFARE_ASCENDING|
|
56
56
|
|EC |roundtrip|TOTALFARE_ASCENDING|
|
57
57
|
@mx
|
58
58
|
Ejemplos:
|
59
59
|
|pais|tipo|order|
|
60
|
-
|MX |oneway|
|
60
|
+
|MX |oneway|TOTALFARE_ASCENDING|
|
61
61
|
|MX |roundtrip|TOTALFARE_ASCENDING|
|
62
62
|
@pe
|
63
63
|
Ejemplos:
|
64
64
|
|pais|tipo|order|
|
65
|
-
|PE |oneway|
|
65
|
+
|PE |oneway|TOTALFARE_ASCENDING|
|
66
66
|
|PE |roundtrip|TOTALFARE_ASCENDING|
|
67
67
|
@uy
|
68
68
|
Ejemplos:
|
69
69
|
|pais|tipo|order|
|
70
|
-
|UY |oneway|
|
70
|
+
|UY |oneway|TOTALFARE_ASCENDING|
|
71
71
|
|UY |roundtrip|TOTALFARE_ASCENDING|
|
72
72
|
@us
|
73
73
|
Ejemplos:
|
74
74
|
|pais|tipo|order|
|
75
|
-
|US |oneway|
|
75
|
+
|US |oneway|TOTALFARE_ASCENDING|
|
76
76
|
|US |roundtrip|TOTALFARE_ASCENDING|
|
77
77
|
@ve
|
78
78
|
Ejemplos:
|
79
79
|
|pais|tipo|order|
|
80
|
-
|VE |oneway|
|
80
|
+
|VE |oneway|TOTALFARE_ASCENDING|
|
81
81
|
|VE |roundtrip|TOTALFARE_ASCENDING|
|
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.48' #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.48
|
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-09-
|
11
|
+
date: 2014-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|