flights_gui_tests 1.6.5 → 1.6.6
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: e23800b7888f18d8a7eeb230f7ea316b630f2664
|
4
|
+
data.tar.gz: db15808548d90a0c06d7ca77793d7c208a9fbece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b9fb36e2f049a3a7514d7cd89c6ddd452b1086bdd54a672086fc8432bdccb8b7decfb74258508693ed374596243617937dea447bc2123be0209d1f5e1634d44
|
7
|
+
data.tar.gz: 99676ccc029b50871c410bf91819928f717136a23a3851728a3ecc6638b75cd14bf982d0f74fbddf2759c8e4571501b8da8796f11dc29a9b3d5faf8a8d4c1a59
|
@@ -4,15 +4,19 @@ Cuando(/^elijo el tipo de vuelo "(.*)"$/) do |tipo|
|
|
4
4
|
end
|
5
5
|
|
6
6
|
Cuando(/^(?:verifico|valido) que la url sea la correcta$/) do
|
7
|
-
|
8
|
-
|
7
|
+
url = case AllPages.lang
|
8
|
+
when 'pt' then "#{@page.manage_data.host()}\/passagens-aereas\/#{@page.manage_data.city_from_1.code}\/#{@page.manage_data.city_to_1.code}\/passagens-aereas-para-(.+)-saindo-de-(.+)"
|
9
|
+
when 'en' then "#{@page.manage_data.host()}\/flights\/#{@page.manage_data.city_from_1.code}\/#{@page.manage_data.city_to_1.code}\/flights-to-(.+)-from-(.+)"
|
10
|
+
else "#{@page.manage_data.host()}\/vuelos\/#{@page.manage_data.city_from_1.code}\/#{@page.manage_data.city_to_1.code}\/vuelos-a-(.+)-desde-(.+)"
|
11
|
+
end
|
12
|
+
@page.url.downcase.should match(url.downcase)
|
9
13
|
end
|
10
14
|
|
11
15
|
Y(/^(?:verifico|valido) que la ciudad destino sea la que se eligio$/) do
|
12
16
|
doc = Hpricot.parse(@page.html)
|
13
17
|
ciudades = (doc/"div.mainTitle/h1").inner_text.strip.no_accents
|
14
18
|
ciudad_destino = ciudades.match(/ (para|a|to) ([^,]+)/)[2].strip
|
15
|
-
@page.ciudad_elegida.should equal(ciudad_destino) unless @page.ciudad_elegida.match(/Guarullos|Panama|Santiago|Mexico/)
|
19
|
+
@page.ciudad_elegida.downcase.should equal(ciudad_destino.downcase) unless @page.ciudad_elegida.match(/Guarullos|Panama|Santiago|Mexico/)
|
16
20
|
end
|
17
21
|
|
18
22
|
Entonces(/^valido el sorting de landing$/) do
|
data/features/support/version.rb
CHANGED
@@ -30,7 +30,6 @@ Característica: landing.negative
|
|
30
30
|
Y verifico que la url para sem funcione correctamente con un ciudad con resultados sin seoPath
|
31
31
|
Y verifico que la url para sem funcione correctamente con un ciudad sin resultados sin seoPath
|
32
32
|
Y verifico que la url de landing para el destino "lrl" no rompa
|
33
|
-
Y verifico que redirija a la home de vuelos si no hay oficinas en la ciudad de origen
|
34
33
|
|
35
34
|
@pt
|
36
35
|
@roundtrip
|