flights_gui_tests 2.4.03 → 2.4.04
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/upselling_steps.rb +7 -7
- data/features/step_definitions/checkout/verifications_steps.rb +1 -0
- data/features/support/env.rb +1 -1
- data/features/support/hooks.rb +1 -1
- data/features/support/modules/checkout/new_checkout/datos_de_facturacion.rb +17 -17
- data/features/support/modules/checkout/new_checkout/popup.rb +3 -3
- data/features/support/pages/checkout/checkout_page/new_checkout_page.rb +9 -9
- data/features/support/version.rb +1 -1
- data/features/tests/black_list/cupones.feature +0 -1
- data/features/tests/checkout/book_ok.feature +1 -1
- data/features/tests/checkout/last_minute.feature +0 -1
- data/features/tests/checkout/seguros.feature +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba8bce6987de04f3d4293706bb17e6d9ac96d844
|
|
4
|
+
data.tar.gz: 0053d702d1c623d744b91cba86e78cf93590e158
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef85e19c4e77a3103b0a207397b2287c0883a94e98edb63a3a194acb752ad536ab932ef21da1a5851fc6d0992ecf6b1e7471e574bed0bc96ad86136e6bc9d54d
|
|
7
|
+
data.tar.gz: bd73f068f72d198f6a2e6b99620e94d1ab90e422f3c89e45875acc2ff65ef643754d70999789755b44b424d19d846438f5cfa569701ddd14ce488f87b897be6a
|
|
@@ -5,10 +5,10 @@ end
|
|
|
5
5
|
|
|
6
6
|
Y(/^elijo "(.*)" si quiero cobertura$/) do |option|
|
|
7
7
|
if option=="chequear"
|
|
8
|
-
@page.
|
|
8
|
+
@page.opcion_si_seguro_element.click if @page.opcion_si_seguro_element.present?
|
|
9
9
|
@compro_seguro = true
|
|
10
10
|
else
|
|
11
|
-
@page.
|
|
11
|
+
@page.opcion_no_seguro_element.click if @page.opcion_no_seguro_element.present?
|
|
12
12
|
@compro_seguro = false
|
|
13
13
|
end
|
|
14
14
|
@page.carga_element.when_not_visible(timeout=60)
|
|
@@ -17,7 +17,7 @@ end
|
|
|
17
17
|
|
|
18
18
|
Entonces(/^(?:verifico|valido) que se muestre correctamente la caja de seguro sin chequear$/) do
|
|
19
19
|
@page.desprotegido_element.should visible("texto de no estoy protegido en la caja de seguro")
|
|
20
|
-
@page.desprotegido_element.text.should match("
|
|
20
|
+
@page.desprotegido_element.text.should match("Agregue su asistencia y viaje protegido")
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
Entonces(/^(?:verifico|valido) que el precio del seguro no se muestre en el desglose$/) do
|
|
@@ -27,7 +27,7 @@ end
|
|
|
27
27
|
Entonces(/^(?:verifico|valido) que se muestre correctamente la caja de seguro chequeada$/) do
|
|
28
28
|
@page.cobertura_element.should visible("link de cobertura en la caja de seguro")
|
|
29
29
|
@page.protegido_element.should visible("texto de estoy protegido en la caja de seguro")
|
|
30
|
-
@page.protegido_element.text.should match("
|
|
30
|
+
@page.protegido_element.text.should match("¡Listo! Viaja protegido")
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
Entonces(/^(?:verifico|valido) que el precio del seguro se muestre correctamente en el desglose$/) do
|
|
@@ -52,9 +52,9 @@ Entonces(/^(?:verifico|valido) que se muestre correctamente el popup de la cober
|
|
|
52
52
|
popup = @page.popup_cobertura_element
|
|
53
53
|
popup.div(:class,'coverage').should visible("Contenido del popup")
|
|
54
54
|
popup.text.should match_sensitive("ASSIST-CARD|ASSIST CARD")
|
|
55
|
-
popup.div(:class,'coverage').span(:class,'
|
|
56
|
-
popup.div(:class,'coverage').span(:class,'
|
|
57
|
-
popup.div(:class,'coverage').span(:class,'
|
|
55
|
+
popup.div(:class,'coverage').span(:class,'insurance-coverage-cell insurance-coverage-code').should visible("Contenido del popup Codigos")
|
|
56
|
+
popup.div(:class,'coverage').span(:class,'insurance-coverage-cell insurance-coverage-title').should visible("Contenido del popup Descripcion")
|
|
57
|
+
popup.div(:class,'coverage').span(:class,'insurance-coverage-title-content').should visible("Contenido del popup Values")
|
|
58
58
|
#popup.div(:class,'coverage').text.strip.should match(destino.upcase.match("MIA") ? 'U\$S' : "€")
|
|
59
59
|
popup.div(:class,'coverage').text.should_not is_empty?
|
|
60
60
|
@page.cerrar_popup_cobertura_element.click
|
|
@@ -67,6 +67,7 @@ end
|
|
|
67
67
|
|
|
68
68
|
Y(/^(?:verifico|valido) que los datos cargados sean mostrados correctamente al lado del boton comprar$/) do
|
|
69
69
|
doc = Hpricot.parse(@page.html)
|
|
70
|
+
@itinerario_checkout = @page.datos_itinerario
|
|
70
71
|
data = ["A","B","C","D","E","F","G","H","I","J","k"]
|
|
71
72
|
index = 0
|
|
72
73
|
RUTS = ["24434735-5","21225723-0","24030075-3","12474266-8","23669926-9","22016676-7","7028168-6","22439590-6","19124113-4","22522720-9","19854797-2","20313663-3"]
|
data/features/support/env.rb
CHANGED
|
@@ -84,7 +84,7 @@ end
|
|
|
84
84
|
$ENV = $HENRY_PARAMS['env']
|
|
85
85
|
|
|
86
86
|
$date = Dater::Resolver.new("%Y-%m-%d","es")
|
|
87
|
-
$aerolineas_prohibidas = ["DL", "AA", "US", "LA", "4M", "LP", "XL", "Y4"]
|
|
87
|
+
$aerolineas_prohibidas = ["DL", "AA", "US", "LA", "4M", "LP", "XL", "Y4", "TK"]
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
@@error_navegador = nil
|
data/features/support/hooks.rb
CHANGED
|
@@ -52,23 +52,23 @@ module NewCheckout
|
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
def cargar_datos_facturacion_br
|
|
55
|
-
if [true,false][rand(2)]
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
else
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
end
|
|
65
|
-
provincia_facturacion_element.select_value("AC")
|
|
66
|
-
set_autocomplete("ciudad_facturacion_custom","rio ")
|
|
67
|
-
calle_facturacion_element.set("corrientes")
|
|
68
|
-
codigo_postal_facturacion_element.set("
|
|
69
|
-
numero_facturacion_element.set("123")
|
|
70
|
-
piso_facturacion_element.set("1")
|
|
71
|
-
departamento_facturacion_element.set("1")
|
|
55
|
+
#if [true,false][rand(2)]
|
|
56
|
+
# puts "Persona natural"
|
|
57
|
+
# persona_natural_element.set
|
|
58
|
+
#else
|
|
59
|
+
# puts "Persona juridica"
|
|
60
|
+
# persona_juridica_element.set
|
|
61
|
+
# cuil_element.set("71.323.296/0001-20")
|
|
62
|
+
# nombre_facturacion_element.set("diego qa romero") if nombre_facturacion_element.present?
|
|
63
|
+
# municipal_facturacion_element.set("municipal") if municipal_facturacion_element.present?
|
|
64
|
+
#end
|
|
65
|
+
#provincia_facturacion_element.select_value("AC")
|
|
66
|
+
#set_autocomplete("ciudad_facturacion_custom","rio ")
|
|
67
|
+
#calle_facturacion_element.set("corrientes")
|
|
68
|
+
#codigo_postal_facturacion_element.set("71111234")
|
|
69
|
+
#numero_facturacion_element.set("123")
|
|
70
|
+
#piso_facturacion_element.set("1")
|
|
71
|
+
#departamento_facturacion_element.set("1")
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
def cargar_datos_facturacion_pe
|
|
@@ -9,7 +9,7 @@ module NewCheckout
|
|
|
9
9
|
div(:popup_nuevo_vuelo,:id=>"popup-new-flight")
|
|
10
10
|
div(:popup_confirmacion_pago,:id=>"confirm-payment-popup")
|
|
11
11
|
div(:popup_chat,:id=>"dtalk-container")
|
|
12
|
-
div(:popup_cobertura,:id=>"popup-
|
|
12
|
+
div(:popup_cobertura,:id=>"popup-insurance-coverage")
|
|
13
13
|
div(:popup_compra_duplicada,:id=>"popup-duplicated-transaction")
|
|
14
14
|
div(:opcion_no_compra_duplicada,:css=>"#popup-duplicated-transaction .button-no")
|
|
15
15
|
div(:opcion_si_compra_duplicada,:css=>"#popup-duplicated-transaction .button-yes")
|
|
@@ -18,8 +18,8 @@ module NewCheckout
|
|
|
18
18
|
div(:opcion_si_price_jump,:css=>"#popup-price-difference .button-yes")
|
|
19
19
|
div(:opcion_si_new_price_jump,:css=>"#popup-price-difference-template .button-yes")
|
|
20
20
|
div(:cerrar_popup_chat,:css=>"#dtalk-container .ux-header-close")
|
|
21
|
-
span(:cerrar_popup_cobertura,:css=>"
|
|
22
|
-
span(:cerrar_popup_cantidad_visitantes,:css=>"#searches-count-alert-popup .popup-close
|
|
21
|
+
span(:cerrar_popup_cobertura,:css=>"#popup-insurance-coverage .popup-close-button")
|
|
22
|
+
span(:cerrar_popup_cantidad_visitantes,:css=>"#searches-count-alert-popup .popup-close")
|
|
23
23
|
|
|
24
24
|
def cerrar_popups
|
|
25
25
|
begin
|
|
@@ -25,8 +25,8 @@ module Checkout
|
|
|
25
25
|
div(:notificacion_error_ux,:class=>"ux-common-error")
|
|
26
26
|
div(:boton_si_cambio_precio,:class=>"button-yes")
|
|
27
27
|
div(:agencia_afiliada,:id=>"agency")
|
|
28
|
-
|
|
29
|
-
div(:cobertura_deshabilitada,:class=>"
|
|
28
|
+
link(:cobertura,:class=>'coverage')
|
|
29
|
+
div(:cobertura_deshabilitada,:class=>"new-insurance section unprotected")
|
|
30
30
|
div(:itinerario,:id=>"detail")
|
|
31
31
|
div(:cupon_error,:id=>"coupon-error")
|
|
32
32
|
div(:cupon_exito,:id=>"voucher-success")
|
|
@@ -37,13 +37,13 @@ module Checkout
|
|
|
37
37
|
div(:mensaje_cancelacion_en_el_dia,:id=>"last-minute-advice")
|
|
38
38
|
div(:mensaje_error_emision_last_minute,:class=>"eva-message-error ")
|
|
39
39
|
link(:link_mensaje_error_emision_last_minute,:css=>".eva-message-error a")
|
|
40
|
-
div(:protegido,:
|
|
41
|
-
div(:desprotegido,:
|
|
40
|
+
div(:protegido,:class=>"insurance-title show-protected")
|
|
41
|
+
div(:desprotegido,:class=>"insurance-title hide-protected")
|
|
42
42
|
div(:aviso_ingresos_brutos,:id=>"local-taxes-advice")
|
|
43
43
|
span(:cluster_doble,:class=>"fare-detail-multipleoneway-title")
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
link(:opcion_no_seguro, :class=>"remove-button eva-button-ghost-medium show-protected")
|
|
46
|
+
link(:opcion_si_seguro, :class=>"add-button eva-button-secondary-medium hide-protected")
|
|
47
47
|
|
|
48
48
|
checkbox(:condiciones_de_compra,:id=>"read-agreement")
|
|
49
49
|
checkbox(:cupones,:id=>"vouchers")
|
|
@@ -51,7 +51,7 @@ module Checkout
|
|
|
51
51
|
span(:elegir_otro_vuelo,:class=>"choose-another")
|
|
52
52
|
span(:error_datos,:class=>"error-message")
|
|
53
53
|
span(:carga,:css=>".loading .img")
|
|
54
|
-
span(:precio_seguro,:css=>"#
|
|
54
|
+
span(:precio_seguro,:css=>"#insurance .price-box-content .current-price .amount")
|
|
55
55
|
span(:valor_desglose_ingresos_brutos,:css=>".local_taxes .price-currency")
|
|
56
56
|
span(:valor_ingresos_brutos,:css=>"#local-taxes-advice .bold .amount")
|
|
57
57
|
span(:valor_desglose_total,:id=>"total-price")
|
|
@@ -74,9 +74,9 @@ module Checkout
|
|
|
74
74
|
|
|
75
75
|
def opcion_seguros(opcion)
|
|
76
76
|
if opcion
|
|
77
|
-
opcion_si_seguro_element.
|
|
77
|
+
opcion_si_seguro_element.click
|
|
78
78
|
else
|
|
79
|
-
opcion_no_seguro_element.
|
|
79
|
+
opcion_no_seguro_element.click
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
data/features/support/version.rb
CHANGED
|
@@ -15,7 +15,6 @@ Característica: checkout.cupones
|
|
|
15
15
|
Entonces verifico que la pagina no rompa
|
|
16
16
|
Y espero que termine de cargar la pagina de checkout
|
|
17
17
|
Y verifico que ingrese al checkout
|
|
18
|
-
Entonces si ingreso por keeper, ingreso al checkout con cookie "useNewBookingProvider" al "0"
|
|
19
18
|
Y valido los valores del desglose del checkout
|
|
20
19
|
Entonces cargo los pasajeros
|
|
21
20
|
Y cargo los datos de la tarjeta
|
|
@@ -265,7 +265,7 @@ Característica: checkout.book_ok
|
|
|
265
265
|
Entonces verifico que la pagina no rompa
|
|
266
266
|
Y espero que termine de cargar la pagina de checkout
|
|
267
267
|
Y verifico que ingrese al checkout
|
|
268
|
-
Entonces ingreso al checkout con cookie "showInvoice" al "1"
|
|
268
|
+
#Entonces ingreso al checkout con cookie "showInvoice" al "1"
|
|
269
269
|
Entonces si existe la opcion de cobertura, elijo "no_chequear" si quiero cobertura
|
|
270
270
|
Entonces valido los valores del desglose del checkout
|
|
271
271
|
Y verifico el pixel de Efrontier
|
|
@@ -58,7 +58,6 @@ Característica: checkout.last_minute
|
|
|
58
58
|
Entonces verifico que la pagina no rompa
|
|
59
59
|
Y espero que termine de cargar la pagina de checkout
|
|
60
60
|
Y verifico que ingrese al checkout
|
|
61
|
-
Entonces si ingreso por keeper, ingreso al checkout con cookie "useNewBookingProvider" al "0"
|
|
62
61
|
* verifico el mensaje de last minute con texto "Nao perca tempo! Este voo sai em .{1,2} horas.|Nao perca tempo! Este voo de (.*) para (.+) sai em (.+) horas."
|
|
63
62
|
* verifico el mensaje de last minute con texto "Compre e receba o bilhete eletronico com a maior rapidez."
|
|
64
63
|
Entonces cargo los pasajeros
|
|
@@ -15,6 +15,7 @@ Característica: checkout.seguros
|
|
|
15
15
|
Entonces verifico que la pagina no rompa
|
|
16
16
|
Y espero que termine de cargar la pagina de checkout
|
|
17
17
|
Y verifico que ingrese al checkout
|
|
18
|
+
Entonces ingreso al checkout con cookie "showNewInsurance" al "37"
|
|
18
19
|
Cuando existe la opcion de cobertura
|
|
19
20
|
Entonces elijo "no_chequear" si quiero cobertura
|
|
20
21
|
Entonces verifico que se muestre correctamente la caja de seguro sin chequear
|
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: 2.4.
|
|
4
|
+
version: 2.4.04
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- lgonzalez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: henry-container
|