flights_gui_henry_tests 2.1.4 → 2.1.5
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 +8 -8
- data/features/step_definitions/filter/matrix_steps.rb +2 -2
- data/features/step_definitions/landing/landing_negative_steps.rb +3 -2
- data/features/step_definitions/results/results_steps.rb +22 -20
- data/features/step_definitions/search/basefare_steps.rb +2 -1
- data/features/tests/landing/landing_sort.feature +6 -1
- data/features/tests/search/wish_list.feature +2 -37
- data/flights_gui_henry_tests.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MjFlNzRmYmZjYzA1Yjc0YWM1MmIxN2RmNjM2NzU5NDJkMTVmZGIzYw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MjFlODcxOGJlYWMxYzVkYzE5NmUzZDlmZWY3ODg1ZDJmMjFmNmE5Nw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ODYyOTkxOWUyNTU5OTcxNTU5MWFhZjE5NzdjYTdiM2MwOGIzZTBkYzc2ZTA4
|
|
10
|
+
ZmUzY2JiY2E4ZTYwNzA3MTkyZWVlZGI1MTkxN2UzMjczZGUzM2NjOGI0YWY1
|
|
11
|
+
NTlhNTQ2ODAxOGE0YmQyZGNiNzMzOTI0NjA2OGU1NzZjZDRjOGE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MjIyYTZkMjZjN2JiMzlkMWZlOTRjM2ZiNGMyNjU3ZjM4ZWI2ZGMyMTNmNWUz
|
|
14
|
+
Zjg3MTQ2MDhkMTcwYjAxZTIxYWE1YjYxODAwM2UxOTQxY2ZhZDFhMzliMGI4
|
|
15
|
+
OTQ4NTliYzMwZGQyZTc3MzY3YWE2ZThiNjM1ZTYyZmE2YWQwMjc=
|
|
@@ -181,11 +181,11 @@ And /^Verifico el l\&f de la matriz de tendencia de precios$/ do
|
|
|
181
181
|
(doc/"div.fare-chart-content div.fare-chart-main div.fare-chart-values-container").empty?.should be_false
|
|
182
182
|
(doc/"div.fare-chart-content div.fare-chart-main div.fare-chart-big-viewport").empty?.should be_false
|
|
183
183
|
(doc/"div.fare-chart-content div.fare-chart-main div.fare-chart-big-viewport div[@class='fare-chart-bars-container fare-chart-big ui-draggable']").empty?.should be_false
|
|
184
|
-
(doc/"div.fare-chart-content div.fare-chart-main div.fare-chart-big-viewport div[@class='fare-chart-bars-container fare-chart-big ui-draggable'] div.fare-chart-bars").length.should equal(
|
|
184
|
+
(doc/"div.fare-chart-content div.fare-chart-main div.fare-chart-big-viewport div[@class='fare-chart-bars-container fare-chart-big ui-draggable'] div.fare-chart-bars").length.should equal(12)
|
|
185
185
|
#secondary
|
|
186
186
|
(doc/"div.fare-chart-content div.fare-chart-secondary").empty?.should be_false
|
|
187
187
|
(doc/"div.fare-chart-content div.fare-chart-secondary div[@class='fare-chart-bars-container fare-chart-small']").empty?.should be_false
|
|
188
|
-
(doc/"div.fare-chart-content div.fare-chart-secondary div[@class='fare-chart-bars-container fare-chart-small'] div.fare-chart-bars").length.should equal(
|
|
188
|
+
(doc/"div.fare-chart-content div.fare-chart-secondary div[@class='fare-chart-bars-container fare-chart-small'] div.fare-chart-bars").length.should equal(12)
|
|
189
189
|
(doc/"div.fare-chart-content div.fare-chart-secondary div[@class='fare-char-small-selector ui-draggable']").empty?.should be_false
|
|
190
190
|
#script
|
|
191
191
|
BROWSER.script(:id,'popup-fare-chart-template').exists?.should be_true
|
|
@@ -7,7 +7,8 @@ And /^Verifico que ciudades iguales de error$/ do
|
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
And /^Verifico que fechas iguales no de error$/ do
|
|
10
|
-
|
|
10
|
+
puts @path_landing[1] + "1/2014-06-05/2014-06-05/" + @path_landing[2] + @path_landing[3]
|
|
11
|
+
BROWSER.goto(@path_landing[1] + "1/2014-06-05/2014-06-05/" + @path_landing[2] + @path_landing[3])
|
|
11
12
|
Watir::Wait.until(timeout = 10){BROWSER.div(:class,'messages').span(:class,'commonSprite warningSymbol').present?}
|
|
12
13
|
BROWSER.div(:class,'messages').text.should match("No flights were found for your search|No encontramos vuelos para su b.{1,2}squeda|N.{1,2}o foi possivel encontrar assentos disponiveis nos v.{1,2}os buscados")
|
|
13
14
|
end
|
|
@@ -31,7 +32,7 @@ And /^Verifico que dias de permanencia negativo de error$/ do
|
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
And /^Verifico que si la fecha de ida ingresada es posterior a la fecha de vuelta de error$/ do
|
|
34
|
-
BROWSER.goto(@path_landing[1] + "1/2014-
|
|
35
|
+
BROWSER.goto(@path_landing[1] + "1/2014-06-05/2014-06-04/" + @path_landing[2] + @path_landing[3])
|
|
35
36
|
Watir::Wait.until(timeout = 10){BROWSER.div(:class,'messages').span(:class,'commonSprite warningSymbol').present?}
|
|
36
37
|
BROWSER.div(:class,'messages').text.should match("The departure date entered is later than the return date|La fecha de ida ingresada es posterior a la fecha de vuelta|A data de partida digitada .{1,2} posterior a data de retorno")
|
|
37
38
|
end
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
|
2
2
|
And /^Verifico si se muestran los beneficios en resultados$/ do
|
|
3
|
-
if BROWSER.div(:class,'benefit-alert').present?
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
end
|
|
3
|
+
# if BROWSER.div(:class,'benefit-alert').present?
|
|
4
|
+
# @benefits = true
|
|
5
|
+
# BROWSER.div(:class,'benefit-alert').span(:class,'smile icon-smile main-sprite').should visible("icono smile")
|
|
6
|
+
# BROWSER.div(:class,'benefit-alert').p(:class,'text').should visible("texto de beneficio")
|
|
7
|
+
# BROWSER.div(:class,'benefit-alert').p(:class,'text').text.should match("\¡Con su compra obtenga (.*)\!")
|
|
8
|
+
# @text_benefits = BROWSER.div(:class,'benefit-alert').p(:class,'text').text
|
|
9
|
+
# end
|
|
10
|
+
BROWSER.div(:class,'benefit-alert').should_not visible("beneficios en resultados")
|
|
10
11
|
end
|
|
11
12
|
|
|
12
13
|
And /^Verifico si se muestran los beneficios en checkout$/ do
|
|
13
|
-
value = get_abtesting "showBenefits"
|
|
14
|
-
if @benefits
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
elsif $SITE=="AR" and value < 50
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
else
|
|
24
|
-
|
|
25
|
-
end
|
|
14
|
+
# value = get_abtesting "showBenefits"
|
|
15
|
+
# if @benefits
|
|
16
|
+
# BROWSER.div(:class,'benefit-alert').should visible("beneficios en checkout")
|
|
17
|
+
# BROWSER.div(:class,'benefit-alert').span(:class,'smile icon-smile main-sprite').should visible("icono smile en checkout")
|
|
18
|
+
# BROWSER.div(:class,'benefit-alert').p(:class,'text').should visible("texto de beneficio en checkout")
|
|
19
|
+
# BROWSER.div(:class,'benefit-alert').p(:class,'text').text.should equal(@text_benefits)
|
|
20
|
+
# elsif $SITE=="AR" and value < 50
|
|
21
|
+
# BROWSER.div(:id,'benefit-advice-list').should visible("lista de beneficios en checkout")
|
|
22
|
+
# BROWSER.div(:id,'benefit-advice-list').span(:class,'ux-common-icon-smile').should visible("icono smile en checkout")
|
|
23
|
+
# (BROWSER.div(:id,'benefit-advice-list').lis(:class,'item').length > 0).should be_true
|
|
24
|
+
# else
|
|
25
|
+
# BROWSER.div(:class,'benefit-alert').should_not visible("beneficios en checkout")
|
|
26
|
+
# end
|
|
27
|
+
BROWSER.div(:class,'benefit-alert').should_not visible("beneficios en resultados")
|
|
26
28
|
end
|
|
@@ -6,9 +6,10 @@ end
|
|
|
6
6
|
|
|
7
7
|
When /^Filtro por un itinerario en la matriz en "(.*)"$/ do |pais|
|
|
8
8
|
if BROWSER.div(:class,'flights-tab-header flights-tab-priceSuggestionMatrix flights-tab-header-active').present?
|
|
9
|
-
BROWSER.div(:class
|
|
9
|
+
BROWSER.div(:class,/flights-tab-airlinePricesMatrix/).click
|
|
10
10
|
sleep(2)
|
|
11
11
|
end
|
|
12
|
+
puts BROWSER.url
|
|
12
13
|
BROWSER.div(:id,'matrix').span(:class,"price-currency #{currency(pais)}").click
|
|
13
14
|
end
|
|
14
15
|
|
|
@@ -5,12 +5,17 @@ Característica: landing.sort
|
|
|
5
5
|
|
|
6
6
|
@sort
|
|
7
7
|
Esquema del escenario: Ingresar a resultados, filtro por un precio, verificar que se muestre correctamente y sea el fare que se debe aplicar
|
|
8
|
-
Cuando
|
|
8
|
+
Cuando Ingreso a la home de landing de "<pais>"
|
|
9
|
+
Entonces Verifico que la pagina no rompa
|
|
10
|
+
Cuando Espero que termine de cargar la home de landing
|
|
11
|
+
Cuando Elijo un link para pasar a los resultados de landing
|
|
12
|
+
Cuando Ingreso a resultados de landing
|
|
9
13
|
Entonces Verifico que la pagina no rompa
|
|
10
14
|
Entonces Verifico que traiga resultados de landings
|
|
11
15
|
Cuando Elijo el tipo de vuelo "<tipo>"
|
|
12
16
|
Entonces Verifico que la pagina no rompa
|
|
13
17
|
Entonces Verifico que traiga resultados de landings
|
|
18
|
+
Y Elijo moneda local en "<pais>"
|
|
14
19
|
Y Valido el sorting de landing en "<pais>"
|
|
15
20
|
Y Filtro por un itinerario en la matriz en "<pais>"
|
|
16
21
|
Cuando Espero que termine de cargar
|
|
@@ -13,7 +13,7 @@ Característica: search.wish_list
|
|
|
13
13
|
Cuando Abro el popup de registro
|
|
14
14
|
Entonces Verifico links y textos del popup de registro
|
|
15
15
|
Cuando Me logueo con usuario "testvuelos@despegar.com" y pass "despegar"
|
|
16
|
-
Entonces Verifico que se muestre el error de logueo
|
|
16
|
+
#Entonces Verifico que se muestre el error de logueo
|
|
17
17
|
Cuando Me logueo con usuario "testvuelos@despegar.com" y pass "d3sp3g4r"
|
|
18
18
|
#Entonces Verifico que se muestren en el header el usuario logueado
|
|
19
19
|
Cuando Limpio la lista de deseos
|
|
@@ -60,43 +60,8 @@ Característica: search.wish_list
|
|
|
60
60
|
|pais|cabotage|tipo|
|
|
61
61
|
|VE|nil|roundtrip|
|
|
62
62
|
|VE|nil|oneway|
|
|
63
|
-
@co
|
|
64
|
-
Ejemplos:
|
|
65
|
-
|pais|cabotage|tipo|
|
|
66
|
-
|CO|true|roundtrip|
|
|
67
|
-
|CO|true|oneway|
|
|
68
|
-
@ec
|
|
69
|
-
Ejemplos:
|
|
70
|
-
|pais|cabotage|tipo|
|
|
71
|
-
|EC|nil|roundtrip|
|
|
72
|
-
|EC|nil|oneway|
|
|
73
|
-
@pe
|
|
74
|
-
Ejemplos:
|
|
75
|
-
|pais|cabotage|tipo|
|
|
76
|
-
|PE|nil|roundtrip|
|
|
77
|
-
|PE|nil|oneway|
|
|
78
|
-
@pa
|
|
79
|
-
Ejemplos:
|
|
80
|
-
|pais|cabotage|tipo|
|
|
81
|
-
|PA|nil|roundtrip|
|
|
82
|
-
|PA|nil|oneway|
|
|
83
|
-
@cr
|
|
84
|
-
Ejemplos:
|
|
85
|
-
|pais|cabotage|tipo|
|
|
86
|
-
|CR|nil|roundtrip|
|
|
87
|
-
|CR|nil|oneway|
|
|
88
63
|
@us
|
|
89
64
|
Ejemplos:
|
|
90
65
|
|pais|cabotage|tipo|
|
|
91
66
|
|US|nil|roundtrip|
|
|
92
|
-
|US|nil|oneway|
|
|
93
|
-
@uy
|
|
94
|
-
Ejemplos:
|
|
95
|
-
|pais|cabotage|tipo|
|
|
96
|
-
|UY|nil|roundtrip|
|
|
97
|
-
|UY|true|oneway|
|
|
98
|
-
@cl
|
|
99
|
-
Ejemplos:
|
|
100
|
-
|pais|cabotage|tipo|
|
|
101
|
-
|CL|nil|roundtrip|
|
|
102
|
-
|CL|true|oneway|
|
|
67
|
+
|US|nil|oneway|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
|
|
17
17
|
|
|
18
|
-
gem.version = '2.1.
|
|
18
|
+
gem.version = '2.1.5' #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('watir-webdriver')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flights_gui_henry_tests
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.5
|
|
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-03-
|
|
11
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: henry-container
|