flights_gui_tests 2.4.39 → 2.4.40
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: 7917a4a1ada3cb0b0566254f5b532ba1cddc65cd
|
4
|
+
data.tar.gz: 85f1401e70958eb738b54e64e4a88735cf96ae59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13d1469eb5896ef4c5566d68512328dccc6b5fa1378ae4f8bc0a9956839cf711a458162763a17804d91d4a2638b24bddf2ce2983111ccecd7d906493992f886b
|
7
|
+
data.tar.gz: 8947b315c2b36afd426a983e47fc67af8d37336faa6c43b2d083af2eabaeff82dfffa7869c49183fafa5921738e62556c65339df9f5b116be0399ba2a4ebab1c
|
@@ -3,6 +3,7 @@ module Pages
|
|
3
3
|
module Cookies
|
4
4
|
#modifico el valor del abtesting requerido
|
5
5
|
def modificar_abtesting(nombre,valor)
|
6
|
+
byebug
|
6
7
|
cookie = self.recuperar_cookie("abzTestingId")
|
7
8
|
nuevo_valor = cookie[:value].gsub(/#{self.recuperar_valor_abtesting(nombre)}/,valor.to_s)
|
8
9
|
self.eliminar_cookie("abzTestingId")
|
@@ -111,30 +111,33 @@ module Landing
|
|
111
111
|
clusters = Array.new
|
112
112
|
doc = Hpricot.parse(lista_itinerarios_element.html)
|
113
113
|
k = 0
|
114
|
-
(doc/"div.cluster").each_with_index do |
|
114
|
+
(doc/"div.cluster").each_with_index do |cluster_html,i|
|
115
|
+
cluster = $HENRY_PARAMS['angular'] ? itinerarios_elements[i].div(:class,'itineraries').spans(:class,'sub-cluster') : itinerarios_elements[i].div(:class,'itineraries').divs(:class,'sub-cluster')
|
115
116
|
_cluster = {"idas"=>Array.new,"vueltas"=>Array.new}
|
116
|
-
(
|
117
|
-
|
118
|
-
|
117
|
+
((cluster_html/"div.sub-cluster")[0]/"li.cluster-item").each_with_index do |item,j|
|
118
|
+
cluster[0].span(:class,'showMoreItineraries').click if cluster[0].span(:class,'showMoreItineraries').present?
|
119
|
+
cluster[0].lis(:class,'detail')[j].links[0].span(:class,'text').click
|
119
120
|
sleep(0.5)
|
120
|
-
new_popup_detail_elements[
|
121
|
-
_cluster["idas"] << NewDetailsCluster.new(Hpricot.parse(new_popup_detail_elements[
|
122
|
-
|
123
|
-
sleep(0.5)
|
124
|
-
k = k + 1
|
125
|
-
break if k > 1
|
126
|
-
end
|
127
|
-
(cluster/"div.inbound li.cluster-item").each_with_index do |item,j|
|
128
|
-
itinerarios_elements[i].div(:class,'sub-cluster inbound').span(:class,'showMoreItineraries').click if itinerarios_elements[i].div(:class,'sub-cluster inbound').span(:class,'showMoreItineraries').present?
|
129
|
-
itinerarios_elements[i].div(:class,'sub-cluster inbound').lis(:class,'detail')[j].links[0].span(:class,'text').click
|
130
|
-
sleep(0.5)
|
131
|
-
new_popup_detail_elements[k].when_visible(timeout=20)
|
132
|
-
_cluster["vueltas"] << NewDetailsCluster.new(Hpricot.parse(new_popup_detail_elements[k].html))
|
133
|
-
itinerarios_elements[i].div(:class,'sub-cluster inbound').lis(:class,'detail')[j].span(:class,'itinerary-detail-hide').click
|
121
|
+
new_popup_detail_elements[0].when_visible(timeout=20)
|
122
|
+
_cluster["idas"] << NewDetailsCluster.new(Hpricot.parse(new_popup_detail_elements[0].html))
|
123
|
+
cluster[0].lis(:class,'detail')[j].span(:class,'itinerary-detail-hide').click
|
134
124
|
sleep(0.5)
|
135
125
|
k = k + 1
|
136
126
|
break if k > 1
|
137
127
|
end
|
128
|
+
if (cluster_html/"div.sub-cluster")[1]
|
129
|
+
((cluster_html/"div.sub-cluster")[1]/"li.cluster-item").each_with_index do |item,j|
|
130
|
+
cluster[1].span(:class,'showMoreItineraries').click if cluster[1].span(:class,'showMoreItineraries').present?
|
131
|
+
cluster[1].lis(:class,'detail')[j].links[0].span(:class,'text').click
|
132
|
+
sleep(0.5)
|
133
|
+
new_popup_detail_elements[0].when_visible(timeout=20)
|
134
|
+
_cluster["vueltas"] << NewDetailsCluster.new(Hpricot.parse(new_popup_detail_elements[0].html))
|
135
|
+
cluster[1].lis(:class,'detail')[j].span(:class,'itinerary-detail-hide').click
|
136
|
+
sleep(0.5)
|
137
|
+
k = k + 1
|
138
|
+
break if k > 1
|
139
|
+
end
|
140
|
+
end
|
138
141
|
clusters << _cluster
|
139
142
|
break if i > 1
|
140
143
|
end
|
data/features/support/version.rb
CHANGED
@@ -15,10 +15,6 @@ Característica: landing.tags
|
|
15
15
|
Entonces verifico que traiga resultados de landing
|
16
16
|
Y verifico que la url sea la correcta
|
17
17
|
Y verifico el primer tag de google en resultado
|
18
|
-
Y verifico el segundo tag de google en resultado de landing
|
19
|
-
Y verifico el tag de groovinads
|
20
|
-
Cuando si el site es "AR|BR", levanto los tag que deben mostrarse segun la ciudad buscada para landing
|
21
|
-
Entonces si el site es "AR|BR", verifico que se muestre en el codigo fuente
|
22
18
|
|
23
19
|
@ar
|
24
20
|
@roundtrip
|
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: 2.4.
|
4
|
+
version: 2.4.40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|