flights_gui_tests 1.4.9 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6703b328c198291775a1a4a233b746b7ecf32e77
4
- data.tar.gz: 15f0e2ffa12dec1f160583f003fc65e8ae0a43ee
3
+ metadata.gz: f7a20a5b9f0effc07a2d00e219986fec1bdd8802
4
+ data.tar.gz: c3675f8c8fa1c40520d46df38c6c22f923ef9bdc
5
5
  SHA512:
6
- metadata.gz: 13da1ee34d6306b1d5fefe709d05c9ebef52001be7bddda6d5599bca6d62cb7db2ce319c0ae7b7e39badb95dc88061874113e075feece8b0d47f3c1ab557d4ff
7
- data.tar.gz: 17499532f9aad83add72fa811f0b3dfbecf1ab5f80cc8b7960a70c164768baeb4eff06739c6d04b4d8cd2a6f6c278716ae9cbda5c7dc87b4f3c85549bc1034b5
6
+ metadata.gz: 2f3403d0b93e06300348736a81a241f4cc2d29a7cc75df8c79271b09e3baead7c7def96d5b2469782bd1ce6d34380f874897301785d135142d6eac4c516f275b
7
+ data.tar.gz: feeec175e37e3aebef5f2799a13be7b8cd8f505ff2efc1b9604a6ad9250a40f074f3871546a841e5b14f5a717bb5b894adbdcd4aa2880b61c7410f3da5827570
@@ -1,3 +1,9 @@
1
+ IN:
2
+ produccion: http://www.despegar.com
3
+ beta: http://www.despegar.com
4
+ rc: http://rc.despegar.it
5
+ ic: http://ic.despegar.it
6
+ desa: http://desa.despegar.com:8080
1
7
  AR:
2
8
  produccion: http://www.despegar.com.ar
3
9
  beta: http://www.despegar.com.ar
@@ -38,6 +38,9 @@ ES:
38
38
  - {code: "BCN", airports: ["BCN"], name: "Barcelona"}
39
39
  PR:
40
40
  - {code: "SJU", airports: ["SJU"], name: "San Juan"}
41
+ IN:
42
+ - {code: "BCN", airports: ["BCN"], name: "Barcelona"}
43
+ - {code: "PAR", airports: ["PAR"], name: "Paris"}
41
44
  US:
42
45
  - {code: "MIA", airports: ["MIA","FLL"], name: "Miami|Fort Lauderdale"}
43
46
  - {code: "LAX", airports: ["LAX"], name: "Los Angeles"}
@@ -206,7 +206,6 @@ Entonces(/^(?:verifico|valido) que se muestren los campos de factura$/) do
206
206
  @page.provincia_facturacion_element.should visible
207
207
  @page.ciudad_facturacion_custom_element.should visible
208
208
  @page.calle_facturacion_element.should visible
209
- @page.codigo_postal_facturacion_element.should visible
210
209
  @page.numero_facturacion_element.should visible
211
210
  @page.piso_facturacion_element.should visible
212
211
  @page.departamento_facturacion_element.should visible
@@ -51,6 +51,7 @@ Entonces(/^recorro y (?:verifico|valido) cada itinerario$/) do
51
51
  @page.validar_detalles_itinerario(i)
52
52
  @page.validar_popup_cuotas(i)
53
53
  @page.validar_vuelo_bussines(i)
54
+ @page.validar_maletas(i)
54
55
  i += 1
55
56
  break if i == 2
56
57
  end
@@ -4,6 +4,7 @@ require_relative 'itineraries/bussines'
4
4
  require_relative 'itineraries/payments'
5
5
  require_relative 'itineraries/details'
6
6
  require_relative 'itineraries/data'
7
+ require_relative 'itineraries/baggages'
7
8
 
8
9
  module Results
9
10
  module Itineraries
@@ -13,6 +14,7 @@ module Results
13
14
  include Results::Itineraries::Payments
14
15
  include Results::Itineraries::Details
15
16
  include Results::Itineraries::Data
17
+ include Results::Itineraries::Baggages
16
18
 
17
19
  def definir_nuevo_cluster(valor)
18
20
  @nuevo_cluster = valor
