flights_gui_tests 1.4.2 → 1.4.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 +4 -4
- data/features/step_definitions/checkout/ingresos_brutos.rb +1 -0
- data/features/step_definitions/checkout/load_steps.rb +4 -0
- data/features/step_definitions/checkout/verifications_steps.rb +3 -9
- data/features/support/modules/checkout/new_checkout/datos_de_facturacion.rb +11 -0
- data/features/support/pages/all_pages.rb +1 -0
- data/features/support/pages/checkout/checkout_page/new_checkout_page.rb +1 -0
- data/features/support/version.rb +1 -1
- data/features/tests/checkout/cac.feature +6 -1
- 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: 9140ab8773302dee9df6fd62173f7e80d6aa642f
|
|
4
|
+
data.tar.gz: 2c896a7cd5965884861a9403d6043105a98c0dbd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e165c77262a44a5dad2599a319fc3e827e4ade97e11f899df3ac71f89ec6693dc4c0e3c56b3d49a1c62d0e3ce681d57531e5fb0690a85845fc10226a2a016f63
|
|
7
|
+
data.tar.gz: 57ef1911b38570f23b02974e6c0c73ed78c238910dcd55329257bbfb94b994d01d47bba056f1cd0a8399632ff5cb18651de77bbd1454ce3abf741d0780aebcf1
|
|
@@ -14,6 +14,7 @@ end
|
|
|
14
14
|
|
|
15
15
|
Y(/^verifico que se muestren los costos de ingresos brutos mostrados en el desglose$/) do
|
|
16
16
|
@page.ver_desglose_gracias_element.should visible("Link para popup de detalle de vuelo")
|
|
17
|
+
sleep(2)
|
|
17
18
|
@page.ver_desglose_gracias_element.click
|
|
18
19
|
@page.popup_desglose_gracias_element.when_visible(timeout=20)
|
|
19
20
|
@valores_ingresos_brutos["IIBB"].should equal(Price.new(@page.valor_desglose_ingresos_brutos_element.text)) unless @valores_ingresos_brutos["IIBB"].valor.zero?
|
|
@@ -47,6 +47,10 @@ end
|
|
|
47
47
|
|
|
48
48
|
Y(/^(?:verifico|valido) si no trae errores$/) do
|
|
49
49
|
if @page.notificacion_warning_ux_element.present?
|
|
50
|
+
pagina = Hpricot.parse(browser.html)
|
|
51
|
+
if (pagina/"div#errorInfo").length>0
|
|
52
|
+
raise((pagina/"div#errorInfo").inner_html)
|
|
53
|
+
end
|
|
50
54
|
pending(@page.notificacion_warning_ux_element.text) unless @page.popup_nuevo_vuelo_element.present? or @page.checkout_id_element.present? or @page.checkout_id_cash_element.present?
|
|
51
55
|
end
|
|
52
56
|
if @page.mensaje_error_ux_element.present?
|
|
@@ -48,15 +48,9 @@ Cuando(/^(?:verifico|valido) que los precios de las formas de pago nueva se mues
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
Y(/^(?:verifico|valido) que no se muestre la opcion de reserva CAC en BR$/) do
|
|
51
|
-
@page.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
rescue Watir::Wait::TimeoutError
|
|
55
|
-
@page.browser.alert.exists?.should be_true
|
|
56
|
-
end
|
|
57
|
-
@page.browser.alert.text.no_accents.should match("Esta operacao nao pode ser realizado com a linha aerea seleccionada")
|
|
58
|
-
@page.browser.alert.ok
|
|
59
|
-
step "verifico que ingrese al checkout"
|
|
51
|
+
@page.notificacion_error_cac_element.when_visible(timeout=60)
|
|
52
|
+
@page.notificacion_error_cac_element.text.no_accents.strip.should match("Pagamento CAC nao esta habilitado para este pais.")
|
|
53
|
+
@page.notificacion_error_cac_element.text.no_accents.strip.should match("Por favor, tente outros meios de pagamento.")
|
|
60
54
|
end
|
|
61
55
|
|
|
62
56
|
Y(/^(?:verifico|valido) que los datos cargados sean mostrados correctamente al lado del boton comprar$/) do
|
|
@@ -24,6 +24,10 @@ module NewCheckout
|
|
|
24
24
|
text_field(:municipal_facturacion,:id=>"invoice-townRegistration")
|
|
25
25
|
|
|
26
26
|
checkbox(:invoice_check,:id=>"invoice-check")
|
|
27
|
+
checkbox(:persona_natural, :id=>"invoice-fiscal-status-0")
|
|
28
|
+
checkbox(:persona_juridica,:id=>"invoice-fiscal-status-1")
|
|
29
|
+
|
|
30
|
+
div(:tipo_contribuyente,:id=>"invoiceDefinition.invoiceDataDefinition.fiscalStatus.value")
|
|
27
31
|
|
|
28
32
|
link(:buscar_codigo_postal,:class=>"search-postal-code")
|
|
29
33
|
|
|
@@ -66,6 +70,13 @@ module NewCheckout
|
|
|
66
70
|
|
|
67
71
|
def cargar_datos_facturacion_pe
|
|
68
72
|
cuil_element.set("33344455561") if cuil_element.present?
|
|
73
|
+
if invoice_check_element.present?
|
|
74
|
+
if [true,false][rand(2)]
|
|
75
|
+
persona_natural_check
|
|
76
|
+
else
|
|
77
|
+
persona_juridica_check
|
|
78
|
+
end
|
|
79
|
+
end
|
|
69
80
|
nombre_facturacion_element.set("diego qa romero") if nombre_facturacion_element.present?
|
|
70
81
|
provincia_facturacion_element.select(provincia_facturacion_options[2]) if provincia_facturacion_element.present?
|
|
71
82
|
ciudad_facturacion_element.set("Rosario") if ciudad_facturacion_element.present?
|
|
@@ -15,6 +15,7 @@ module Checkout
|
|
|
15
15
|
div(:opcion_no_deposito,:css=>"#confirm-payment-popup .flights-button-no")
|
|
16
16
|
div(:opcion_si_deposito,:css=>"#confirm-payment-popup .flights-button-yes")
|
|
17
17
|
div(:notificacion_error,:class=>"notification-box error-box")
|
|
18
|
+
div(:notificacion_error_cac,:id=>"notification-box")
|
|
18
19
|
div(:notificacion_warning,:class=>"notification-box warn-box")
|
|
19
20
|
div(:notificacion_warning_ux,:class=>"ux-common-message ux-common-message-warning ")
|
|
20
21
|
div(:mensaje_error_ux,:class=>"ux-common-message ux-common-message-error ")
|
data/features/support/version.rb
CHANGED
|
@@ -17,7 +17,7 @@ Característica: checkout.cac
|
|
|
17
17
|
Y verifico que la pagina no rompa
|
|
18
18
|
Entonces cargo los pasajeros
|
|
19
19
|
Y completo los datos para reservas CAC
|
|
20
|
-
Y
|
|
20
|
+
Y cargo los datos de facturacion
|
|
21
21
|
Y cargo los datos de contacto
|
|
22
22
|
Cuando acepto y compro
|
|
23
23
|
Entonces espero que termine el pedido de compra
|
|
@@ -56,6 +56,11 @@ 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 cargo los pasajeros
|
|
60
|
+
Y completo los datos para reservas CAC
|
|
61
|
+
Y cargo los datos de facturacion
|
|
62
|
+
Y cargo los datos de contacto
|
|
63
|
+
Cuando acepto y compro
|
|
59
64
|
Y verifico que no se muestre la opcion de reserva CAC en BR
|
|
60
65
|
|
|
61
66
|
@br
|
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: 1.4.
|
|
4
|
+
version: 1.4.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-03-
|
|
11
|
+
date: 2015-03-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: henry-container
|