flights_gui_tests 0.7.9 → 0.8.0
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/landing/filters_steps.rb +1 -0
- data/features/step_definitions/landing/negative_steps.rb +19 -15
- data/features/step_definitions/landing/new_landing_steps.rb +4 -4
- data/features/tests/landing/new_search.feature +0 -10
- 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: e29d10b21c1d5b590ce0dfa442765e5a5fb74921
|
4
|
+
data.tar.gz: 53316920cd614f88f423baeb2a6c9fa978d660b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7d6d129e09feb4cd9309b60e246c113f8429f085f9ca90de68af768ea96e7dfdf7eb141d9eb9a9e5db7655826e26ba01200d0d0d23917aea110ccc4b1b439e4
|
7
|
+
data.tar.gz: 6d2b337b7346312c2ebbbb69d8e5cef4bc9ee2cb6fd5abb62a14d635bf6c9b4cf329ae26cbcbf130b5e87b953d7ba4e295e2b3d5d8ac0d0f820777fb37ebfb38
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
Entonces(/^(?:verifico|valido) que se muestren los filtros de estadia$/) do
|
3
|
+
@page.execute_script("javascript:void($('.ux-common-filter-toggle').click())") unless @page.browser.div(:class,'ux-common-filter-body').present?
|
3
4
|
@page.filtro_salidas_element.should visible("filtros de salidas")
|
4
5
|
end
|
@@ -4,7 +4,11 @@ Entonces(/^(?:verifico|valido) que el mensaje de error en el cluster sea correct
|
|
4
4
|
clusters=@page.datos_de_itinerarios
|
5
5
|
clusters.each_with_index do |cluster,i|
|
6
6
|
if (cluster.idas.length>1 or (cluster.vueltas and cluster.vueltas.length>1))
|
7
|
-
@page.browser.div(:class=>"cluster",:index=>i).
|
7
|
+
if @page.browser.div(:class=>"cluster",:index=>i).links(:class,/buy/)[0].present?
|
8
|
+
@page.browser.div(:class=>"cluster",:index=>i).links(:class,/buy/)[0].click
|
9
|
+
else
|
10
|
+
@page.browser.div(:class=>"cluster",:index=>i).links(:class,/buy/)[1].click
|
11
|
+
end
|
8
12
|
@page.browser.div(:class=>"cluster",:index=>i).li(:class=>'item error-message',:index=>((cluster.idas.length>1) ? 0 : 1)).text.no_accents.should match("Choose a (return|departure) flight|Por favor, seleccione un vuelo de|Por favor, selecione um voo de")
|
9
13
|
end
|
10
14
|
end
|
@@ -13,38 +17,38 @@ end
|
|
13
17
|
Entonces(/^(?:verifico|valido) que ciudades iguales de error$/) do
|
14
18
|
@path_landing = @page.url.match(/(.+)(vuelos-a|passagens\-aereas\-para)(.+)/)
|
15
19
|
@page.ir(@path_landing[1].gsub(/\/...\/...\//,"/bue/bue/"))
|
16
|
-
@page.
|
17
|
-
|
20
|
+
@page.simbolo_error_element.when_visible(timeout=10)
|
21
|
+
@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
22
|
end
|
19
23
|
|
20
24
|
Entonces(/^(?:verifico|valido) que si paso tres ciudades en la url de error$/) do
|
21
25
|
@page.ir(@path_landing[1] + "#{@page.manage_data.city_to_1.code.downcase}/" + @path_landing[2] + @path_landing[3])
|
22
|
-
@page.
|
23
|
-
|
26
|
+
@page.simbolo_error_element.when_visible(timeout=10)
|
27
|
+
@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
28
|
end
|
25
29
|
|
26
30
|
Entonces(/^(?:verifico|valido) que fechas iguales no de error$/) do
|
27
|
-
@page.ir(@path_landing[1] + "1/
|
28
|
-
@page.
|
29
|
-
|
31
|
+
@page.ir(@path_landing[1] + "1/2015-05-05/2015-05-05/" + @path_landing[2] + @path_landing[3])
|
32
|
+
@page.simbolo_error_element.when_visible(timeout=10)
|
33
|
+
@page.mensaje_element.text.no_accents.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
34
|
end
|
31
35
|
|
32
36
|
Entonces(/^(?:verifico|valido) que la ciudad "(.*?)" de error$/) do |arg1|
|
33
37
|
@page.ir(@path_landing[1].gsub(/\/...\/...\//,"/bue/xxx/"))
|
34
|
-
@page.
|
35
|
-
|
38
|
+
@page.simbolo_error_element.when_visible(timeout=10)
|
39
|
+
@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
40
|
end
|
37
41
|
|
38
42
|
Entonces(/^(?:verifico|valido) que paginado negativo de error$/) do
|
39
43
|
@page.ir(@path_landing[1] + "-1/" + @path_landing[2] + @path_landing[3])
|
40
|
-
@page.
|
41
|
-
|
44
|
+
@page.simbolo_error_element.when_visible(timeout=10)
|
45
|
+
@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
46
|
end
|
43
47
|
|
44
48
|
Entonces(/^(?:verifico|valido) que si la fecha de ida ingresada es posterior a la fecha de vuelta de error$/) do
|
45
|
-
@page.ir(@path_landing[1] + "1/
|
46
|
-
@page.
|
47
|
-
|
49
|
+
@page.ir(@path_landing[1] + "1/2015-05-05/2015-05-04/" + @path_landing[2] + @path_landing[3])
|
50
|
+
@page.simbolo_error_element.when_visible(timeout=10)
|
51
|
+
@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
52
|
end
|
49
53
|
|
50
54
|
Entonces(/^(?:verifico|valido) que si la url no tiene el seoPath, se redirige a la pagina que si lo tiene$/) do
|
@@ -27,8 +27,8 @@ Cuando(/^elijo la cantidad de dias de la busqueda$/) do
|
|
27
27
|
end
|
28
28
|
|
29
29
|
Y(/^(?:verifico|valido) los precios mostrados$/) do
|
30
|
-
|
31
|
-
|
30
|
+
#@page.precio_banner_element.text.gsub(/ /,'').should equal(@page.precio_fare_chart_element.text.gsub(/ /,''))
|
31
|
+
#@page.precio_banner_element.text.gsub(/ /,'').should equal(@page.precio_mensaje_fare_chart_element.text.gsub(/ /,''))
|
32
32
|
end
|
33
33
|
|
34
34
|
Y(/^(?:verifico|valido) que traiga opciones de busquedas$/) do
|
@@ -67,9 +67,9 @@ end
|
|
67
67
|
|
68
68
|
Y(/^(?:verifico|valido) el grafico de fare chart$/) do
|
69
69
|
if @page.tipo_de_busqueda=='oneway'
|
70
|
-
|
70
|
+
#@page.mensaje_fare_chart_element.text.no_accents.gsub(/\n/,' ').should match("de vuelos Solo ida desde (.+), saliendo en (.+)")
|
71
71
|
else
|
72
|
-
|
72
|
+
#@page.mensaje_fare_chart_element.text.no_accents.gsub(/\n/,' ').should match("de vuelos Ida y vuelta desde (.+), #{@cantidad_dias} dias saliendo en (.+)")
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
@@ -27,16 +27,6 @@ Característica: landing.new_search
|
|
27
27
|
Y verifico que traiga resultados
|
28
28
|
Y verifico que la pagina de resultados sea la correcta
|
29
29
|
|
30
|
-
@ar
|
31
|
-
@roundtrip
|
32
|
-
Ejemplos:
|
33
|
-
|pais|tipo|destino|
|
34
|
-
|AR |roundtrip|NYC|
|
35
|
-
@ar
|
36
|
-
@oneway
|
37
|
-
Ejemplos:
|
38
|
-
|pais|tipo|destino|
|
39
|
-
|AR |oneway|COR|
|
40
30
|
@co
|
41
31
|
@roundtrip
|
42
32
|
Ejemplos:
|
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.
|
17
|
+
gem.version = '0.8.0' # 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.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|