flights_gui_tests 2.3.14 → 2.3.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/data/sites.yml +1 -0
- data/features/step_definitions/results/results_steps.rb +10 -0
- data/features/support/modules/results/two_oneway.rb +31 -0
- data/features/support/pages/results/search_page.rb +2 -0
- data/features/support/version.rb +1 -1
- data/features/tests/results/search.feature +2 -7
- 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: a86a3280359731bfe4afe2bb13da97fa108e00a5
|
4
|
+
data.tar.gz: 42f4992add93c586690a2c1f9b9f2e845cb3cd3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb023c75400ff4172b49121fe1cc512a66d5b648d89cdbdad99e25b4c6326dcd40eb4c1493aeb65f4cff8ebde8a8bfb9eb5aec0c9ca1c041cda29183a152d8b5
|
7
|
+
data.tar.gz: 2689060343b3f497d2a3742bea54e7abf6c2a8685e5d81efcb54e37e6d645d2484078cf98ca340a812a9c2ba83890bdabdbbb0ab38574b782d2b5154ef2b3ff2
|
data/features/data/sites.yml
CHANGED
@@ -20,6 +20,7 @@ PE:
|
|
20
20
|
- {code: "LIM", airports: ["LIM"], name: "Lima", name_lang: {es: "Lima",en: "Lima", pt: "Lima"}}
|
21
21
|
VE:
|
22
22
|
- {code: "CCS", airports: ["CCS"], name: "Caracas", name_lang: {es: "Caracas",en: "Caracas", pt: "Caracas"}}
|
23
|
+
- {code: "MAR", airports: ["MAR"], name: "Maracaibo", name_lang: {es: "Maracaibo",en: "Maracaibo", pt: "Maracaibo"}}
|
23
24
|
CO:
|
24
25
|
- {code: "BOG", airports: ["BOG"], name: "Bogota", name_lang: {es: "Bogota",en: "Bogota", pt: "Bogota"}}
|
25
26
|
- {code: "MDE", airports: ["MDE"], name: "Medellin", name_lang: {es: "Medellin",en: "Medellin", pt: "Medellin"}}
|
@@ -95,4 +95,14 @@ Y(/^cierro popups$/)do
|
|
95
95
|
@page.execute_script("javascript:void($('.flights-message-close').click())")
|
96
96
|
@page.execute_script("javascript:void($('.popup-close-button').click())")
|
97
97
|
@page.execute_script("javascript:void($('.nibbler-common-overlay-close').click())")
|
98
|
+
end
|
99
|
+
|
100
|
+
Y(/^verifico si muestra el popup de redireccion a internacional$/) do
|
101
|
+
if @page.popup_venezuela_element.present?
|
102
|
+
@page.cerrar_popup_venezuela_element.click
|
103
|
+
Helpers.set_date_language("CC")
|
104
|
+
@page = Results::SearchPage.new($browser)
|
105
|
+
@page.set_site("CC")
|
106
|
+
@page.popup_venezuela_element.when_not_visible(timeout=5)
|
107
|
+
end
|
98
108
|
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module Results
|
3
|
+
|
4
|
+
module TwoOneWay
|
5
|
+
|
6
|
+
include PageObject
|
7
|
+
|
8
|
+
link(:opcion_ida_y_vuelta,:css=>".multipleoneway-options .roundtrip a")
|
9
|
+
link(:opcion_ida_separada,:css=>".multipleoneway-options .oneways a")
|
10
|
+
|
11
|
+
div(:carga_fecha_ida_separada,:id=>"update-message")
|
12
|
+
|
13
|
+
elements(:lista_de_fechas,:li,:css=>".multipleoneway-dates li.date-item")
|
14
|
+
elements(:lista_de_fechas_con_precio,:li,:css=>".multipleoneway-dates li.with-price")
|
15
|
+
|
16
|
+
li(:fecha_seleccionada,:css=>".multipleoneway-dates li.current")
|
17
|
+
|
18
|
+
def primer_fecha_visible()
|
19
|
+
lista_de_fechas_elements.select{|fecha| fecha_element.present?}.first
|
20
|
+
end
|
21
|
+
|
22
|
+
def primer_fecha_con_precio_visible()
|
23
|
+
lista_de_fechas_con_precio_elements.select{|fecha| fecha_element.present?}.first
|
24
|
+
end
|
25
|
+
|
26
|
+
def fecha_seleccionada()
|
27
|
+
fecha_seleccionada_element
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -61,6 +61,8 @@ module Results
|
|
61
61
|
span(:cerrar_popup_alertas,:css=>"#nibbler-subscriptions .nibbler-common-overlay-close")
|
62
62
|
div(:popup_filtros,:class=>"flights-popup flights-popup-flat-success flights-popup-right")
|
63
63
|
span(:cerrar_popup_filtros,:css=>".flights-popup-flat-success .nibbler-common-overlay-close")
|
64
|
+
div(:popup_venezuela,:class=>"eva-modal-overlay nibbler-popups-venezuela")
|
65
|
+
link(:cerrar_popup_venezuela,:class=>"eva-button-primary-medium")
|
64
66
|
#fin popups
|
65
67
|
|
66
68
|
def cargar_url(tipo,ambiente,cabotaje="nil",params={})
|
data/features/support/version.rb
CHANGED
@@ -245,14 +245,9 @@ Característica: results.search
|
|
245
245
|
@roundtrip
|
246
246
|
Ejemplos:
|
247
247
|
|pais|tipo|cabotage|
|
248
|
-
|VE |roundtrip|
|
248
|
+
|VE |roundtrip|true|
|
249
249
|
@ve
|
250
250
|
@oneway
|
251
251
|
Ejemplos:
|
252
252
|
|pais|tipo|cabotage|
|
253
|
-
|VE |oneway|
|
254
|
-
@ve
|
255
|
-
@multipledestinations
|
256
|
-
Ejemplos:
|
257
|
-
|pais|tipo|cabotage|
|
258
|
-
|VE |multipledestinations|nil|
|
253
|
+
|VE |oneway|true|
|
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.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|
@@ -333,6 +333,7 @@ files:
|
|
333
333
|
- features/support/modules/results/matrix/matrix_price.rb
|
334
334
|
- features/support/modules/results/recommendation.rb
|
335
335
|
- features/support/modules/results/search_params.rb
|
336
|
+
- features/support/modules/results/two_oneway.rb
|
336
337
|
- features/support/modules/results/wish_list.rb
|
337
338
|
- features/support/pages/all_pages.rb
|
338
339
|
- features/support/pages/checkout/checkout_page.rb
|