flights_gui_henry_tests 2.9.7 → 2.9.8
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: 12e8d2ac23928fc0ac55d7c6b3a97a6d1cdc8857
|
4
|
+
data.tar.gz: ad98760f5dfe6cfd449766b147edd16702c57337
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 043b884c2e9fbf510a5e6cb8ffc1689dac4d6f4481deaada9fbee849596f93de3bf86f96f16d43842deda213b29797c96bac91f35d31481eecab354913c9ed72
|
7
|
+
data.tar.gz: 25ad81b6b897a6e5fa4105d8b038cafed7ffb352caf83c01bf22eb724d811f2ec45f3907d290fadd0e5f72ef7869b7e0422134ccc4f324dd9ac2718351a551fa
|
@@ -15,17 +15,15 @@ Entonces(/^verifico que se haya logueado correctamente$/) do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
Entonces(/^verifico que se muestren las tarjetas guardadas$/) do
|
18
|
-
BROWSER.div(:id,'
|
19
|
-
if BROWSER.div(:id,'
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
i = 0
|
24
|
-
BROWSER.div(:id,'paymentDefinition.storedCard').uls(:class,'card-container').each do |ul|
|
18
|
+
BROWSER.div(:id,'stored-cards').should visible("store de tarjetas guardadas")
|
19
|
+
BROWSER.execute_script("javascript:void($('#stored-cards .display-cards').click())") if BROWSER.div(:id,'stored-cards').link(:class,'display-cards').text.no_accents.downcase.match("mas|mais|more")
|
20
|
+
sleep(1)
|
21
|
+
index = 0
|
22
|
+
BROWSER.div(:id,'stored-cards').uls(:class,'card-container').each do |ul|
|
25
23
|
ul.radio(:class,'radio').click
|
26
24
|
sleep(0.5)
|
27
|
-
ul.text_field(:id,"stored-card-#{
|
28
|
-
|
25
|
+
ul.text_field(:id,"stored-card-#{index}-security-code").should visible("codigo de seguridad")
|
26
|
+
index = index + 1
|
29
27
|
end
|
30
28
|
BROWSER.div(:class,'new-card-container').should visible("opcion nueva tarjeta")
|
31
29
|
end
|
@@ -36,8 +34,7 @@ end
|
|
36
34
|
|
37
35
|
Entonces(/^Elijo una tarjeta ya guardada$/) do
|
38
36
|
if $SITE=="BR"
|
39
|
-
|
40
|
-
BROWSER.execute_script("javascript:void($('.display-cards').click())") if BROWSER.div(:id,'paymentDefinition.storedCard').link(:class,'display-cards').text.inner_text.downcase.match("mas|mais")
|
37
|
+
BROWSER.execute_script("javascript:void($('#stored-cards .display-cards').click())") if BROWSER.div(:id,'paymentDefinition.storedCard').link(:class,'display-cards').text.no_accents.downcase.match("mas|mais|more")
|
41
38
|
ul = BROWSER.div(:id,'paymentDefinition.storedCard').uls(:class,'card-container').to_a.select{|ul| ul.li(:class,'item owner-name').text.match(/BR/)}.first
|
42
39
|
pending("no se encontro usuario de tarjeta para brasil") unless ul
|
43
40
|
ul.radio(:class,'radio').click
|
@@ -46,4 +43,13 @@ Entonces(/^Elijo una tarjeta ya guardada$/) do
|
|
46
43
|
BROWSER.div(:id,'paymentDefinition.storedCard').radio(:class,'radio').click
|
47
44
|
BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"stored-card-0-security-code").set("123")
|
48
45
|
end
|
46
|
+
if BROWSER.div(:id,'paymentDefinition.billingAddressDefinition').present?
|
47
|
+
BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-city").set("Ciudad") if BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-city").present?
|
48
|
+
BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-street").set("Calle") if BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-street").present?
|
49
|
+
BROWSER.div(:id,'paymentDefinition.storedCard').select_list(:id,'billing-address-state').options[4].select if BROWSER.div(:id,'paymentDefinition.storedCard').select_list(:id,"billing-address-state").present?
|
50
|
+
BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-postal-code").set("12345") if BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-postal-code").present?
|
51
|
+
BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-number").set("470") if BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-number").present?
|
52
|
+
BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-floor").set("1") if BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-floor").present?
|
53
|
+
BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-deparment").set("1") if BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"billing-address-deparment").present?
|
54
|
+
end
|
49
55
|
end
|
@@ -26,6 +26,7 @@ When /^Elijo un itinerario y paso a checkout$/ do
|
|
26
26
|
BROWSER.div(:id,'clusters').divs(:class,'cluster')[index].radio(:id,"#{index}-outbound-0").click if BROWSER.div(:id,'clusters').divs(:class,'cluster')[index].radio(:id,"#{index}-outbound-0").present?
|
27
27
|
BROWSER.div(:id,'clusters').divs(:class,'cluster')[index].radio(:id,"#{index}-inbound-0").click if BROWSER.div(:id,'clusters').divs(:class,'cluster')[index].radio(:id,"#{index}-inbound-0").present?
|
28
28
|
|
29
|
+
BROWSER.div(:id,'create-alert-popup').span(:class,'popup-close-button popup-close').click if BROWSER.div(:id,'create-alert-popup').span(:class,'popup-close-button popup-close').present?
|
29
30
|
BROWSER.div(:id,'searches-count-alert-popup').span(:class,'popup-close-button popup-close').click if BROWSER.div(:id,'searches-count-alert-popup').present?
|
30
31
|
|
31
32
|
sleep(1)
|
@@ -82,7 +83,10 @@ When /^Elijo un itinerario con proveedor "(.*)" y paso a checkout$/ do |prov|
|
|
82
83
|
@itinerario = ResultsCluster.new(@search.description,Hpricot.parse(BROWSER.div(:id,'clusters').divs(:class,'cluster')[i].html))
|
83
84
|
BROWSER.div(:id,'clusters').divs(:class,'cluster')[i].radio(:id,"#{i}-outbound-0").click if BROWSER.div(:id,'clusters').divs(:class,'cluster')[i].radio(:id,"#{i}-outbound-0").present?
|
84
85
|
BROWSER.div(:id,'clusters').divs(:class,'cluster')[i].radio(:id,"#{i}-inbound-0").click if BROWSER.div(:id,'clusters').divs(:class,'cluster')[i].radio(:id,"#{i}-inbound-0").present?
|
86
|
+
|
87
|
+
BROWSER.div(:id,'create-alert-popup').span(:class,'popup-close-button popup-close').click if BROWSER.div(:id,'create-alert-popup').span(:class,'popup-close-button popup-close').present?
|
85
88
|
BROWSER.div(:id,'searches-count-alert-popup').span(:class,'popup-close-button popup-close').click if BROWSER.div(:id,'searches-count-alert-popup').present?
|
89
|
+
|
86
90
|
begin
|
87
91
|
BROWSER.div(:id,'clusters').divs(:class,'cluster')[i].link(:class,'buy btn-buy flights-button').click
|
88
92
|
rescue Timeout::Error
|
@@ -320,6 +324,18 @@ Then /^completo el formulario$/ do
|
|
320
324
|
step "Si debo completar de vuelta el formulario, completo el formulario"
|
321
325
|
end
|
322
326
|
|
327
|
+
Then /^completo datos para fast checkout$/ do
|
328
|
+
puts "pop up"
|
329
|
+
step "Completo el formulario de pasajeros"
|
330
|
+
step "Elijo una tarjeta ya guardada"
|
331
|
+
step "Completo los datos de contacto"
|
332
|
+
step "Si pide factura fiscal, Completo los campos de factura fiscal"
|
333
|
+
step "Realizo la compra"
|
334
|
+
step "Verifico que dirija a la pagina de gracias"
|
335
|
+
step "Si se muestra el popup de no disponibilidad, elijo otro vuelo"
|
336
|
+
step "Si debo completar de vuelta el formulario, completo datos para fast checkou"
|
337
|
+
end
|
338
|
+
|
323
339
|
Then /^completo el formulario para reservas CAC$/ do
|
324
340
|
step "Completo el formulario de pasajeros"
|
325
341
|
step "Completo los datos para reservas CAC"
|
@@ -13,11 +13,9 @@ Característica: checkout.fast_checkout
|
|
13
13
|
Cuando me logueo como usuario "bookingvuelos@despegar.com" y pass "despegar"
|
14
14
|
Cuando Verifico que ingrese al checkout
|
15
15
|
Entonces verifico que se haya logueado correctamente
|
16
|
-
Y Verifico el segundo tag de google en resultado de checkout
|
17
16
|
Y Verifico que se muestre el banner de cancelacion
|
18
17
|
Y Valido los valores del desglose del checkout
|
19
18
|
Y Verifico el pixel de Efrontier
|
20
|
-
Y Si el site no es "PR", Verifico el pixel de trackeame en checkout
|
21
19
|
Entonces verifico que se muestren las tarjetas guardadas
|
22
20
|
Entonces verifico que se muestren los usuarios guardadas
|
23
21
|
Y Verifico que se muestren la caja de clientes felices
|
@@ -29,7 +27,7 @@ Característica: checkout.fast_checkout
|
|
29
27
|
Entonces Verifico que dirija a la pagina de gracias
|
30
28
|
Entonces Si el checkout me pide mas datos de tarjeta, lleno los datos de tarjeta adicionales
|
31
29
|
Entonces Si se muestra el popup de no disponibilidad, elijo otro vuelo
|
32
|
-
Entonces Si debo completar de vuelta el formulario, completo
|
30
|
+
Entonces Si debo completar de vuelta el formulario, completo datos para fast checkout
|
33
31
|
Y Verifico que genere id cro
|
34
32
|
Y Si el site no es "PR", Verifico el pixel de trackeame en gracias
|
35
33
|
Y Verifico el pixel de Efrontier
|
@@ -67,21 +65,6 @@ Característica: checkout.fast_checkout
|
|
67
65
|
Ejemplos:
|
68
66
|
|pais|tipo|cabotage|
|
69
67
|
|BR |multipledestinations|nil|
|
70
|
-
@mx
|
71
|
-
@roundtrip
|
72
|
-
Ejemplos:
|
73
|
-
|pais|tipo|cabotage|
|
74
|
-
|MX |roundtrip|nil|
|
75
|
-
@mx
|
76
|
-
@oneway
|
77
|
-
Ejemplos:
|
78
|
-
|pais|tipo|cabotage|
|
79
|
-
|MX |oneway|nil|
|
80
|
-
@mx
|
81
|
-
@multipledestinations
|
82
|
-
Ejemplos:
|
83
|
-
|pais|tipo|cabotage|
|
84
|
-
|MX |multipledestinations|nil|
|
85
68
|
@us
|
86
69
|
@roundtrip
|
87
70
|
Ejemplos:
|
@@ -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.9.
|
17
|
+
gem.version = '2.9.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.82')
|
20
20
|
gem.add_dependency('watir-webdriver')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flights_gui_henry_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|