@@ -0,0 +1,22 @@
1
+ # -*- encoding : utf-8 -*-
2
+ module Results
3
+ module Itineraries
4
+ module Baggages
5
+
6
+ include PageObject
7
+
8
+ div(:popup_maletas,:id=>"popup-ancillary")
9
+ span(:cerrar_popup_maletas,:css=>"#popup-ancillary .popup-close-button")
10
+
11
+ def validar_maletas(i)
12
+ if itinerarios_elements[i].span(:class,/itinerary-icon icon-ancillaries ux-common-icon-suitcase/).present?
13
+ itinerarios_elements[i].span(:class,/itinerary-icon icon-ancillaries ux-common-icon-suitcase/).click
14
+ popup_maletas_element.when_visible(timeout=5)
15
+ popup_maletas_element.should visible
16
+ cerrar_popup_maletas_element.click
17
+ end
18
+ end
19
+
20
+ end
21
+ end
22
+ end
@@ -10,8 +10,8 @@ module Results
10
10
  outbound = itinerarios_elements[i].div(:class,'itineraries').div(:class,'sub-cluster outbound').div(:class,'item data')
11
11
  (manage_data.city_from_1.airports.include?(outbound.spans(:class,'airport')[0].text)).should be_true
12
12
  (manage_data.city_to_1.airports.include?(outbound.spans(:class,'airport')[1].text)).should be_true
13
- outbound.span(:class,'city-departure').text.no_accents.downcase.gsub(",","").strip.should equal(manage_data.city_from_1.name(AllPages.site).downcase) unless outbound.span(:class,'city-departure').text.downcase.no_accents.gsub(",","").strip.match("toluca|campinas")
14
- outbound.span(:class,'city-arrival').text.no_accents.downcase.gsub(",","").strip.should match(manage_data.city_to_1.name(AllPages.site).downcase) unless outbound.span(:class,'city-arrival').text.downcase.no_accents.gsub(",","").strip.match("toluca|campinas")
13
+ outbound.span(:class,'city-departure').text.no_accents.downcase.gsub(",","").strip.should equal(manage_data.city_from_1.name(AllPages.site).downcase) unless outbound.span(:class,'city-departure').text.downcase.no_accents.gsub(",","").strip.match("toluca|campinas|fort lauderdale")
14
+ outbound.span(:class,'city-arrival').text.no_accents.downcase.gsub(",","").strip.should match(manage_data.city_to_1.name(AllPages.site).downcase) unless outbound.span(:class,'city-arrival').text.downcase.no_accents.gsub(",","").strip.match("toluca|campinas|fort lauderdale")
15
15
  if tipo_de_busqueda == "roundtrip"
16
16
  inbound = itinerarios_elements[i].div(:class,'itineraries').div(:class,'sub-cluster inbound').div(:class,'item data')
17
17
  (manage_data.city_to_1.airports.include?(inbound.spans(:class,'airport')[0].text)).should be_true
@@ -28,6 +28,7 @@ module Results
28
28
  else
29
29
  puts "No se ve el elemento numero #{i} en la ruta #{j}"
30
30
  end
31
+ break if j > 1
31
32
  end
32
33
  rutas_vuelta(itinerarios_elements[i]).each_with_index do |route,k|
33
34
  if route.present?
@@ -43,6 +44,7 @@ module Results
43
44
  else
44
45
  puts "No se ve el elemento numero #{i} en la ruta #{k}"
45
46
  end
47
+ break if k > 1
46
48
  end
47
49
  end
48
50
 
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "1.4.9"
2
+ VERSION = "1.5.0"
3
3
  end
data/henry-context.yml CHANGED
@@ -2164,6 +2164,21 @@ tasks:
2164
2164
  recipients:
2165
2165
  - estebanldh@gmail.com
2166
2166
  - nsimean@despegar.com
2167
+ - name: results.itineraries.in
2168
+ class_name: Henry::Task::CucumberTask
2169
+ options:
2170
+ tags:
2171
+ - results
2172
+ - itineraries
2173
+ - in
2174
+ expand: true
2175
+ no-source: true
2176
+ reports:
2177
+ - format: html
2178
+ name: ${DATE}_${TASK_NAME}.html
2179
+ recipients:
2180
+ - estebanldh@gmail.com
2181
+ - nsimean@despegar.com
2167
2182
  - name: results.itineraries.ar
2168
2183
  class_name: Henry::Task::CucumberTask
2169
2184
  options:
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: 1.4.9
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container
@@ -320,6 +320,7 @@ files:
320
320
  - features/support/modules/pages/tags.rb
321
321
  - features/support/modules/results/filters.rb
322
322
  - features/support/modules/results/itineraries.rb
323
+ - features/support/modules/results/itineraries/baggages.rb
323
324
  - features/support/modules/results/itineraries/bussines.rb
324
325
  - features/support/modules/results/itineraries/data.rb
325
326
  - features/support/modules/results/itineraries/details.rb