flights_gui_tests 0.9.2 → 0.9.3
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: 85ad9faa56ca9f15fa179668ddef9ea0b2b39fdd
|
4
|
+
data.tar.gz: c60cd8740f3ba3c06d56874947437b54caf322b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ddc9d1c5a9aca715b3baed32ff73b85d42ce9d07f8825552a10daa048a6194abc6636240643b3003f0b001e8341518dec51ac3d678a2189487be9614bffbd2d
|
7
|
+
data.tar.gz: 656860f39c46538ba3e158d0be8d77ccfeae6ec91d670f6c853a552ebfcd0770029f42d14924cf34860d20e9c1f0fd3ad56b2190a3e4812b2112fec37b9c1465
|
@@ -1,7 +1,12 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
Dado(/^como un usuario de '(.*)'$/) do |pais|
|
3
3
|
Helpers.set_date_language(pais)
|
4
|
-
|
4
|
+
begin
|
5
|
+
@page = Results::SearchPage.new($browser)
|
6
|
+
rescue RuntimeError
|
7
|
+
$browser = Browser.iniciar($HENRY_PARAMS['browser'])
|
8
|
+
@page = Results::SearchPage.new($browser)
|
9
|
+
end
|
5
10
|
@page.set_site(pais)
|
6
11
|
end
|
7
12
|
|
@@ -30,7 +35,7 @@ Cuando(/^(?:realizo|genero|ingreso) la busqueda$/) do
|
|
30
35
|
begin
|
31
36
|
@page.ir(@page.url_busqueda)
|
32
37
|
rescue Net::ReadTimeout
|
33
|
-
|
38
|
+
pending("Tiempo expirado al cargar el navegador, reiniciar corrida.")
|
34
39
|
end
|
35
40
|
@page.set_cookies
|
36
41
|
puts "URL: #{@page.url_busqueda}"
|
@@ -1,5 +1,9 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
Cuando(/^(?:verifico|valido) las reviews de aerolineas$/) do
|
3
|
+
if @page.aerolineas_en_matriz.empty?
|
4
|
+
@page.refresh
|
5
|
+
step "espero que termine de cargar la pagina de resultados"
|
6
|
+
end
|
3
7
|
@page.aerolineas_en_matriz.should_not is_empty?
|
4
8
|
@page.aerolineas_en_matriz.each_with_index do |aerolinea,index|
|
5
9
|
@page.siguiente_aerolinea_element.click until aerolinea.present?
|
@@ -56,10 +56,6 @@ module Results
|
|
56
56
|
def reglas_de_vuelo()
|
57
57
|
popup = popup_detail_element
|
58
58
|
popup.div(:class,'top-box').a(:class,'show-rules').should_not visible
|
59
|
-
# popup.div(:class,'detail').div(:class,'detail-footer').div(:class,'rules').should_not visible
|
60
|
-
# popup.div(:class,'top-box').a(:class,'show-rules').click
|
61
|
-
# popup.div(:class,'detail').div(:class,'detail-footer').div(:class,'rules').should visible
|
62
|
-
# popup.div(:class,'detail').div(:class,'detail-footer').div(:class,'rules').div(:class,'text').text.strip.no_accents.should match(/The ticket you are booking is subject to the airline rules and restrictions|El boleto que usted esta comprando est.{1,2} sujeto a reglas y restricciones impuestas por la aerol.{1,2}nea transportadora|No incluye impuestos, no reembolsable, aplica penalidad|Estos tickets No permiten cambios NI devoluciones parciales|O bilhete que voc.{1,2} est.{1,2} para adquirir est.{1,2} sujeito a regras e restri.{1,2}.{1,2}es impostas pela companhia a.{1,2}rea transportadora/)
|
63
59
|
end
|
64
60
|
|
65
61
|
def rutas_ida(itinerario)
|
@@ -90,10 +86,6 @@ module Results
|
|
90
86
|
def new_reglas_de_vuelo(i)
|
91
87
|
popup = new_popup_detail_elements[i]
|
92
88
|
popup.div(:class,'top-box').a(:class,'show-rules show-cluster-rules').should_not visible
|
93
|
-
# popup.div(:class,'rules').should_not visible
|
94
|
-
# popup.div(:class,'top-box').a(:class,'show-rules show-cluster-rules').click
|
95
|
-
# popup.div(:class,'rules').should visible
|
96
|
-
# popup.div(:class,'rules').div(:class,'text').text.strip.no_accents.should match(/The ticket you are booking is subject to the airline rules and restrictions|El boleto que usted esta comprando est.{1,2} sujeto a reglas y restricciones impuestas por la aerol.{1,2}nea transportadora|No incluye impuestos, no reembolsable, aplica penalidad|Estos tickets No permiten cambios NI devoluciones parciales|O bilhete que voc.{1,2} est.{1,2} para adquirir est.{1,2} sujeito a regras e restri.{1,2}.{1,2}es impostas pela companhia a.{1,2}rea transportadora/)
|
97
89
|
end
|
98
90
|
|
99
91
|
def new_recorrer_segmentos(route,cluster,i)
|
data/flights_gui_tests.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
|
15
15
|
gem.require_paths = ["lib"] # Usualmente es solo lib -> ["lib"]
|
16
16
|
|
17
|
-
gem.version = '0.9.
|
17
|
+
gem.version = '0.9.3' # La version se debe incrementar cada vez que se desea publicar una nueva version del test.
|
18
18
|
|
19
19
|
gem.add_dependency('henry-container', '>= 0.1.39')
|
20
20
|
gem.add_dependency('page-object')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flights_gui_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|