flights_gui_tests 0.0.19 → 0.0.20
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/checkout/load_steps.rb +8 -4
- data/features/step_definitions/flights_tracker/flights_tracker_steps.rb +2 -1
- data/features/step_definitions/landing/load_steps.rb +6 -3
- data/features/step_definitions/results/load_steps.rb +8 -4
- data/features/step_definitions/results/reviews_steps.rb +1 -0
- data/features/support/modules/results/matrix/matrix_airline.rb +1 -1
- data/features/support/pages/all_pages.rb +7 -4
- data/features/support/pages/checkout/checkout_page.rb +1 -0
- data/features/support/pages/results/desambiguation_airports_page.rb +8 -2
- data/features/tests/checkout/price_jump.feature +0 -45
- 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: 6048c2fb2ba65e574f3e1728ded10ad6b401ccc1
|
4
|
+
data.tar.gz: 7aa37de93670798530067cde06ec1ca27884c233
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3a01495af6d966d64d76d7bb3c61c140fcd0ef77e8ea2cf31f1598046d34b234e85789cf9dffc21919982a0d7b47f141a4639642ef21c1957d8e35e8b6a7798
|
7
|
+
data.tar.gz: b2a4db7d899fe8d66245c8d5830d19920c1c4aec0e852d4cb781d89d8a5c4ffbe5ad58aec85d89d22ad0c7b5025973541b86e0d55298ba00a81ddb445fc6f245
|
@@ -7,8 +7,9 @@ Cuando(/^ingreso a la pagina de checkout de agencia en "(.*?)" para una busqueda
|
|
7
7
|
rescue
|
8
8
|
pending("No se encontraron resultados para la busqueda #{@page.manage_data.generate_url_results_search}")
|
9
9
|
end
|
10
|
-
puts " URL: #{@page.manage_data.generate_url_checkout + "?agency=AG14073"}"
|
11
10
|
@page.set_cookies
|
11
|
+
puts "URL: #{@page.manage_data.generate_url_checkout + "?agency=AG14073"}"
|
12
|
+
puts "UOW: #{@page.uow}"
|
12
13
|
@page.elegir_idioma
|
13
14
|
end
|
14
15
|
|
@@ -24,15 +25,18 @@ end
|
|
24
25
|
|
25
26
|
Entonces(/^espero que termine el pedido de compra$/) do
|
26
27
|
@page.popup_transicion_compra_element.when_not_visible(timeout=200)
|
27
|
-
Watir::Wait.until(timeout=200){@page.checkout_id_cash_element.present? or @page.checkout_id_element.present? or @page.popup_nuevo_vuelo_element.present? or @page.popup_nuevo_precio_element.present? or @page.error_datos_element.present? or @page.notificacion_error_element.present? or @page.notificacion_warning_element.present? or @page.notificacion_error_ux_element.present?}
|
28
|
+
Watir::Wait.until(timeout=200){@page.notificacion_warning_ux_element.present? or @page.checkout_id_cash_element.present? or @page.checkout_id_element.present? or @page.popup_nuevo_vuelo_element.present? or @page.popup_nuevo_precio_element.present? or @page.error_datos_element.present? or @page.notificacion_error_element.present? or @page.notificacion_warning_element.present? or @page.notificacion_error_ux_element.present?}
|
28
29
|
end
|
29
30
|
|
30
31
|
Y(/^verifico si no trae errores$/) do
|
32
|
+
if @page.notificacion_warning_ux_element.present?
|
33
|
+
pending(@page.notificacion_warning_ux_element.text)
|
34
|
+
end
|
31
35
|
if @page.notificacion_error_element.present?
|
32
|
-
pending(@page.notificacion_error_element)
|
36
|
+
pending(@page.notificacion_error_element.text)
|
33
37
|
end
|
34
38
|
if @page.notificacion_error_ux_element.present?
|
35
|
-
pending(@page.notificacion_error_ux_element)
|
39
|
+
pending(@page.notificacion_error_ux_element.text)
|
36
40
|
end
|
37
41
|
if @page.notificacion_warning_element.present?
|
38
42
|
@page.notificacion_warning_element.strip.no_accents.downcase.should_not match("lo sentimos, el vuelo que eligio no se encuentra disponible")
|
@@ -3,8 +3,9 @@ Cuando(/^una pagina de trackeo de vuelos en "(.*)"$/) do |pais|
|
|
3
3
|
Helpers.set_date_language(pais)
|
4
4
|
@page = FlightsTracker::SearchPage.new($browser)
|
5
5
|
@page.load_page("roundtrip",pais,$ENV)
|
6
|
-
puts "#{@page.manage_data.host}/flights/tracker/"
|
7
6
|
@page.set_cookies
|
7
|
+
puts "URL: #{@page.manage_data.host}/flights/tracker/"
|
8
|
+
puts "UOW: #{@page.uow}"
|
8
9
|
end
|
9
10
|
|
10
11
|
Entonces(/^realizo la busqueda con numero de vuelo "(.*)"$/) do |numero|
|
@@ -3,8 +3,9 @@ Cuando(/^una pagina de landing en "(.*)" del tipo "(.*)"$/) do |pais,tipo|
|
|
3
3
|
Helpers.set_date_language(pais)
|
4
4
|
@page = Landing::SearchPage.new($browser)
|
5
5
|
@page.load_page(tipo,pais,$ENV)
|
6
|
-
|
7
|
-
@page.
|
6
|
+
@page.set_cookies
|
7
|
+
puts "URL: #{@page.manage_data.generate_url_landing_search(@page.manage_data.city_from_1.code,@page.manage_data.city_to_1.code)}"
|
8
|
+
puts "UOW: #{@page.uow}"
|
8
9
|
@page.elegir_idioma
|
9
10
|
end
|
10
11
|
|
@@ -12,7 +13,9 @@ Dado(/^una pagina de landing en "(.*?)" para una busqueda "(.*?)" que desambigue
|
|
12
13
|
Helpers.set_date_language(arg1)
|
13
14
|
@page = Results::DesambiguationAirportsPage.new($browser)
|
14
15
|
@page.load_page_landing(arg2,arg1,$ENV,arg3,"true")
|
15
|
-
|
16
|
+
@page.set_cookies
|
17
|
+
puts "URL: #{@page.manage_data.generate_url_landing_disambiguation_airports(arg3)}"
|
18
|
+
puts "UOW: #{@page.uow}"
|
16
19
|
end
|
17
20
|
|
18
21
|
|
@@ -3,8 +3,9 @@ Dado(/^una pagina de resultados en "(.*)" para una busqueda "(.*)" del tipo "(.*
|
|
3
3
|
Helpers.set_date_language(pais)
|
4
4
|
@page = Results::SearchPage.new($browser)
|
5
5
|
@page.load_page(tipo,pais,$ENV,cabotaje)
|
6
|
-
puts " URL: #{@page.manage_data.generate_url_results_search}"
|
7
6
|
@page.set_cookies
|
7
|
+
puts "URL: #{@page.manage_data.generate_url_results_search}"
|
8
|
+
puts "UOW: #{@page.uow}"
|
8
9
|
@page.elegir_idioma
|
9
10
|
end
|
10
11
|
|
@@ -12,8 +13,9 @@ Dado(/^una pagina de resultados en "(.*?)" para una busqueda "(.*?)" con origen
|
|
12
13
|
Helpers.set_date_language(pais)
|
13
14
|
@page = Results::SearchPage.new($browser)
|
14
15
|
@page.load_page(tipo,pais,$ENV,cabotaje,{"from"=>ida.upcase,"to"=>vuelta.upcase})
|
15
|
-
|
16
|
-
@page.
|
16
|
+
@page.set_cookies
|
17
|
+
puts "URL: #{@page.manage_data.generate_url_results_search}"
|
18
|
+
puts "UOW: #{@page.uow}"
|
17
19
|
@page.elegir_idioma
|
18
20
|
end
|
19
21
|
|
@@ -21,7 +23,9 @@ Dado(/^una pagina de resultados en "(.*?)" para una busqueda "(.*?)" que desambi
|
|
21
23
|
Helpers.set_date_language(arg1)
|
22
24
|
@page = Results::DesambiguationAirportsPage.new($browser)
|
23
25
|
@page.load_page_results(arg2,arg1,$ENV,arg3,"true")
|
24
|
-
|
26
|
+
@page.set_cookies
|
27
|
+
puts "URL: #{@page.url_desambiguacion}"
|
28
|
+
puts "UOW: #{@page.uow}"
|
25
29
|
end
|
26
30
|
|
27
31
|
Cuando(/^espero que termine de cargar la pagina de resultados$/) do
|
@@ -10,6 +10,7 @@ Cuando(/^(?:verifico|valido) las reviews de aerolineas$/) do
|
|
10
10
|
@page.logo_aerolinea_en_matriz(index).should match((doc/"span.logo/img").first.attributes['src'].strip.downcase)
|
11
11
|
@page.nombre_aerolinea_en_matriz(index).should equal((doc/"h4.name").inner_text.strip.downcase)
|
12
12
|
aerolinea.text.should match((doc/"span.popup-reviews-summary-points-container span").first.inner_text)
|
13
|
+
byebug
|
13
14
|
@page.close_popup_reviews_aerolineas_element.click
|
14
15
|
@page.popup_reviews_aerolineas_element.when_not_visible(timeout=10)
|
15
16
|
end
|
@@ -21,7 +21,7 @@ module Results
|
|
21
21
|
|
22
22
|
#popup
|
23
23
|
div(:popup_reviews_aerolineas,:id=>"popup-reviews")
|
24
|
-
span(:close_popup_reviews_aerolineas,:
|
24
|
+
span(:close_popup_reviews_aerolineas,:css=>"#popup-reviews .popup-close-button")
|
25
25
|
|
26
26
|
span(:filtro_matriz,:css=>'.matrix-filter span')
|
27
27
|
|
@@ -85,9 +85,8 @@ class AllPages
|
|
85
85
|
else "despegar.com.#{@@site.downcase}"
|
86
86
|
end
|
87
87
|
|
88
|
-
uow = "ROBOTFGUI-#{Socket.gethostname}-#{rand(1000)}"
|
89
|
-
|
90
|
-
@browser.execute_script("javascript:void(document.cookie = 'X-UOW-CUSTOM=#{uow}; Path=/')")
|
88
|
+
@uow = "ROBOTFGUI-#{Socket.gethostname}-#{rand(1000)}"
|
89
|
+
@browser.execute_script("javascript:void(document.cookie = 'X-UOW-CUSTOM=#{@uow}; Path=/')")
|
91
90
|
if $ENV.upcase=="BETA"
|
92
91
|
if $ENV.upcase=="BETA"
|
93
92
|
@browser.execute_script("javascript:void(document.cookie='X-Version-Override=#{add_cookie($HENRY_PARAMS['product'])};domain=#{dominio};path=/');")
|
@@ -97,5 +96,9 @@ class AllPages
|
|
97
96
|
|
98
97
|
sleep(2)
|
99
98
|
end
|
100
|
-
|
99
|
+
|
100
|
+
def uow
|
101
|
+
@uow
|
102
|
+
end
|
103
|
+
|
101
104
|
end
|
@@ -28,6 +28,7 @@ module Checkout
|
|
28
28
|
div(:opcion_si_deposito,:css=>"#confirm-payment-popup .flights-button-yes")
|
29
29
|
div(:notificacion_error,:class=>"notification-box error-box")
|
30
30
|
div(:notificacion_warning,:class=>"notification-box warn-box")
|
31
|
+
div(:notificacion_warning_ux,:class=>"ux-common-message ux-common-message-warning ")
|
31
32
|
div(:notificacion_error_ux,:class=>"ux-common-error")
|
32
33
|
div(:boton_si_cambio_precio,:class=>"button-yes")
|
33
34
|
div(:agencia_afiliada,:id=>"agency")
|
@@ -9,12 +9,18 @@ module Results
|
|
9
9
|
|
10
10
|
def load_page_results(tipo,pais,ambiente,city,cabotaje="nil")
|
11
11
|
load_page(tipo,pais,ambiente,cabotaje)
|
12
|
-
@
|
12
|
+
@url_desambiguacion = self.manage_data.generate_url_disambiguation_airports(city)
|
13
|
+
@browser.goto(@url_desambiguacion)
|
13
14
|
end
|
14
15
|
|
15
16
|
def load_page_landing(tipo,pais,ambiente,city,cabotaje="nil")
|
16
17
|
load_page(tipo,pais,ambiente,cabotaje)
|
17
|
-
@
|
18
|
+
@url_desambiguacion = self.manage_data.generate_url_landing_disambiguation_airports(city)
|
19
|
+
@browser.goto(@url_desambiguacion)
|
18
20
|
end
|
21
|
+
|
22
|
+
def url_desambiguacion
|
23
|
+
return @url_desambiguacion
|
24
|
+
end
|
19
25
|
end
|
20
26
|
end
|
@@ -50,56 +50,11 @@ Característica: checkout.price_jump
|
|
50
50
|
Ejemplos:
|
51
51
|
|pais|tipo|cabotage|
|
52
52
|
|AR |roundtrip|nil|
|
53
|
-
@ar
|
54
|
-
@oneway
|
55
|
-
Ejemplos:
|
56
|
-
|pais|tipo|cabotage|
|
57
|
-
|AR |oneway|nil|
|
58
|
-
@ar
|
59
|
-
@multipledestinations
|
60
|
-
Ejemplos:
|
61
|
-
|pais|tipo|cabotage|
|
62
|
-
|AR |multipledestinations|nil|
|
63
|
-
@br
|
64
|
-
@roundtrip
|
65
|
-
Ejemplos:
|
66
|
-
|pais|tipo|cabotage|
|
67
|
-
|BR |roundtrip|nil|
|
68
53
|
@br
|
69
54
|
@oneway
|
70
55
|
Ejemplos:
|
71
56
|
|pais|tipo|cabotage|
|
72
57
|
|BR |oneway|nil|
|
73
|
-
@br
|
74
|
-
@multipledestinations
|
75
|
-
Ejemplos:
|
76
|
-
|pais|tipo|cabotage|
|
77
|
-
|BR |multipledestinations|nil|
|
78
|
-
@mx
|
79
|
-
@roundtrip
|
80
|
-
Ejemplos:
|
81
|
-
|pais|tipo|cabotage|
|
82
|
-
|MX |roundtrip|nil|
|
83
|
-
@mx
|
84
|
-
@oneway
|
85
|
-
Ejemplos:
|
86
|
-
|pais|tipo|cabotage|
|
87
|
-
|MX |oneway|nil|
|
88
|
-
@mx
|
89
|
-
@multipledestinations
|
90
|
-
Ejemplos:
|
91
|
-
|pais|tipo|cabotage|
|
92
|
-
|MX |multipledestinations|nil|
|
93
|
-
@us
|
94
|
-
@roundtrip
|
95
|
-
Ejemplos:
|
96
|
-
|pais|tipo|cabotage|
|
97
|
-
|US |roundtrip|nil|
|
98
|
-
@us
|
99
|
-
@oneway
|
100
|
-
Ejemplos:
|
101
|
-
|pais|tipo|cabotage|
|
102
|
-
|US |oneway|nil|
|
103
58
|
@us
|
104
59
|
@multipledestinations
|
105
60
|
Ejemplos:
|
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.20' #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.20
|
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-08-
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|