flights_gui_tests 0.9.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/step_definitions/checkout/upselling_steps.rb +1 -1
- data/features/step_definitions/checkout/verifications_steps.rb +5 -1
- data/features/support/pages/results/search_page.rb +1 -1
- data/features/tests/checkout/cac.feature +0 -1
- data/features/tests/checkout/providers.feature +12 -11
- data/flights_gui_tests.gemspec +1 -1
- data/henry-context.yml +15 -15
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6154a25565e9b2e667c36b66aa5e33443e9f4363
|
4
|
+
data.tar.gz: 2de8b737502e0324a9bbe86d943fac156eaecbb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 244a98d29eef98437a17e50582621a2a942d5acb16638b9f7af656079592a4b6fbb0bbce0bb60acabc46ea0406c2cac204e42086a6ed8ed8dcbc672c223d47ef
|
7
|
+
data.tar.gz: 93ef43bdf04f0d44e796c9f37772835ebe7f74176c6b0d7bc60b1bf4f86a87be722e13f2fad5189441026fb447cf96fa1609b774eabbaaaf5489db4edd5db7ef
|
@@ -39,7 +39,7 @@ end
|
|
39
39
|
Entonces(/^(?:verifico|valido) que se muestre correctamente el popup de la cobertura completa para destino "(.*?)"$/) do |destino|
|
40
40
|
popup = @page.popup_cobertura_element
|
41
41
|
popup.div(:class,'coverage').should visible("Contenido del popup")
|
42
|
-
popup.text.should match_sensitive("ASSIST-CARD")
|
42
|
+
popup.text.should match_sensitive("ASSIST-CARD|ASSIST CARD")
|
43
43
|
popup.div(:class,'coverage').span(:class,'upselling-coverage-cell upselling-coverage-code').should visible("Contenido del popup Codigos")
|
44
44
|
popup.div(:class,'coverage').span(:class,'upselling-coverage-cell upselling-coverage-title').should visible("Contenido del popup Descripcion")
|
45
45
|
popup.div(:class,'coverage').span(:class,'upselling-coverage-cell upselling-coverage-value').should visible("Contenido del popup Values")
|
@@ -7,7 +7,11 @@ Entonces(/^(?:verifico|valido) los valores del desglose del checkout$/) do
|
|
7
7
|
end
|
8
8
|
@itinerario_resultados.tarifas.each_pair do |key,value|
|
9
9
|
if @itinerario_checkout.tarifas[key] and !value.zero? and value.currency == @itinerario_checkout.tarifas[key].currency
|
10
|
-
|
10
|
+
if AllPages.site=="BR"
|
11
|
+
value.value.should be_within(14).of(@itinerario_checkout.tarifas[key].value)
|
12
|
+
else
|
13
|
+
value.value.should be_within(4).of(@itinerario_checkout.tarifas[key].value)
|
14
|
+
end
|
11
15
|
end
|
12
16
|
end
|
13
17
|
end
|
@@ -126,7 +126,7 @@ module Results
|
|
126
126
|
|
127
127
|
def elegir_itinerario(index)
|
128
128
|
cerrar_popup_alerta_element.click if cerrar_popup_alerta_element.present?
|
129
|
-
sleep(5) if cerrar_popup_cantidad_visitantes_element.present?
|
129
|
+
#sleep(5) if cerrar_popup_cantidad_visitantes_element.present?
|
130
130
|
itinerarios_elements[index].div(:class,'sub-cluster outbound').radios[0].click unless tipo_de_busqueda=="multipledestinations"
|
131
131
|
itinerarios_elements[index].div(:class,'sub-cluster inbound').radios[0].click if tipo_de_busqueda=="roundtrip"
|
132
132
|
if itinerarios_elements[index].links(:class,/buy/)[0].present?
|
@@ -56,7 +56,6 @@ Característica: checkout.cac
|
|
56
56
|
Cuando espero que termine de cargar la pagina de checkout
|
57
57
|
Entonces verifico que ingrese al checkout
|
58
58
|
Y verifico que la pagina no rompa
|
59
|
-
Entonces seteo el checkout a ingresar
|
60
59
|
Y verifico que no se muestre la opcion de reserva CAC en BR
|
61
60
|
|
62
61
|
@br
|
@@ -7,6 +7,7 @@ Característica: checkout.providers
|
|
7
7
|
Esquema del escenario: Se realiza un book para ciertos proveedores especificos.
|
8
8
|
Dado como un usuario de '<pais>'
|
9
9
|
* ingreso una busqueda '<tipo>' de '<origen>' a '<destino>' de tipo '<cabotage>'
|
10
|
+
Cuando realizo la busqueda
|
10
11
|
Entonces verifico que la pagina no rompa
|
11
12
|
Cuando espero que termine de cargar la pagina de resultados
|
12
13
|
Entonces verifico que traiga resultados
|
@@ -54,14 +55,14 @@ Característica: checkout.providers
|
|
54
55
|
|pais|tipo|cabotage|proovedor|origen|destino|fecha_ida|fecha_vuelta|
|
55
56
|
|MX|roundtrip|true|AIJ|MEX|MTY|2014-02-28|2014-03-17|
|
56
57
|
|MX|oneway|true|AIJ|MEX|GDL|2014-03-28|2014-04-17|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
58
|
+
@gds
|
59
|
+
Ejemplos:
|
60
|
+
|pais|tipo|cabotage|proovedor|origen|destino|fecha_ida|fecha_vuelta|
|
61
|
+
|MX|roundtrip|true|GDS|MEX|MTY|2014-02-28|2014-03-17|
|
62
|
+
|MX|oneway|true|GDS|MEX|GDL|2014-03-28|2014-04-17|
|
63
|
+
|BR|roundtrip|true|GDS|RIO|SAO|2014-02-28|2014-03-17|
|
64
|
+
|BR|oneway|nil|GDS|SAO|BUE|2014-03-28|2014-04-17|
|
65
|
+
|AR|roundtrip|true|GDS|BUE|COR|2014-02-28|2014-03-17|
|
66
|
+
|AR|oneway|nil|GDS|SAO|BUE|2014-03-28|2014-04-17|
|
67
|
+
|US|roundtrip|true|GDS|MIA|NYC|2014-02-28|2014-03-17|
|
68
|
+
|US|oneway|nil|GDS|MIA|BUE|2014-03-28|2014-04-17|
|
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.
|
17
|
+
gem.version = '1.0.0' # 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')
|
data/henry-context.yml
CHANGED
@@ -3000,21 +3000,6 @@ tasks:
|
|
3000
3000
|
recipients:
|
3001
3001
|
- estebanldh@gmail.com
|
3002
3002
|
- nsimean@despegar.com
|
3003
|
-
- name: results.filters.mx
|
3004
|
-
class_name: Henry::Task::CucumberTask
|
3005
|
-
options:
|
3006
|
-
tags:
|
3007
|
-
- results
|
3008
|
-
- filters
|
3009
|
-
- mx
|
3010
|
-
expand: true
|
3011
|
-
no-source: true
|
3012
|
-
reports:
|
3013
|
-
- format: html
|
3014
|
-
name: ${DATE}_${TASK_NAME}.html
|
3015
|
-
recipients:
|
3016
|
-
- estebanldh@gmail.com
|
3017
|
-
- nsimean@despegar.com
|
3018
3003
|
- name: results.filters.co
|
3019
3004
|
class_name: Henry::Task::CucumberTask
|
3020
3005
|
options:
|
@@ -12281,6 +12266,21 @@ tasks:
|
|
12281
12266
|
recipients:
|
12282
12267
|
- estebanldh@gmail.com
|
12283
12268
|
- nsimean@despegar.com
|
12269
|
+
- name: checkout.providers.gds
|
12270
|
+
class_name: Henry::Task::CucumberTask
|
12271
|
+
options:
|
12272
|
+
tags:
|
12273
|
+
- checkout
|
12274
|
+
- providers
|
12275
|
+
- gds
|
12276
|
+
expand: true
|
12277
|
+
no-source: true
|
12278
|
+
reports:
|
12279
|
+
- format: html
|
12280
|
+
name: ${DATE}_${TASK_NAME}.html
|
12281
|
+
recipients:
|
12282
|
+
- estebanldh@gmail.com
|
12283
|
+
- nsimean@despegar.com
|
12284
12284
|
- name: checkout.seguros
|
12285
12285
|
class_name: Henry::Task::CucumberTask
|
12286
12286
|
options:
|