flights_gui_tests 1.1.5 → 1.1.6
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/results/basefare_steps.rb +1 -1
- data/features/step_definitions/results/results_steps.rb +4 -4
- data/features/support/classes/results/new_details_cluster.rb +5 -1
- data/features/support/modules/results/itineraries/details.rb +16 -6
- data/features/support/pages/landing/search_page.rb +1 -1
- data/features/support/pages/results/search_page.rb +3 -0
- data/features/support/version.rb +1 -1
- data/features/tests/results/basefare.feature +6 -6
- data/features/tests/results/itineraries.feature +6 -6
- data/features/tests/results/search.feature +6 -6
- 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: 47efcff28c374e5d595e243f04697d017fd0cdc9
|
4
|
+
data.tar.gz: c02c0f0f41d057f866d6be1aad341a014c41f424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecca21f1db0c8885e57f3d3160fef3ccdb9f280045179f45d4834662910a374b28976ce776152c4488219a7235cbc8f8aed2b16f3916807d5be467f7014dde55
|
7
|
+
data.tar.gz: 2c9d99ecc10f15c9a85da2eac5e0fac5b878ffbbe6b14cd42396f12c41665f217a2e77ffd6e55b1a4d5662438c3de57802b8c1e2218d9d8a441db8de2ea886c2
|
@@ -53,7 +53,7 @@ Entonces(/^(?:verifico|valido) la base tarifaria$/) do
|
|
53
53
|
if (doc / "div.cluster span.fare span[@class='price-currency #{Helpers.currency(AllPages.site)} ']").first
|
54
54
|
price_cluster['adt'] = (doc / "div.cluster span.fare span[@class='price-currency #{Helpers.currency(AllPages.site)} ']").first.inner_text.strip
|
55
55
|
else
|
56
|
-
price_cluster['adt'] = (doc / "div.cluster
|
56
|
+
price_cluster['adt'] = (doc / "div.cluster li.total-price-only span[@class='price-currency #{Helpers.currency(AllPages.site)} ']").first.inner_text.strip
|
57
57
|
end
|
58
58
|
if @basefare == 'tot'
|
59
59
|
price_cluster['tot'] = (doc / "div.cluster div.fare-detail li.fare-price span[@class='price-currency #{Helpers.currency(AllPages.site)} ']").first.inner_text.strip
|
@@ -88,8 +88,8 @@ end
|
|
88
88
|
|
89
89
|
Y(/^cierro popups$/)do
|
90
90
|
sleep(1)
|
91
|
-
@page.
|
92
|
-
@page.
|
93
|
-
@page.
|
94
|
-
@page.
|
91
|
+
@page.execute_script("javascript:void($('.user-suggestion-close').click())")
|
92
|
+
@page.execute_script("javascript:void($('.flights-message-close').click())")
|
93
|
+
@page.execute_script("javascript:void($('.popup-close-button').click())")
|
94
|
+
@page.execute_script("javascript:void($('.nibbler-common-overlay-close').click())")
|
95
95
|
end
|
@@ -14,7 +14,11 @@ class NewDetailsCluster
|
|
14
14
|
tramo['clase'] = (div/"span.inline-detail-flight-cabinType span.inline-detail-flight-data-description").first.inner_text.strip.no_accents
|
15
15
|
end
|
16
16
|
tramo['ciudad_origen'] = (div/"span.inline-detail-airport-description").first.inner_text.gsub(/\-(.*)/,'').strip.no_accents
|
17
|
-
|
17
|
+
begin
|
18
|
+
tramo['fecha_origen'] = Date.parse_new_result((div/"span.inline-detail-airport-date").first.inner_text.strip.gsub(/Sale:/,'').no_accents)
|
19
|
+
rescue NoMethodError
|
20
|
+
puts (div/"span.inline-detail-airport-date").first.inner_text.strip.gsub(/Sale:/,'').no_accents
|
21
|
+
end
|
18
22
|
tramo['hora_origen'] = (div/"span.inline-detail-airport-hour").first.inner_text.empty? ? Time.parse((div/"span.inline-detail-airport-hour").last.inner_text.strip.no_accents) : Time.parse((div/"span.inline-detail-airport-hour").first.inner_text.strip.no_accents)
|
19
23
|
tramo['ciudad_destino'] = (div/"span.inline-detail-airport-description").last.inner_text.gsub(/\-(.*)/,'').strip.no_accents
|
20
24
|
tramo['hora_destino'] = (div/"span.inline-detail-airport-hour").last.inner_text.empty? ? Time.parse((div/"span.inline-detail-airport-hour").first.inner_text.strip.no_accents) : Time.parse((div/"span.inline-detail-airport-hour").last.inner_text.strip.no_accents)
|
@@ -106,9 +106,14 @@ module Results
|
|
106
106
|
mostrar_mas_itinerarios_element.click if mostrar_mas_itinerarios_element.present?
|
107
107
|
rutas_ida(itinerarios_elements[i]).each_with_index do |route,j|
|
108
108
|
if route.present?
|
109
|
-
|
110
|
-
|
111
|
-
|
109
|
+
begin
|
110
|
+
cluster_detail = new_recorrer_segmentos(route,itinerario.idas[j],$num)
|
111
|
+
new_cerrar_popup(route)
|
112
|
+
validar_clase(cluster_detail,route)
|
113
|
+
rescue Selenium::WebDriver::Error::UnknownError => e
|
114
|
+
puts "Fallo validacion de mas detalles, itinerario #{i}, ruta ida #{j}"
|
115
|
+
puts e.message # Test de excepción
|
116
|
+
end
|
112
117
|
$num += 1
|
113
118
|
else
|
114
119
|
puts "No se ve el elemento numero #{i} en la ruta #{j}"
|
@@ -116,10 +121,15 @@ module Results
|
|
116
121
|
end
|
117
122
|
rutas_vuelta(itinerarios_elements[i]).each_with_index do |route,k|
|
118
123
|
if route.present?
|
119
|
-
|
124
|
+
begin
|
125
|
+
cluster_detail = new_recorrer_segmentos(route,itinerario.vueltas[k],$num)
|
126
|
+
new_cerrar_popup(route)
|
127
|
+
validar_clase(cluster_detail,route)
|
128
|
+
rescue Selenium::WebDriver::Error::UnknownError => e
|
129
|
+
puts "Fallo validacion de mas detalles, itinerario #{i}, ruta vuelta #{k}"
|
130
|
+
puts e.message # Test de excepción
|
131
|
+
end
|
120
132
|
$num += 1
|
121
|
-
new_cerrar_popup(route)
|
122
|
-
validar_clase(cluster_detail,route)
|
123
133
|
else
|
124
134
|
puts "No se ve el elemento numero #{i} en la ruta #{k}"
|
125
135
|
end
|
@@ -39,6 +39,7 @@ module Results
|
|
39
39
|
element(:itinerario, :div, :css=>"#clusters .cluster")
|
40
40
|
element(:desglose,:li,:css=>"#clusters .cluster .fare-detail li")
|
41
41
|
element(:precio_itinerario, :span, :css=>".cluster .fare .price-currency")
|
42
|
+
element(:precio_itinerario_mx, :span, :css=>".cluster .total-price-only .price-currency")
|
42
43
|
element(:precio_itinerario_pe, :span, :css=>".cluster .fare .PEN")
|
43
44
|
|
44
45
|
select_list(:orden,:id=>"orderby")
|
@@ -58,6 +59,8 @@ module Results
|
|
58
59
|
div(:boton_alertas,:id=>"flights-alerts")
|
59
60
|
div(:popup_alertas,:id=>"nibbler-subscriptions")
|
60
61
|
span(:cerrar_popup_alertas,:css=>"#nibbler-subscriptions .nibbler-common-overlay-close")
|
62
|
+
div(:popup_filtros,:class=>"flights-popup flights-popup-flat-success flights-popup-right")
|
63
|
+
span(:cerrar_popup_filtros,:css=>".flights-popup-flat-success .nibbler-common-overlay-close")
|
61
64
|
#fin popups
|
62
65
|
|
63
66
|
def cargar_url(tipo,ambiente,cabotaje="nil",params={})
|
data/features/support/version.rb
CHANGED
@@ -11,12 +11,12 @@ Característica: results.basefare
|
|
11
11
|
Entonces verifico que la pagina no rompa
|
12
12
|
Cuando espero que termine de cargar la pagina de resultados
|
13
13
|
Entonces verifico que traiga resultados
|
14
|
-
Cuando
|
15
|
-
Y
|
16
|
-
Y
|
17
|
-
Cuando
|
18
|
-
Cuando
|
19
|
-
Entonces
|
14
|
+
Cuando defino cluster a utilizar
|
15
|
+
Y ingreso una busqueda '<tipo>' del tipo '<cabotage>'
|
16
|
+
Y realizo la busqueda
|
17
|
+
Cuando verifico que la pagina no rompa
|
18
|
+
Cuando espero que termine de cargar la pagina de resultados
|
19
|
+
Entonces verifico que traiga resultados
|
20
20
|
Y verifico los textos de las opciones del combo
|
21
21
|
Y verifico las ociones de ordenamiento
|
22
22
|
Entonces elijo moneda local
|
@@ -11,12 +11,12 @@ Característica: results.itineraries
|
|
11
11
|
Entonces verifico que la pagina no rompa
|
12
12
|
Cuando espero que termine de cargar la pagina de resultados
|
13
13
|
Entonces verifico que traiga resultados
|
14
|
-
Cuando
|
15
|
-
Y
|
16
|
-
Y
|
17
|
-
Cuando
|
18
|
-
Cuando
|
19
|
-
Entonces
|
14
|
+
Cuando defino cluster a utilizar
|
15
|
+
Y ingreso una busqueda '<tipo>' del tipo '<cabotage>'
|
16
|
+
Y realizo la busqueda
|
17
|
+
Cuando verifico que la pagina no rompa
|
18
|
+
Cuando espero que termine de cargar la pagina de resultados
|
19
|
+
Entonces verifico que traiga resultados
|
20
20
|
Cuando si el site es "MX|AR", verifico el ordenamiento premium economy
|
21
21
|
Cuando ordeno por "TOTALFARE_ASCENDING"
|
22
22
|
Cuando espero que termine de cargar la pagina de resultados
|
@@ -12,12 +12,12 @@ Característica: results.search
|
|
12
12
|
Cuando espero que termine de cargar la pagina de resultados
|
13
13
|
Entonces verifico que traiga resultados
|
14
14
|
Cuando si el site es "PE", fuerzo el abztesting de "showFreeCancelMessage" al "11"
|
15
|
-
Cuando
|
16
|
-
*
|
17
|
-
Cuando
|
18
|
-
Entonces
|
19
|
-
Cuando
|
20
|
-
Entonces
|
15
|
+
Cuando defino cluster a utilizar
|
16
|
+
* ingreso una busqueda '<tipo>' del tipo '<cabotage>'
|
17
|
+
Cuando realizo la busqueda
|
18
|
+
Entonces verifico que la pagina no rompa
|
19
|
+
Cuando espero que termine de cargar la pagina de resultados
|
20
|
+
Entonces verifico que traiga resultados
|
21
21
|
Cuando si el site es "AR|BR", levanto los tag que deben mostrarse segun la ciudad buscada para una busqueda "<tipo>"
|
22
22
|
Entonces si el site es "AR|BR", verifico que se muestre en el codigo fuente
|
23
23
|
Y si el site es "PE", verifico el banner de cancelacion en el dia en resultados
|
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: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|