flights_gui_tests 0.2.7 → 0.2.8
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 +4 -4
- data/features/step_definitions/tags_steps.rb +1 -1
- data/features/support/classes/clusters/checkout_cluster.rb +2 -2
- data/features/support/modules/checkout/datos_de_facturacion.rb +1 -0
- data/features/tests/checkout/book_ok.feature +2 -3
- data/features/tests/checkout/low_cost.feature +2 -2
- data/flights_gui_tests.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9542a34199f3b5daed23cfa2c9a8f8338e50652
|
4
|
+
data.tar.gz: 64a300c7723878e5df27fb40a4ec22415a0d48a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7965cf588e16422524e1d5f96ee184ba6b76eb6dfcfcc17731896c97726c76fb5b1ac5cd96ea58d936bb21adcf371867794a4fe5f39eafc799140c46d5be2291
|
7
|
+
data.tar.gz: 8078b9a37eb0e8bb284cf49fda9cb3f155890ad4e8c17000ff86dbae80f922955e0730b2edfb818c6e9b624f44929a60ff9335669eb7d2b109669dac66d00916
|
@@ -194,7 +194,7 @@ Y(/^verifico el segundo tag de google en resultado de gracias$/) do
|
|
194
194
|
end
|
195
195
|
|
196
196
|
Y(/^verifico el pixel de doubleclick/) do
|
197
|
-
pixel_doubleclick = @page.buscar_elemento_por_atributo("iframe","src","fls.doubleclick").
|
197
|
+
pixel_doubleclick = @page.buscar_elemento_por_atributo("iframe","src","fls.doubleclick").last
|
198
198
|
pixel_doubleclick.should be_true
|
199
199
|
pixel_doubleclick.attributes['src'].should match("https://4487021.fls.doubleclick.net/activityi;src=4487021;type=sales;cat=MEmL6cH6;qty=#{@page.manage_data.get_childrens+@page.manage_data.adt};cost=(.+);u1=BRL;u3=flights;ord=#{@id_reserva}?")
|
200
200
|
end
|
@@ -27,7 +27,7 @@ module Checkout
|
|
27
27
|
destino= (div_datos/"span.cities").last.inner_html.to_s.match("(.*)\<span class=\"separator\"\>\<\/span\>(.*)")[2].strip.no_accents
|
28
28
|
origen_iata = (div_datos/"li.outbound a")[0].inner_text.strip
|
29
29
|
destino_iata = (div_datos/"li.inbound a")[-1].inner_text.strip
|
30
|
-
fecha = (div_datos_ida/"li.outbound span.date")[0] ? (div_datos_ida/"li.outbound span.date")[0].inner_text.strip.no_accents : (div_datos_ida/"li.inbound span.date")[0].inner_text.strip.no_accents
|
30
|
+
fecha = (div_datos_ida/"li.outbound span.date")[0] ? (div_datos_ida/"li.outbound span.date")[0].inner_text.strip.no_accents : ((div_datos_ida/"li.inbound span.date")[0] ? (div_datos_ida/"li.inbound span.date")[0].inner_text.strip.no_accents : @idas.last.fecha.strftime("%a %e %b %Y"))
|
31
31
|
escala = (div_datos/"span.stops a").inner_text.strip.empty? ? "Sin escalas" : (div_datos/"span.stops a").inner_text.to_i
|
32
32
|
aerolinea = Array.new
|
33
33
|
i = 0
|
@@ -49,7 +49,7 @@ module Checkout
|
|
49
49
|
destino= (div_datos/"span.cities").last.inner_html.to_s.match("(.*)\<span class=\"separator\"\>\<\/span\>(.*)")[2].strip.no_accents
|
50
50
|
origen_iata = (div_datos/"li.outbound a")[0].inner_text.strip
|
51
51
|
destino_iata = (div_datos/"li.inbound a")[-1].inner_text.strip
|
52
|
-
fecha = (div_datos_vuelta/"li.outbound span.date")[0] ? (div_datos_vuelta/"li.outbound span.date")[0].inner_text.strip.no_accents : (div_datos_vuelta/"li.inbound span.date")[0].inner_text.strip.no_accents
|
52
|
+
fecha = (div_datos_vuelta/"li.outbound span.date")[0] ? (div_datos_vuelta/"li.outbound span.date")[0].inner_text.strip.no_accents : ((div_datos_vuelta/"li.inbound span.date")[0] ? (div_datos_vuelta/"li.inbound span.date")[0].inner_text.strip.no_accents : @vueltas.last.fecha.strftime("%a %e %b %Y"))
|
53
53
|
escala = (div_datos/"span.stops a").inner_text.strip.empty? ? "Sin escalas" : (div_datos/"span.stops a").inner_text.to_i
|
54
54
|
aerolinea = Array.new
|
55
55
|
i = 0
|
@@ -62,6 +62,7 @@ module Checkout
|
|
62
62
|
nombre_facturacion_element.set("diego qa romero") if nombre_facturacion_element.present?
|
63
63
|
provincia_facturacion_element.select(provincia_facturacion_options[2]) if provincia_facturacion_element.present?
|
64
64
|
ciudad_facturacion_element.set("Rosario") if ciudad_facturacion_element.present?
|
65
|
+
ciudad_facturacion_custom_element.set("Rosario") if ciudad_facturacion_custom_element.present?
|
65
66
|
calle_facturacion_element.set("corrientes") if calle_facturacion_element.present?
|
66
67
|
if AllPages.site=="MX"
|
67
68
|
otro_estado_facturacion_element.set("Chiapas") if otro_estado_facturacion_element.present?
|
@@ -21,7 +21,7 @@ Característica: checkout.book_ok
|
|
21
21
|
Y verifico que se muestren la caja de clientes felices
|
22
22
|
Entonces cargo los pasajeros
|
23
23
|
Y cargo los datos de la tarjeta
|
24
|
-
Y si el site es "AR|MX|PE|
|
24
|
+
Y si el site es "AR|MX|PE|EC", cargo los datos de facturacion
|
25
25
|
Y cargo los datos de contacto
|
26
26
|
Y verifico que los datos cargados sean mostrados correctamente al lado del boton comprar
|
27
27
|
Cuando acepto y compro
|
@@ -36,7 +36,6 @@ Característica: checkout.book_ok
|
|
36
36
|
Y verifico los valores del desglose en gracias contra los del checkout
|
37
37
|
Y verifico el tag de datalayer
|
38
38
|
Y verifico el pixel de Efrontier
|
39
|
-
# Y si el site es "BR", verifico el pixel de doubleclick
|
40
39
|
|
41
40
|
@ar
|
42
41
|
@roundtrip
|
@@ -237,7 +236,7 @@ Característica: checkout.book_ok
|
|
237
236
|
Y verifico los valores del desglose en gracias contra los del checkout
|
238
237
|
Y verifico el tag de datalayer
|
239
238
|
Y verifico el pixel de Efrontier
|
240
|
-
Y
|
239
|
+
Y verifico el pixel de doubleclick
|
241
240
|
|
242
241
|
@br
|
243
242
|
@roundtrip
|
@@ -42,8 +42,8 @@ Característica: checkout.low_cost
|
|
42
42
|
@br
|
43
43
|
Ejemplos:
|
44
44
|
|pais|tipo|cabotage|prov|from|to|
|
45
|
-
|BR|roundtrip|true|PSR|SAO|RIO|
|
46
|
-
|
45
|
+
# |BR|roundtrip|true|PSR|SAO|RIO|
|
46
|
+
# |BR|oneway|true|PSR|SAO|RIO|
|
47
47
|
|BR|roundtrip|true|OC6|REC|POA|
|
48
48
|
|BR|oneway|true|OC6|SAO|RIO|
|
49
49
|
|BR|roundtrip|true|GOL|SAO|RIO|
|
data/flights_gui_tests.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
|
15
15
|
gem.require_paths = ["lib"] # Usualmente es solo lib -> ["lib"]
|
16
16
|
|
17
|
-
gem.version = '0.2.
|
17
|
+
gem.version = '0.2.8' # 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.39')
|
20
20
|
gem.add_dependency('page-object')
|
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: 0.2.
|
4
|
+
version: 0.2.8
|
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-11-
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|