flights_gui_tests 2.3.48 → 2.3.49
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: 1f25aa4c0fedd2307ee41c4f1dfb1ee494747481
|
4
|
+
data.tar.gz: cb2ee56a960c85723f80f0acf1f5ce7e67105f40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ab72a4d02c55a0ba15224980bc84228e86b333fa43d60c4eff2b99085afb8f75dfbd50b18d5e47401bcb3f440c7f6f1bc97aca29b33d6880cc2015b27ee0f38
|
7
|
+
data.tar.gz: a2cf5e4e16365df9cedc3490efc22503371c597bd76d0e28acbefce258f857995d42bb1b5b0fbf0d598164c0981204ed529730f555f098d26138dfdbcc929124
|
@@ -15,9 +15,13 @@ end
|
|
15
15
|
|
16
16
|
Y(/^(?:verifico|valido) que la ciudad destino sea la que se eligio$/) do
|
17
17
|
doc = Hpricot.parse(@page.html)
|
18
|
-
ciudades = (doc/"div.mainTitle/h1").inner_text.strip.no_accents
|
19
|
-
|
20
|
-
|
18
|
+
ciudades = (doc/"div.mainTitle/h1").inner_text.strip.no_accents.gsub(/\n/,' ')
|
19
|
+
if AllPages.site=="BR"
|
20
|
+
ciudad_destino = ciudades.match(/ (de|a|to) (.+) (para|desde|from) (.+)/)[4].strip
|
21
|
+
else
|
22
|
+
ciudad_destino = ciudades.match(/ (de|a|to) (.+) (para|desde|from) (.+)/)[2].strip
|
23
|
+
end
|
24
|
+
@page.ciudad_elegida.downcase.should equal(ciudad_destino.downcase) unless @page.ciudad_elegida.match(/Guarullos|Panama|Santiago|Mexico/)
|
21
25
|
end
|
22
26
|
|
23
27
|
Entonces(/^valido el sorting de landing$/) do
|
data/features/support/version.rb
CHANGED