flights_gui_henry_tests 2.9.0 → 2.9.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f26ce7052e995dedbd612e0ee2744e0f61fc223
|
|
4
|
+
data.tar.gz: 40905b2e2938d7c1cfdc67d2128589618177fc15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22cf7cc50ca05fbf7a031488cfe63209c86645d9ceb60277bf7678fdde3c17967cb671febe82fe483ac8343ead9a4b62a627b721f6d2ccf055a96c3f2b26e0ad
|
|
7
|
+
data.tar.gz: 97793cf281add4e4bed36d7809d500fa894a9c025c72505ee3945774727b2432a46039dce4655e4199a933ee9ff581445218da142c868a12b5663b259aa43ea6
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#encoding: UTF-8
|
|
2
2
|
When /^Espero que termine de cargar la pagina de desambiguacion$/ do
|
|
3
|
-
Watir::Wait.until(timeout = 60){BROWSER.div(:
|
|
3
|
+
Watir::Wait.until(timeout = 60){BROWSER.div(:id,'disambiguation-message').present?}
|
|
4
4
|
end
|
|
5
5
|
|
|
6
6
|
Then /^Verifico que ingrese a la pagina de desambiguacion$/ do
|
|
7
|
-
BROWSER.div(:
|
|
8
|
-
BROWSER.div(:
|
|
7
|
+
BROWSER.div(:id,"disambiguation-message").should visible
|
|
8
|
+
BROWSER.div(:id,"disambiguation-message").text.should match("Por favor seleccione uno de los siguientes aeropuertos cercanos|Veja abaixo os aeroportos mais|Please choose one of the following nearby airports")
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
When /^Seteo las edades de los menores$/ do
|
|
@@ -56,7 +56,6 @@ And /^Verifico si es un destino HOT$/ do
|
|
|
56
56
|
mensaje_precio = "El destino es muy solicitado en estas fechas y los precios estan subiendo. \¡Te recomendamos reservar lo antes posible\!"
|
|
57
57
|
if value > 33 and color
|
|
58
58
|
puts "((#{seats_remaining.length} * 100)/#{json['result']['data']['items'].length}).to_i"
|
|
59
|
-
puts seats_remaining
|
|
60
59
|
puts color
|
|
61
60
|
if BROWSER.div(:id,"banner-PRICE-#{color}").present?
|
|
62
61
|
(value < 67).should be_true
|
|
@@ -71,7 +70,6 @@ And /^Verifico si es un destino HOT$/ do
|
|
|
71
70
|
end
|
|
72
71
|
else
|
|
73
72
|
puts "((#{seats_remaining.length} * 100)/#{json['result']['data']['items'].length}).to_i"
|
|
74
|
-
puts seats_remaining
|
|
75
73
|
puts color
|
|
76
74
|
BROWSER.div(:id,"banner-PRICE-HIGH").should_not visible("mensaje de suba de precio")
|
|
77
75
|
BROWSER.div(:id,"banner-PRICE-LOW").should_not visible("mensaje de suba de precio")
|
|
@@ -77,13 +77,12 @@ end
|
|
|
77
77
|
|
|
78
78
|
Then /^Verifico que el itinerario deseado quede en la lista de deseos$/ do
|
|
79
79
|
sleep(1)
|
|
80
|
-
byebug
|
|
81
80
|
BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-header-favorites-popup').ul(:class,'nibbler-common-last-searches-body').should visible("lista de deseos")
|
|
82
81
|
end
|
|
83
82
|
|
|
84
83
|
Then /^Elijo el itinerario de la lista de deseos$/ do
|
|
85
84
|
@url = BROWSER.url
|
|
86
|
-
BROWSER.
|
|
85
|
+
BROWSER.execute_script("javascript:void($('.nibbler-common-header-favorites-popup .nibbler-common-last-searches-body-content-title').click())")
|
|
87
86
|
end
|
|
88
87
|
|
|
89
88
|
Then /^Verifico que dirija correctamente a la pagina de resultados$/ do
|
|
@@ -102,27 +101,28 @@ end
|
|
|
102
101
|
|
|
103
102
|
Then /^Elimino el itinerario de la lista de deseos$/ do
|
|
104
103
|
sleep(1)
|
|
105
|
-
BROWSER.execute_script("javascript:void($('.
|
|
104
|
+
BROWSER.execute_script("javascript:void($('.nibbler-common-last-searches-footer-clear-all').click());")
|
|
106
105
|
sleep(2)
|
|
107
|
-
BROWSER.execute_script("javascript:void($('.
|
|
106
|
+
BROWSER.execute_script("javascript:void($('.nibbler-common-last-searches-footer-clear-all').click());")
|
|
108
107
|
sleep(2)
|
|
109
108
|
end
|
|
110
109
|
|
|
111
110
|
Then /^Limpio la lista de deseos$/ do
|
|
112
|
-
if BROWSER.
|
|
111
|
+
if BROWSER.link(:class,'nibbler-common-last-searches-footer-clear-all').present?
|
|
113
112
|
sleep(1)
|
|
114
|
-
BROWSER.execute_script("javascript:void($('.
|
|
113
|
+
BROWSER.execute_script("javascript:void($('.nibbler-common-last-searches-footer-clear-all').click());")
|
|
115
114
|
sleep(2)
|
|
116
115
|
end
|
|
117
116
|
end
|
|
118
117
|
|
|
119
118
|
Then /^Me deslogueo como usuario$/ do
|
|
120
|
-
BROWSER.div(:
|
|
121
|
-
|
|
119
|
+
BROWSER.div(:class,'nibbler-common-header-user').li(:class,'nibbler-common-header-user-item').click
|
|
120
|
+
Watir::Wait.until(timeout=20){BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-login-overlay').present?}
|
|
121
|
+
BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-login-overlay').link(:class,'nibbler-common-close-session').click if BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-login-overlay').link(:class,'nibbler-common-close-session').present?
|
|
122
|
+
BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-login-overlay').span(:class,'nibbler-common-overlay-close').click
|
|
122
123
|
end
|
|
123
124
|
|
|
124
125
|
Then /^Verifico que no se muestre en el header el usuario logueado$/ do
|
|
125
|
-
BROWSER.div(:
|
|
126
|
-
BROWSER.div(:
|
|
127
|
-
BROWSER.div(:id,'nibbler-common-header').li(:class,'nibbler-common-header-favorites nibbler-user nibbler-common-header-favorites-has').should_not visible("corazon rojo en el header")
|
|
126
|
+
BROWSER.div(:class,'nibbler-common-header-user').div(:class,'fb-description').should_not visible("usuario logueado")
|
|
127
|
+
BROWSER.div(:class,'nibbler-common-header-user').li(:class,'nibbler-common-header-favorites nibbler-user nibbler-common-header-favorites-has').should_not visible("corazon rojo en el header")
|
|
128
128
|
end
|
|
@@ -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.1' #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')
|