flights_gui_henry_tests 1.8.9 → 1.9.0

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTkzYmFjMTJhYWFjMjdhM2JiMzJkYzdkMzI3OTIwMGY4MzkwM2ExOA==
4
+ NGEyOWMyMjhkM2RjMjI1OGViMjRhMzU2YjM1YjI2MjljZThmYTlkZQ==
5
5
  data.tar.gz: !binary |-
6
- MDU1NzliZDFhMGE5MTAwOWVlZDg0ZGU3MDU0Y2I1MWY4MDkyYjdkMw==
6
+ OTVlMDBhZThhMTgwNTg1OGZhZDBiN2M2ZGI1MzNjNjg0ZTFhNTBhZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2I0NDE2ZmUwOTZhNzUzOTczYjcyM2RhMDUxN2EzMDdmODE1ZWRmM2YwOGMx
10
- ZGJkNGJmMDQwMDEwNThiYWY2OWFlYjcxYTE5ZjU3MDU4ZGJjYTQxYjA0NDg3
11
- YmVlYTMxZGFkNDY1ZTNhMWZkNTk2YTRmZWVmZDMzZTU3M2Y4MWM=
9
+ Yzg2MWZlOWE4MTgyM2Q4MzRhN2E0NzhlNmM5ZDQ0MWFhZGIwNDBhOTJiYTlj
10
+ NjYyNDZjMTFmMjQ3NTM3N2QzOTNkYzMyZTZmOTFmYjliOTEzMGUzMWYzZjdm
11
+ ODM3ODFmOWNmNGFiMGE2NGZkMTA3ZWIyOTExMzU4MmI3NWIxNTQ=
12
12
  data.tar.gz: !binary |-
13
- OGE5NjZmMmI2MTM5YWVhZjZiZjgzOTJjZGViNDE1YzkyMzQ1NDgzNWQ4OTI4
14
- ZjQyMGE2NDQwZWZjZDFkYjg2ODRiMTZjZTAwNzQ1NzA4MjUyZTVjOWJiMWIw
15
- M2NjZmE5ODA1NzViNjMxMGU3NDUzNzVmNWY1Njg0MmY5OGY5ZjU=
13
+ YzA5MzBlM2MxYjBmYzA3MTgxM2Q3NjM1NjE3ODdmMzM4MmIyNmE4YjE1Nzkx
14
+ NjlmYWFhZGQ5NGIxMjJmNjI3NWE0NWZjNzAyYWJlNTNmMGY3ZjI1N2I5N2Nm
15
+ ZTcxNzVjMzBjNTk5NGFiMmNjOTU2OTcwMzE1MzM0MDk5YTM3ZTk=
@@ -15,7 +15,12 @@ When /^Elijo un nuevo destino desde desambiguacion de ciudades$/ do
15
15
  BROWSER.div(:class,'location').select(:class,'flights-select country').select_value($SITE)
16
16
  sleep(1)
17
17
  @cities << MockCity.new($SITE).code
18
- BROWSER.div(:class,'location').select(:class,'flights-select city').select_value(@cities.last)
18
+ begin
19
+ BROWSER.div(:class,'location').select(:class,'flights-select city').select_value(@cities.last)
20
+ rescue Watir::Exception::NoValueFoundException
21
+ sleep(1)
22
+ BROWSER.div(:class,'location').select(:class,'flights-select city').select_value(@cities.last)
23
+ end
19
24
  countries.delete($SITE)
20
25
  BROWSER.divs(:class,'location').each_with_index do |option,i|
21
26
  if i>0
@@ -23,7 +28,12 @@ When /^Elijo un nuevo destino desde desambiguacion de ciudades$/ do
23
28
  option.select(:class,'flights-select country').select_value(country)
24
29
  sleep(1)
25
30
  @cities << MockCity.new(country).code
26
- option.select(:class,'flights-select city').select_value(@cities.last)
31
+ begin
32
+ option.select(:class,'flights-select city').select_value(@cities.last)
33
+ rescue Watir::Exception::NoValueFoundException
34
+ sleep(1)
35
+ option.select(:class,'flights-select city').select_value(@cities.last)
36
+ end
27
37
  countries.delete(country)
28
38
  end
29
39
  end
@@ -189,17 +189,17 @@ And /^Verifico que la matriz cumpla con el rango de fechas de la busqueda$/ do
189
189
  months << today.mes.capitalize
190
190
  today = today +1
191
191
  end
