flights_gui_tests 2.3.48 → 2.3.49

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: fae212a76aa292dd2e981a0860f573426bb0aa1f
4
- data.tar.gz: 7e42100dfa9939fd1c9650ddaf4288502b2da9ee
3
+ metadata.gz: 1f25aa4c0fedd2307ee41c4f1dfb1ee494747481
4
+ data.tar.gz: cb2ee56a960c85723f80f0acf1f5ce7e67105f40
5
5
  SHA512:
6
- metadata.gz: 25f8d94da93e0bfaab8079f83140f616434cdbadefb3732feab016e419fd5938fad997c12dc33745fe53254dec7682e9c32fe867fd9c0b8c5147b6d0f387f974
7
- data.tar.gz: 41d1a928eceaeb61453f439d956dd588995d731a706ae41c0dd175f8a5a101f3c1a0d1a1957a863604912598603e364bc351c5b302b0d6632ee72adfbcdd1e73
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
- ciudad_destino = ciudades.match(/(para|a|to) (.+) desde (.+)/)[2].strip
20
- @page.ciudad_elegida.downcase.should equal(ciudad_destino.downcase) unless @page.ciudad_elegida.match(/Guarullos|Panama|Santiago|Mexico/)
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
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.3.48"
2
+ VERSION = "2.3.49"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.48
4
+ version: 2.3.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez