flights_gui_henry_tests 2.1.2 → 2.1.3
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/checkout/checkout_steps.rb +1 -1
- data/features/step_definitions/filter/matrix_steps.rb +5 -5
- data/features/tests/filters/filters.feature +0 -14
- data/features/tests/landing/landing_integration.feature +3 -3
- data/features/tests/landing/landing_positive.feature +5 -1
- data/features/tests/matrix/matrix_fare_chart.feature +1 -1
- 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
|
+
YjA5ODc1ZmVmODM1MzhjYTFkMzJlYWQzYzFiNjc4NDczNDg3MDQ2Nw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MTFkMzIzMTA3ZDE1ODI2MjA0MDJhNmEwZDBlNDdmODhhMjgyNGVlNw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MzE0YzIwOTAxNTRhYzE1NjEzYmJiNmEwN2M2Y2E0ZDhiZDgyY2I5ZWU2YWFi
|
|
10
|
+
OWJmNTg5ZmNhZWI2NWYzNGI3YjkyNWQ3NWU1YzM2Mjc2MWZhMjM1M2NhYTBk
|
|
11
|
+
NzU0MzJmOTlmYTFjYjhhMWVhOTU1MTY2NTZhZGNkMzYzYmZhNGY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MTQ4MzhmNmE2NzJiMGZhMGVhNzAyMDc2ZDQxMjk1ODc3YzBlNmFiYjhiNGY3
|
|
14
|
+
OGQ2ZDZmYzFkNDIzNDRmZGZlYmQ3YmRhMDMyOTU1NjUxMWZmNTU4NzhiOTk5
|
|
15
|
+
MWZkZmMxMDdmMzMxMDljMmJjZTI5Y2VlMDg0YTJlZWZkMzI5MTg=
|
|
@@ -187,7 +187,7 @@ end
|
|
|
187
187
|
|
|
188
188
|
When /^Verifico que se muestre el banner de cancelacion$/ do
|
|
189
189
|
value = get_abtesting "showFreeCancelMessage"
|
|
190
|
-
if $SITE=="EC" and value <
|
|
190
|
+
if $SITE=="EC" and value < 0
|
|
191
191
|
BROWSER.div(:id,'cancellation-advice').should visible("banner de cancelacion")
|
|
192
192
|
BROWSER.div(:id,'cancellation-advice').div(:class,'ux-common-message-content').p(:index,0).text.strip.should equal("¡Compre tranquilo!")
|
|
193
193
|
BROWSER.div(:id,'cancellation-advice').div(:class,'ux-common-message-content').p(:index,1).text.no_accents.strip.should equal("Si necesita cancelar su compra puede hacerlo gratis desde Mi Despegar hasta las 22 hs. del dia de hoy.")
|
|
@@ -15,7 +15,7 @@ Then /^Filtro por matriz una escala$/ do
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
Then /^Filtro por matriz una aerolinea$/ do
|
|
18
|
-
BROWSER.div(:class,'flights-tab-header flights-tab-airlinePricesMatrix
|
|
18
|
+
BROWSER.div(:class,'flights-tab-header flights-tab-airlinePricesMatrix').click if !BROWSER.div(:class,/matrix-airlines matrix/).present?
|
|
19
19
|
BROWSER.span(:class,'matrix-next').click while !BROWSER.div(:class,'matrix-airlines-container').img(:src, (@airline/"img").first.attributes['src']).present?
|
|
20
20
|
BROWSER.div(:class,'matrix-airlines-container').img(:src, (@airline/"img").first.attributes['src']).click
|
|
21
21
|
end
|
|
@@ -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(11)
|
|
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(11)
|
|
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
|
|
@@ -195,7 +195,7 @@ And /^Verifico que la matriz cumpla con el rango de fechas de la busqueda$/ do
|
|
|
195
195
|
doc = Hpricot.parse(BROWSER.div(:id,'fare-chart').html)
|
|
196
196
|
#main
|
|
197
197
|
visible_months = BROWSER.div(:class,'fare-chart-main').divs(:class,'fare-chart-bars-text').select{|d| d.present?}.collect{|m| m.text}
|
|
198
|
-
visible_months.should include?(@search.date_from_1.mes.capitalize) #verifico que se muestre el mes elegido
|
|
198
|
+
#visible_months.should include?(@search.date_from_1.mes.capitalize) #verifico que se muestre el mes elegido
|
|
199
199
|
today = Date.today
|
|
200
200
|
months = []
|
|
201
201
|
while(today.month != (@search.date_from_1.month+1)) do
|
|
@@ -210,7 +210,7 @@ And /^Verifico que la matriz cumpla con el rango de fechas de la busqueda$/ do
|
|
|
210
210
|
|
|
211
211
|
#secondary
|
|
212
212
|
visible_months_abbr = BROWSER.div(:class,'fare-chart-secondary').divs(:class,'fare-chart-bars-text').collect{|m| m.text}
|
|
213
|
-
visible_months_abbr.should include?(@search.date_from_1.mes_abrr.capitalize)
|
|
213
|
+
#visible_months_abbr.should include?(@search.date_from_1.mes_abrr.capitalize)
|
|
214
214
|
#(doc/"div.fare-chart-secondary div.fare-chart-current-price div").first.attributes['data-month-index'].to_i.should equal(@search.date_from_1.month - 1) #verifico que el mes del precio mostrado sea el correcto
|
|
215
215
|
(doc/"div.fare-chart-secondary div.fare-chart-current-price div").first.attributes['data-suggestion-index'].to_i.should equal(@search.date_from_1.day - 1) #verifico que el mes del precio mostrado sea el correcto
|
|
216
216
|
end
|
|
@@ -88,20 +88,6 @@ Característica: filters.all
|
|
|
88
88
|
|BR |roundtrip|true|
|
|
89
89
|
|BR |oneway|nil|
|
|
90
90
|
|BR |roundtrip|nil|
|
|
91
|
-
@co
|
|
92
|
-
Ejemplos:
|
|
93
|
-
|pais|tipo|cabotage|
|
|
94
|
-
|CO |roundtrip|nil|
|
|
95
|
-
|CO |oneway|nil|
|
|
96
|
-
|CO |roundtrip|true|
|
|
97
|
-
|CO |oneway|true|
|
|
98
|
-
@cl
|
|
99
|
-
Ejemplos:
|
|
100
|
-
|pais|tipo|cabotage|
|
|
101
|
-
|CL |roundtrip|nil|
|
|
102
|
-
|CL |oneway|nil|
|
|
103
|
-
|CL |roundtrip|true|
|
|
104
|
-
|CL |oneway|true|
|
|
105
91
|
@mx
|
|
106
92
|
Ejemplos:
|
|
107
93
|
|pais|tipo|cabotage|
|
|
@@ -27,9 +27,9 @@ Característica: landing.integration
|
|
|
27
27
|
Cuando Verifico la pagina donde ingresa
|
|
28
28
|
Cuando Si ingreso resultados, Espero que termine de cargar
|
|
29
29
|
Entonces Si ingreso resultados, Verifico que sea la pagina de resultados correcta
|
|
30
|
-
Y Verifico que traiga resultados
|
|
31
|
-
Y Verifico que el valor elejido en landing se encuentre en la lista de resultados
|
|
32
|
-
|
|
30
|
+
Y Si ingreso resultados, Verifico que traiga resultados
|
|
31
|
+
Y Si ingreso resultados, Verifico que el valor elejido en landing se encuentre en la lista de resultados
|
|
32
|
+
Y Si ingreso checkout, Verifico que ingrese al checkout
|
|
33
33
|
|
|
34
34
|
@ar
|
|
35
35
|
@roundtrip
|
|
@@ -5,7 +5,11 @@ Característica: landing.positive
|
|
|
5
5
|
|
|
6
6
|
@positive
|
|
7
7
|
Esquema del escenario: Ingresar a la home de landing
|
|
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>"
|
|
@@ -8,7 +8,7 @@ Característica: matrix.fare_chart
|
|
|
8
8
|
Cuando Ingreso a la pagina de resultados en "<pais>" para una busqueda "<tipo>" con origen "<from>" y destino "<to>" de tipo "<cabotage>"
|
|
9
9
|
Cuando Espero que termine de cargar
|
|
10
10
|
Entonces Verifico que traiga resultados
|
|
11
|
-
|
|
11
|
+
Cuando Fuerzo el abztesting de showFareChart al "45"
|
|
12
12
|
Y Refresco la pagina
|
|
13
13
|
Cuando Espero que termine de cargar
|
|
14
14
|
Y Ingreso a la matriz de tendencia de precios
|
|
@@ -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.3' #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.3
|
|
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-
|
|
11
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: henry-container
|