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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d4f1eb956e14f8dcaca60c803da8c40a80b6c33
|
4
|
+
data.tar.gz: 463162905ef6f9e6954d39602a8340635f8ac237
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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.
|
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')
|