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: 1ebd5676bd3ecf57b4507637545f6661907c354a
4
- data.tar.gz: 363a0e116a9ec54bf0e4114e56ca3232471cf18d
3
+ metadata.gz: e23800b7888f18d8a7eeb230f7ea316b630f2664
4
+ data.tar.gz: db15808548d90a0c06d7ca77793d7c208a9fbece
5
5
  SHA512:
6
- metadata.gz: fdaf2b16a6721cb397930619f436e3ab27f147224fc81244650bf2f038353a90c0ea51fb5c66879a0c29d7adef94dfef2fed0cbbf6659cf521aa8688b622b372
7
- data.tar.gz: 0dd61aed9cb240860ff8893369f80633a1ef1e056bd7c1695d5c714a6885f09a08c5053ad888f21cdc02e48722607094ef52cf1a200bd2c4dbccfa9091c1f593
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
- @url_parse = @page.url.match(/#{@page.manage_data.host()}\/(vuelos|passagens-aereas|flights)\/(\D{3})\/(\D{3})\/(vuelos|passagens-aereas)-(a|para)-(.+)-(desde|saindo-de)-(.+)/)
8
- @url_parse.should be_true
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
@@ -142,6 +142,7 @@ class AllPages
142
142
  when "US" then "en"
143
143
  when "IN" then "en"
144
144
  when "CN" then "en"
145
+ when "PT" then "pt"
145
146
  else "es"
146
147
  end
147
148
  end
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "1.6.5"
2
+ VERSION = "1.6.6"
3
3
  end
@@ -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
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: 1.6.5
4
+ version: 1.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez