flights_gui_tests 2.3.60 → 2.3.61
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/itineraries_steps.rb +0 -12
- data/features/step_definitions/results/new_filters_steps.rb +3 -3
- data/features/step_definitions/results/results_steps.rb +1 -0
- data/features/support/env.rb +1 -1
- data/features/support/pages/results/search_page.rb +2 -0
- data/features/support/version.rb +1 -1
- data/features/tests/landing/search.feature +2 -1
- data/features/tests/results/filters.feature +1 -0
- data/flights_gui_tests.gemspec +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 993fb1ad1b4708b8e4cd5a50131f616bb42a06b8
|
4
|
+
data.tar.gz: b7bf58a2e38678c1cc8f698301660efd22925d06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee969e923ee301ed58786d55de29c4e5380c9370679a9b495033cf7486ccafe71dc4389e8a8b72ad8f4338519841e589737c66b3cce30500a6a9706a1ab8d48c
|
7
|
+
data.tar.gz: a456453b53bef2334ab6e14e6546dae6f409d5aae9e775431474727695a6a1364c72b09c2511966865d40ed2ed3480737fee610a367b53091301e373770b74db
|
@@ -77,15 +77,3 @@ Y(/^(?:verifico|valido) que traiga fechas en formato correcto$/) do
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
80
|
-
|
81
|
-
Entonces(/^recorro y (?:verifico|valido) los detalles de los itinerario$/) do
|
82
|
-
json = @page.get_results_search_service("TOTALFARE")
|
83
|
-
i=0
|
84
|
-
$num = 0
|
85
|
-
@page.itinerarios_elements.each do |itinerario|
|
86
|
-
_itinerario = @page.cargar_itinerario(itinerario)
|
87
|
-
@page.validar_mas_detalles(json,i,_itinerario)
|
88
|
-
i += 1
|
89
|
-
break if i == 2
|
90
|
-
end
|
91
|
-
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
Cuando(/^abro los filtros de aerolineas$/) do
|
3
|
-
|
4
|
-
@page.
|
3
|
+
if @page.ver_mas_aerolineas_element.present?
|
4
|
+
@page.ver_mas_aerolineas_element.click
|
5
5
|
end
|
6
6
|
@page.filtro_aerolineas_visible_element.when_visible(timeout=10)
|
7
7
|
end
|
@@ -9,7 +9,7 @@ end
|
|
9
9
|
Cuando(/^elijo una aerolinea a aplicar - filtros nuevo -$/) do
|
10
10
|
doc = Hpricot.parse(@page.html)
|
11
11
|
options = (doc / 'div.inline-filters-detail-airlines')[0]
|
12
|
-
options = (options/"li.item").select { |option| !(option / "input")[0].attributes['id'].match(/airlines-unique|airlines-all/) and !(option / "input.ux-common-filter-disabled")[0]}
|
12
|
+
options = (options/"li.item").select { |option| (option / "input")[0] and !(option / "input")[0].attributes['id'].match(/inline-filters-airlines-all|airlines-unique|airlines-all/) and !(option / "input.ux-common-filter-disabled")[0]}
|
13
13
|
@airline = options[rand(options.length)]
|
14
14
|
@total = (@airline / 'span.total').inner_text.gsub(/\D/,'').to_i
|
15
15
|
end
|
@@ -95,6 +95,7 @@ Y(/^cierro popups$/)do
|
|
95
95
|
@page.execute_script("javascript:void($('.popup-close-button').click())")
|
96
96
|
@page.execute_script("javascript:void($('.nibbler-common-overlay-close').click())")
|
97
97
|
@page.execute_script("javascript:void($('.nibbler-common-overlay-close').click())")
|
98
|
+
@page.cerrar_testers_element.click if @page.cerrar_testers_element.present?
|
98
99
|
end
|
99
100
|
|
100
101
|
Y(/^verifico si muestra el popup de redireccion a internacional$/) do
|
data/features/support/env.rb
CHANGED
@@ -65,6 +65,8 @@ module Results
|
|
65
65
|
span(:cerrar_popup_filtros,:css=>".flights-popup-flat-success .nibbler-common-overlay-close")
|
66
66
|
div(:popup_venezuela,:class=>"eva-modal-overlay nibbler-popups-venezuela")
|
67
67
|
link(:cerrar_popup_venezuela,:class=>"eva-button-primary-medium")
|
68
|
+
div(:testers,:id=>/testers/)
|
69
|
+
link(:cerrar_testers,:class=>/widget_open_close/)
|
68
70
|
#fin popups
|
69
71
|
|
70
72
|
def cargar_url(tipo,ambiente,cabotaje="nil",params={})
|
data/features/support/version.rb
CHANGED
@@ -17,7 +17,8 @@ Característica: landing.search
|
|
17
17
|
Y verifico que la url sea la correcta
|
18
18
|
Y verifico que la ciudad destino sea la que se eligio
|
19
19
|
Y valido el sorting de landing
|
20
|
-
Entonces
|
20
|
+
Entonces levanto los datos de los itinerarios
|
21
|
+
Y comparo los datos de cluster contra los detalles
|
21
22
|
Y verifico que no vengan mas de diez resultados por pagina
|
22
23
|
Y verifico que traiga precios con formato correcto y positivos
|
23
24
|
Y verifico que traiga aeropuertos y concuerden con la ciudad buscada
|
@@ -15,6 +15,7 @@ Característica: results.filters
|
|
15
15
|
Cuando espero que termine de cargar la pagina de resultados
|
16
16
|
Cuando si pruebo streaming, ingreso a resultados streaming
|
17
17
|
Entonces verifico que la pagina no rompa
|
18
|
+
Y cierro popups
|
18
19
|
Cuando abro los filtros de aerolineas
|
19
20
|
Cuando elijo una aerolinea a aplicar - filtros nuevo -
|
20
21
|
Entonces filtro por aerolinea
|
data/flights_gui_tests.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |gem|
|
|
31
31
|
gem.add_dependency('mysql2')
|
32
32
|
gem.add_dependency('dater')
|
33
33
|
#gem.add_dependency('byebug')
|
34
|
-
|
34
|
+
gem.add_dependency('auto_uy_utils')
|
35
35
|
#gem.add_dependency('roma_automation')
|
36
36
|
#gem.add_dependency('parallel_tests')
|
37
37
|
|
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.3.
|
4
|
+
version: 2.3.61
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: auto_uy_utils
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: geminabox
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|