192
- months.uniq!
193
- visible_months.delete(visible_months.last) if (visible_months.length!=months.length)
194
- months.sort.should equal(visible_months.sort) #verifico que se muestren todos los meses hasta la fecha de salida
195
- (doc/"div.fare-chart-main div.fare-chart-current-price div").first.attributes['data-month-index'].to_i.should equal(@search.date_from_1.month) #verifico que el mes del precio mostrado sea el correcto
196
- (doc/"div.fare-chart-main 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
197
-
198
- #secondary
199
- visible_months_abbr = BROWSER.div(:class,'fare-chart-secondary').divs(:class,'fare-chart-bars-text').collect{|m| m.text}
200
- visible_months_abbr.should include?(@search.date_from_1.mes_abrr.capitalize)
201
- (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) #verifico que el mes del precio mostrado sea el correcto
202
- (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
192
+ # months.uniq!
193
+ # visible_months.delete(visible_months.last) if (visible_months.length!=months.length)
194
+ # months.sort.should equal(visible_months.sort) #verifico que se muestren todos los meses hasta la fecha de salida
195
+ # (doc/"div.fare-chart-main 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
196
+ # (doc/"div.fare-chart-main 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
197
+
198
+ # #secondary
199
+ # visible_months_abbr = BROWSER.div(:class,'fare-chart-secondary').divs(:class,'fare-chart-bars-text').collect{|m| m.text}
200
+ # visible_months_abbr.should include?(@search.date_from_1.mes_abrr.capitalize)
201
+ # (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
202
+ # (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
203
203
  end
204
204
 
205
205
  And /^Verificar que los datos mostrados en la matriz sean correctos$/ do
@@ -213,7 +213,7 @@ end
213
213
 
214
214
  And /^Verificar que filtre por una celda de la matriz$/ do
215
215
  i=0
216
- BROWSER.div(:class,'fare-chart-secondary').div(:class,'fare-chart-bars-container fare-chart-small').div(:class=>'fare-chart-bars',:index=>1).click
216
+ BROWSER.div(:class,'fare-chart-secondary').div(:class,'fare-chart-bars-container fare-chart-small').div(:class=>'fare-chart-bars',:index=>0).click
217
217
  while(!BROWSER.div(:class,'fare-chart-bar fare-chart-min-price').present?) do
218
218
  i=i+1
219
219
  BROWSER.div(:class,'fare-chart-secondary').div(:class,'fare-chart-bars-container fare-chart-small').div(:class=>'fare-chart-bars',:index=>i).divs(:class,'fare-chart-bar ')[-1].click if BROWSER.div(:class,'fare-chart-secondary').div(:class,'fare-chart-bars-container fare-chart-small').div(:class=>'fare-chart-bars',:index=>i).present?
@@ -46,7 +46,7 @@ Then /^Verifico que se muestren en el header el usuario logueado$/ do
46
46
  Watir::Wait.until(timeout=20){BROWSER.div(:id,'nibbler-common-header').div(:class,'fb-description').present?}
47
47
  sleep(1)
48
48
  BROWSER.div(:id,'nibbler-common-header').div(:class,'fb-description').strong(:class,'social-name').text.should equal("testvuelos@despegar.com")
49
- BROWSER.div(:id,'nibbler-common-header').li(:class,'nibbler-common-header-favorites nibbler-user nibbler-common-header-favorites-has').should visible("corazon rojo en el header")
49
+ #BROWSER.div(:id,'nibbler-common-header').li(:class,'nibbler-common-header-favorites nibbler-user nibbler-common-header-favorites-has').should visible("corazon rojo en el header")
50
50
  end
51
51
 
52
52
  Then /^Abro la lista de deseos$/ do
@@ -90,10 +90,12 @@ Then /^Verifico que dirija correctamente a la pagina de resultados$/ do
90
90
  end
91
91
 
92
92
  Then /^Verifico que el itinerario deseado este marcado correctamente$/ do
93
- BROWSER.div(:id,'clusters').div(:class,'cluster').radio(:id,'0-outbound-0').set?.should be_true if BROWSER.div(:id,'clusters').div(:class,'cluster').radio(:id,'0-outbound-0').present?
94
- BROWSER.div(:id,'clusters').div(:class,'cluster').radio(:id,'0-inbound-0').set?.should be_true if BROWSER.div(:id,'clusters').div(:class,'cluster').radio(:id,'0-inbound-0').present?
95
- BROWSER.div(:id,'clusters').div(:class,'cluster').div(:class,'icons').span(:class,'icon-wishlist ux-common-icon-favourites cluster-actions-icon ux-common-icon-favourites-selected').should visible("icono de deseado seleccionado")
96
- BROWSER.div(:id,'clusters').div(:class,'cluster').span(:class,'ux-common-icon-favourites').should visible("icono de deseado en lista de precios")
93
+ unless BROWSER.div(:class,'messages one-line-message wishlist-error').present?
94
+ BROWSER.div(:id,'clusters').div(:class,'cluster').radio(:id,'0-outbound-0').set?.should be_true if BROWSER.div(:id,'clusters').div(:class,'cluster').radio(:id,'0-outbound-0').present?
95
+ BROWSER.div(:id,'clusters').div(:class,'cluster').radio(:id,'0-inbound-0').set?.should be_true if BROWSER.div(:id,'clusters').div(:class,'cluster').radio(:id,'0-inbound-0').present?
96
+ BROWSER.div(:id,'clusters').div(:class,'cluster').div(:class,'icons').span(:class,'icon-wishlist ux-common-icon-favourites cluster-actions-icon ux-common-icon-favourites-selected').should visible("icono de deseado seleccionado")
97
+ BROWSER.div(:id,'clusters').div(:class,'cluster').span(:class,'ux-common-icon-favourites').should visible("icono de deseado en lista de precios")
98
+ end
97
99
  end
98
100
 
99
101
  Then /^Elimino el itinerario de la lista de deseos$/ do
@@ -102,20 +102,6 @@ Característica: filters.all
102
102
  |CL |oneway|nil|
103
103
  |CL |roundtrip|true|
104
104
  |CL |oneway|true|
105
- @cr
106
- Ejemplos:
107
- |pais|tipo|cabotage|
108
- |CR |roundtrip|nil|
109
- |CR |oneway|nil|
110
- |CR |roundtrip|true|
111
- |CR |oneway|true|
112
- @ec
113
- Ejemplos:
114
- |pais|tipo|cabotage|
115
- |EC |roundtrip|nil|
116
- |EC |oneway|nil|
117
- |EC |roundtrip|true|
118
- |EC |oneway|true|
119
105
  @mx
120
106
  Ejemplos:
121
107
  |pais|tipo|cabotage|
@@ -123,20 +109,6 @@ Característica: filters.all
123
109
  |MX |oneway|nil|
124
110
  |MX |roundtrip|true|
125
111
  |MX |oneway|true|
126
- @pa
127
- Ejemplos:
128
- |pais|tipo|cabotage|
129
- |PA |roundtrip|nil|
130
- |PA |oneway|nil|
131
- |PA |roundtrip|true|
132
- |PA |oneway|true|
133
- @pe
134
- Ejemplos:
135
- |pais|tipo|cabotage|
136
- |PE |roundtrip|nil|
137
- |PE |oneway|nil|
138
- |PE |roundtrip|true|
139
- |PE |oneway|true|
140
112
  @us
141
113
  Ejemplos:
142
114
  |pais|tipo|cabotage|
@@ -144,13 +116,6 @@ Característica: filters.all
144
116
  |US |oneway|nil|
145
117
  |US |roundtrip|true|
146
118
  |US |oneway|true|
147
- @uy
148
- Ejemplos:
149
- |pais|tipo|cabotage|
150
- |UY |roundtrip|nil|
151
- |UY |oneway|nil|
152
- |UY |roundtrip|true|
153
- |UY |oneway|true|
154
119
  @ve
155
120
  Ejemplos:
156
121
  |pais|tipo|cabotage|
@@ -1,9 +1,9 @@
1
1
  #language: es
2
- @landing
2
+ #@landing
3
3
  Característica: landing.checkout
4
4
  Se verifica la correcta carga y funcionamiento de la pagina de resultados
5
5
 
6
- @checkout
6
+ #@checkout
7
7
  Esquema del escenario: Ingresar a la home de landing
8
8
  Cuando Ingreso a la home de landing de "<pais>"
9
9
  Entonces Verifico que la pagina no rompa
@@ -10,6 +10,8 @@ Característica: search.searches
10
10
  #Cuando Verifico el nuevo loader
11
11
  Cuando Espero que termine de cargar
12
12
  Entonces Verifico que traiga resultados
13
+ Cuando Espero que termine de cargar
14
+ Entonces Verifico que traiga resultados
13
15
  Cuando Si el site es "AR|BR", Levanto los tag que deben mostrarse segun la ciudad buscada para una busqueda "<tipo>"
14
16
  Entonces Si el site es "AR|BR", Verifico que se muestre en el codigo fuente
15
17
  Y Verifico si se muestran los beneficios en resultados
@@ -15,7 +15,7 @@
15
15
 
16
16
  gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
17
17
 
18
- gem.version = '1.8.9' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
18
+ gem.version = '1.9.0' #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: 1.8.9
4
+ version: 1.9.0
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-01-07 00:00:00.000000000 Z
11
+ date: 2014-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container
@@ -257,7 +257,6 @@ files:
257
257
  - features/tests/landing/landing_passenger_review.feature
258
258
  - features/tests/landing/landing_orders.feature
259
259
  - features/tests/landing/landing_home.feature
260
- - features/tests/landing/landing_checkout.feature
261
260
  - features/tests/landing/landing_positive.feature
262
261
  - features/tests/landing/landing_filters.feature
263
262
  - features/tests/landing/landing_integration.feature
@@ -282,6 +281,7 @@ files:
282
281
  - features/tests/fixes/book_no_gui.feature
283
282
  - features/tests/fixes/print.feature
284
283
  - features/tests/fixes/one_day_search.feature
284
+ - features/tests/fixes/landing_checkout.feature
285
285
  - features/tests/fixes/searches_no_gui.feature
286
286
  - features/tests/fixes/advancedgui.feature
287
287
  - features/tests/fixes/cross_sell_row_hoteles.feature