flights_gui_tests 0.7.6 → 0.7.7
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: 90d70bf571e0bbb453e65d4856fe0b763b63561c
|
|
4
|
+
data.tar.gz: 7c9cfda73fa163624d20320fe28f4559ec5874c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7af803dfc10d4d281c4fc48d7d1317b549673d9e3dc2722f812a977aaaa77e622e86e72f041d262078ceb7e2dc2a48804cfc93e84e74fdb9e9cd9fdb9e7b5be
|
|
7
|
+
data.tar.gz: aa090bda052c3f38e755b744b676b5a37a385c436180f7b6ab005710a3d4d7e2d39879ad5fcabf497cfef98dd37f24ccc27bdccb56cddd82965466d95275578e
|
|
@@ -13,38 +13,38 @@ end
|
|
|
13
13
|
Entonces(/^(?:verifico|valido) que ciudades iguales de error$/) do
|
|
14
14
|
@path_landing = @page.url.match(/(.+)(vuelos-a|passagens\-aereas\-para)(.+)/)
|
|
15
15
|
@page.ir(@path_landing[1].gsub(/\/...\/...\//,"/bue/bue/"))
|
|
16
|
-
@page.
|
|
17
|
-
|
|
16
|
+
@page.no_existe_pagina_element.when_visible(timeout=10)
|
|
17
|
+
#@page.mensaje_element.text.should match("The destination city is the same as the departure city|La ciudad de destino es la misma que la ciudad de origen|A cidade de destino .{1,2} a mesma que a cidade de origem")
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
Entonces(/^(?:verifico|valido) que si paso tres ciudades en la url de error$/) do
|
|
21
21
|
@page.ir(@path_landing[1] + "#{@page.manage_data.city_to_1.code.downcase}/" + @path_landing[2] + @path_landing[3])
|
|
22
|
-
@page.
|
|
23
|
-
|
|
22
|
+
@page.no_existe_pagina_element.when_visible(timeout=10)
|
|
23
|
+
#@page.mensaje_element.text.no_accents.should match("La pagina solicitada no es valida|A pagina que voce solicitou nao e valido|The page you requested is not valid")
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
Entonces(/^(?:verifico|valido) que fechas iguales no de error$/) do
|
|
27
27
|
@page.ir(@path_landing[1] + "1/2014-12-05/2014-12-05/" + @path_landing[2] + @path_landing[3])
|
|
28
|
-
@page.
|
|
29
|
-
|
|
28
|
+
@page.no_existe_pagina_element.when_visible(timeout=10)
|
|
29
|
+
#@page.mensaje_element.text.should match("No flights were found for your search|No encontramos vuelos para su b.{1,2}squeda|N.{1,2}o foi possivel encontrar assentos disponiveis nos v.{1,2}os buscados")
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
Entonces(/^(?:verifico|valido) que la ciudad "(.*?)" de error$/) do |arg1|
|
|
33
33
|
@page.ir(@path_landing[1].gsub(/\/...\/...\//,"/bue/xxx/"))
|
|
34
|
-
@page.
|
|
35
|
-
|
|
34
|
+
@page.no_existe_pagina_element.when_visible(timeout=10)
|
|
35
|
+
#@page.mensaje_element.text.should match("We couldnt understand the city you want to fly|No hemos podido interpretar la ciudad a la que quiere volar|N.{1,2}o encontramos a cidade solicitada")
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
Entonces(/^(?:verifico|valido) que paginado negativo de error$/) do
|
|
39
39
|
@page.ir(@path_landing[1] + "-1/" + @path_landing[2] + @path_landing[3])
|
|
40
|
-
@page.
|
|
41
|
-
|
|
40
|
+
@page.no_existe_pagina_element.when_visible(timeout=10)
|
|
41
|
+
#@page.mensaje_element.text.should match("The page you requested is not valid|La pagina solicitada no es valida|A p.{1,2}gina que voc.{1,2} solicitou n.{1,2}o .{1,2} v.{1,2}lido")
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
Entonces(/^(?:verifico|valido) que si la fecha de ida ingresada es posterior a la fecha de vuelta de error$/) do
|
|
45
45
|
@page.ir(@path_landing[1] + "1/2014-12-05/2014-12-04/" + @path_landing[2] + @path_landing[3])
|
|
46
|
-
@page.
|
|
47
|
-
|
|
46
|
+
@page.no_existe_pagina_element.when_visible(timeout=10)
|
|
47
|
+
#@page.mensaje_element.text.should match("The departure date entered is later than the return date|La fecha de ida ingresada es posterior a la fecha de vuelta|A data de partida digitada .{1,2} posterior a data de retorno")
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
Entonces(/^(?:verifico|valido) que si la url no tiene el seoPath, se redirige a la pagina que si lo tiene$/) do
|
|
@@ -32,6 +32,7 @@ module Landing
|
|
|
32
32
|
span(:mostrar_mas_itinerarios,:class=>"showMoreItineraries")
|
|
33
33
|
span(:dolares,:class=>"price-currency USD ")
|
|
34
34
|
span(:titulo_banner,:class=>"banner-title-text-title")
|
|
35
|
+
div(:no_existe_pagina,:class=>"ux-wrapper")
|
|
35
36
|
|
|
36
37
|
|
|
37
38
|
radio_button(:vuelo_oneway,:id=>"oneway")
|
|
@@ -73,7 +74,11 @@ module Landing
|
|
|
73
74
|
def elegir_itinerario(index)
|
|
74
75
|
opciones_ida_elements[index].click unless tipo_de_busqueda=="multipledestinations"
|
|
75
76
|
opciones_vuelta_elements[index].click if tipo_de_busqueda=="roundtrip"
|
|
76
|
-
|
|
77
|
+
if itinerarios_elements[index].links(:class,/buy/)[0].present?
|
|
78
|
+
itinerarios_elements[index].links(:class,/buy/)[0].click
|
|
79
|
+
else
|
|
80
|
+
itinerarios_elements[index].links(:class,/buy/)[1].click
|
|
81
|
+
end
|
|
77
82
|
sleep(0.5)
|
|
78
83
|
adultos_element.select(2)
|
|
79
84
|
menores_element.select(1)
|
|
@@ -83,7 +88,7 @@ module Landing
|
|
|
83
88
|
end
|
|
84
89
|
|
|
85
90
|
def elegir_tipo_vuelo(tipo)
|
|
86
|
-
|
|
91
|
+
@browser.radio(:id,tipo).click
|
|
87
92
|
end
|
|
88
93
|
|
|
89
94
|
def ciudad_elegida
|
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.7.
|
|
17
|
+
gem.version = '0.7.7' # 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')
|