flights_gui_tests 2.2.5 → 2.2.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 +4 -4
 - data/features/step_definitions/checkout/verifications_steps.rb +2 -3
 - data/features/step_definitions/thanks/thanks_steps.rb +1 -1
 - data/features/support/classes/checkout/new_cluster.rb +3 -3
 - data/features/support/classes/thanks/cluster.rb +3 -4
 - data/features/support/env.rb +1 -1
 - data/features/support/version.rb +1 -1
 - data/flights_gui_tests.gemspec +1 -1
 - metadata +15 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8a99b2f5fd56dcc807651a864e71c0d61b5b948f
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 4d5d765942339eb84d184f20e7cef8acc3357803
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: acc48bd99df31fdeadec4861dcde0776d2727754e6b8d1a1e60ef3346e3fd72b46ab7f309deea31a4dd2fc8c3baf42cc68188ec38cdef75b057605df64359192
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 16ebc5ed153ee588fa78945112f055b4c0af21dc264665ea04b44d4b12bf4484a24e17f4695b2694cb92654f3031ebcb629ec2b22c8c10f2da0e10d6fbc2b8f6
         
     | 
| 
         @@ -84,9 +84,8 @@ Y(/^(?:verifico|valido) que los datos cargados sean mostrados correctamente al l 
     | 
|
| 
       84 
84 
     | 
    
         
             
              else
         
     | 
| 
       85 
85 
     | 
    
         
             
                begin
         
     | 
| 
       86 
86 
     | 
    
         
             
                  fechas=@itinerario_checkout.fechas
         
     | 
| 
       87 
     | 
    
         
            -
                  (doc/"div.ticket-right div.dates li.outbound-route span.date"). 
     | 
| 
       88 
     | 
    
         
            -
             
     | 
| 
       89 
     | 
    
         
            -
                  end
         
     | 
| 
      
 87 
     | 
    
         
            +
                  fechas.should include?(Date.parse_new_result((doc/"div.ticket-right div.dates li.outbound-route span.date").first.inner_text))
         
     | 
| 
      
 88 
     | 
    
         
            +
                  fechas.should include?(Date.parse_new_result((doc/"div.ticket-right div.dates li.outbound-route span.date").last.inner_text))
         
     | 
| 
       90 
89 
     | 
    
         
             
                rescue NoMethodError
         
     | 
| 
       91 
90 
     | 
    
         
             
                  puts "Fallo con las fechas: #{@itinerario_checkout.fechas_fix}"
         
     | 
| 
       92 
91 
     | 
    
         
             
                end  
         
     | 
| 
         @@ -35,7 +35,7 @@ Y(/^(?:verifico|valido) los valores del desglose en gracias contra los del check 
     | 
|
| 
       35 
35 
     | 
    
         
             
            	  		@itinerario_checkout.tarifas['total'].should equal(@itinerario_gracias.tarifas['total'])
         
     | 
| 
       36 
36 
     | 
    
         
             
            	  	end
         
     | 
| 
       37 
37 
     | 
    
         
             
            	end  	
         
     | 
| 
       38 
     | 
    
         
            -
            	@itinerario_gracias.ida.should equal(@itinerario_checkout.ida) 
     | 
| 
      
 38 
     | 
    
         
            +
            	@itinerario_gracias.ida.should equal(@itinerario_checkout.ida)
         
     | 
| 
       39 
39 
     | 
    
         
             
            end	
         
     | 
| 
       40 
40 
     | 
    
         | 
| 
       41 
41 
     | 
    
         
             
            Entonces(/^(?:verifico|valido) los datos del vuelo comprado$/) do
         
     | 
| 
         @@ -22,9 +22,9 @@ module NewCheckout 
     | 
|
| 
       22 
22 
     | 
    
         
             
            	  	end
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
            	  	def multipledestinations(html)
         
     | 
| 
       25 
     | 
    
         
            -
            	  		data = (html/"div.outbound-route div. 
     | 
| 
      
 25 
     | 
    
         
            +
            	  		data = (html/"div.outbound-route div.segments")
         
     | 
| 
       26 
26 
     | 
    
         
             
            	  		data_final  = data.delete(data.last) 
         
     | 
| 
       27 
     | 
    
         
            -
            	  		tramos      = cargar_tramos(data)
         
     | 
| 
      
 27 
     | 
    
         
            +
            	  		tramos      = cargar_tramos([data.first])
         
     | 
| 
       28 
28 
     | 
    
         
             
            			@ida        = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
         
     | 
| 
       29 
29 
     | 
    
         
             
            	  		tramos      = cargar_tramos([data_final])
         
     | 
| 
       30 
30 
     | 
    
         
             
            	  		@vuelta     = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
         
     | 
| 
         @@ -50,7 +50,7 @@ module NewCheckout 
     | 
|
| 
       50 
50 
     | 
    
         
             
            			vuelo_tmp['nombre']  = (vuelo/"li.location-name").inner_text.strip.no_accents
         
     | 
| 
       51 
51 
     | 
    
         
             
            			vuelo_tmp['fecha']   = (vuelo/"li.date").inner_text.strip.no_accents
         
     | 
| 
       52 
52 
     | 
    
         
             
            			@fechas << vuelo_tmp['fecha']
         
     | 
| 
       53 
     | 
    
         
            -
            			vuelo_tmp['horario'] = (vuelo/"li.time").inner_text.gsub(/hs/,'').strip
         
     | 
| 
      
 53 
     | 
    
         
            +
            			vuelo_tmp['horario'] = (vuelo/"li.time").inner_text.gsub(/hs|h/,'').strip
         
     | 
| 
       54 
54 
     | 
    
         
             
            			return vuelo_tmp
         
     | 
| 
       55 
55 
     | 
    
         
             
            		end	
         
     | 
| 
       56 
56 
     | 
    
         | 
| 
         @@ -22,8 +22,7 @@ module Thanks 
     | 
|
| 
       22 
22 
     | 
    
         
             
            	  	end
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
            	  	def multipledestinations(html)
         
     | 
| 
       25 
     | 
    
         
            -
            	  		 
     | 
| 
       26 
     | 
    
         
            -
            	  		@idas       = cargar_tramos(data.first)
         
     | 
| 
      
 25 
     | 
    
         
            +
            	  		@idas       = cargar_tramos((html/"ul.cluster"))
         
     | 
| 
       27 
26 
     | 
    
         
             
            			@ida        = @idas.first
         
     | 
| 
       28 
27 
     | 
    
         
             
            	  		@vueltas    = @idas
         
     | 
| 
       29 
28 
     | 
    
         
             
            	  		@vuelta     = @vueltas.last
         
     | 
| 
         @@ -44,8 +43,8 @@ module Thanks 
     | 
|
| 
       44 
43 
     | 
    
         
             
            									escala_to_i((segmento/"span.stops-text").inner_text.strip),					#escalas
         
     | 
| 
       45 
44 
     | 
    
         
             
            									(segmento/"span.departure a.airport").first.inner_text.strip.no_accents,   			#iata ciudad salida
         
     | 
| 
       46 
45 
     | 
    
         
             
            								    (segmento/"span.arrival a.airport").first.inner_text.strip.no_accents,    			#iata ciudad llegada
         
     | 
| 
       47 
     | 
    
         
            -
            									(segmento/"span.hour").first.inner_text.strip,					#horario salida
         
     | 
| 
       48 
     | 
    
         
            -
            									(segmento/"span.hour").last.inner_text.strip,					#horario llegada
         
     | 
| 
      
 46 
     | 
    
         
            +
            									(segmento/"span.hour").first.inner_text.gsub(/hs|h/,'').strip,					#horario salida
         
     | 
| 
      
 47 
     | 
    
         
            +
            									(segmento/"span.hour").last.inner_text.gsub(/hs|h/,'').strip,					#horario llegada
         
     | 
| 
       49 
48 
     | 
    
         
             
            									(segmento/"li.duration").inner_text.strip										#duracion
         
     | 
| 
       50 
49 
     | 
    
         
             
            								)
         
     | 
| 
       51 
50 
     | 
    
         
             
            		end
         
     | 
    
        data/features/support/env.rb
    CHANGED
    
    
    
        data/features/support/version.rb
    CHANGED
    
    
    
        data/flights_gui_tests.gemspec
    CHANGED
    
    | 
         @@ -30,7 +30,7 @@ Gem::Specification.new do |gem| 
     | 
|
| 
       30 
30 
     | 
    
         
             
                gem.add_dependency('mock_search', '>= 1.0.0')
         
     | 
| 
       31 
31 
     | 
    
         
             
                gem.add_dependency('mysql2')
         
     | 
| 
       32 
32 
     | 
    
         
             
                gem.add_dependency('dater')
         
     | 
| 
       33 
     | 
    
         
            -
                 
     | 
| 
      
 33 
     | 
    
         
            +
                gem.add_dependency('byebug')
         
     | 
| 
       34 
34 
     | 
    
         
             
                gem.add_dependency('auto_uy_utils')
         
     | 
| 
       35 
35 
     | 
    
         
             
                gem.add_dependency('roma_automation')
         
     | 
| 
       36 
36 
     | 
    
         | 
    
        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.2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.2.6
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - lgonzalez
         
     | 
| 
         @@ -178,6 +178,20 @@ dependencies: 
     | 
|
| 
       178 
178 
     | 
    
         
             
                - - ">="
         
     | 
| 
       179 
179 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       180 
180 
     | 
    
         
             
                    version: '0'
         
     | 
| 
      
 181 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 182 
     | 
    
         
            +
              name: byebug
         
     | 
| 
      
 183 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 184 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 185 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 186 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 187 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 188 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 189 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 190 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 191 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 192 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 193 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 194 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       181 
195 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       182 
196 
     | 
    
         
             
              name: auto_uy_utils
         
     | 
| 
       183 
197 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     |