flights_gui_henry_tests 2.6.5 → 2.6.6

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: 4b96a07c882ad7de0d16a936602d26e56a44bdda
4
- data.tar.gz: ae0d64b083cc045e9a8df312c15b9b0725ef027c
3
+ metadata.gz: 4d4f1eb956e14f8dcaca60c803da8c40a80b6c33
4
+ data.tar.gz: 463162905ef6f9e6954d39602a8340635f8ac237
5
5
  SHA512:
6
- metadata.gz: 978f9529ef3f0d640c9a8c048b84e2b0e418f95a937f5eb3fa197e75cd82a99cfa4919a4ef209853e7df87b7a12688fd4290beb4ba536072ca906ff01ce7d59b
7
- data.tar.gz: 751f50b7191b28d2f7b00f506c8d5c53910549038cd2024c43569a039ef3d63418686becb3dba7a8193114e384568123977be423ad7914a5cc66b5a3ffe49be6
6
+ metadata.gz: c8120339dace08bb053195fa5b87cb997aaae54438d2161d5d11a873d7174ab17a239ea728a4c5425d1e5f4adc85efb01332001e5651c7e153d1716245ac1072
7
+ data.tar.gz: 6b98e4aee716e75803e841577896efb16b2ab3fbfbf7a20753434851f4de869f75dbb01a6358a12775232217e3d12ee9f44b23277d00db4a43b0322623b20822
@@ -1,7 +1,21 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  When /^Elijo un itinerario y paso a checkout$/ do
3
3
  json = @search.get_results_search_service
4
- index = (BROWSER.div(:id,'clusters').divs(:class,'cluster').length>1) ? 1 : 0
4
+ index = 0
5
+ no_delta = nil
6
+ json['result']['data']['items'].each do |item|
7
+ if @search.description!="multipledestinations"
8
+ item["itinerariesBox"]["matchingInfoMap"].each_pair do |key,value|
9
+ no_delta = true if value["validatingCarrier"]!="DL"
10
+ break
11
+ end
12
+ else
13
+ no_delta = true if item["itinerary"]["itineraryInfo"]["validatingCarrier"]!="DL"
14
+ end
15
+ break if no_delta
16
+ index = index + 1
17
+ end
18
+ pending("Se encontraron solo vuelos de delta") unless no_delta
5
19
  @item_json = json['result']['data']['items'][index]
6
20
  @itinerario = ResultsCluster.new(@search.description,Hpricot.parse(BROWSER.div(:id,'clusters').divs(:class,'cluster')[index].html))
7
21
  if BROWSER.div(:id,'clusters').divs(:class,'cluster')[index].span(:class,'tickets-left-text').present?
@@ -14,7 +14,7 @@
14
14
  gem.name = "flights_gui_henry_tests" #Debe ser unico en el Gem Server, tratemos de utilizar nombre que identifiquen de forma inequivoca
15
15
 
16
16
  gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]5
17
- gem.version = '2.6.5' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
17
+ gem.version = '2.6.6' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
18
18
 
19
19
  gem.add_dependency('henry-container', '>= 0.1.82')
20
20
  gem.add_dependency('watir-webdriver')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_henry_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.5
4
+ version: 2.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez