flights_gui_tests 2.4.43 → 2.4.44
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/3d_secure_steps.rb +10 -3
- data/features/step_definitions/checkout/checkout_steps.rb +17 -0
- data/features/step_definitions/page_steps.rb +3 -3
- data/features/support/modules/checkout/new_checkout/3dsecure.rb +7 -0
- data/features/support/pages/all_pages.rb +1 -0
- data/features/support/version.rb +1 -1
- data/features/tests/checkout/book_3d_secure.feature +1 -1
- data/features/tests/checkout/seguros.feature +1 -1
- data/features/tests/results/search_full.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: 3ff01d2a53bbcbcff530ee6422c2ee6fb7258111
|
|
4
|
+
data.tar.gz: 265290f4db1e1acf7b7ceaf8d3213bad581d3de9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 347960bea023659358a77147dcedc85446b4033380c952ddfb26b9e5c2b955897187de7da86c84a2e438076ea307db676c62789b5f88822ea829293d37602638
|
|
7
|
+
data.tar.gz: 637db55f90c1c5b0480076470242b76cf8fd5f23b9e4d851daf0f2b44fd3eeb594fb03314dcdc447e5635e7d0b60747b6cedbccb94dc9f003b8da84eb350fa15
|
|
@@ -8,14 +8,21 @@ Entonces(/^cargo los datos de contacto para forzar risk reject$/) do
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
Cuando(/^muestra el popup de 3d secure$/) do
|
|
11
|
-
@page.risk_reject_modal_element.when_visible(
|
|
11
|
+
@page.risk_reject_modal_element.when_visible(timeout=20)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
Entonces(/^elijo la opcion de verificar tarjeta$/) do
|
|
15
|
-
|
|
15
|
+
if @page.elegir_autenticacion_con_el_banco_element.present?
|
|
16
|
+
@page.elegir_autenticacion_con_el_banco_element.click
|
|
17
|
+
else
|
|
18
|
+
@page.elegir_contactar_con_despegar_element.click
|
|
19
|
+
pending("No se encontro el link de elegir auntenticar")
|
|
20
|
+
end
|
|
16
21
|
end
|
|
17
22
|
|
|
18
23
|
Entonces(/^ingreso los datos y verifico la tarjeta$/) do
|
|
19
|
-
|
|
24
|
+
@page.iframe_autentificacion_element.when_visible(timeout=20)
|
|
25
|
+
@page.browser.iframe(:id,'payer-authentication').iframes[0].text_fields[0].set("1234")
|
|
26
|
+
@page.browser.iframe(:id,'payer-authentication').iframes[0].buttons[0].click
|
|
20
27
|
end
|
|
21
28
|
|
|
@@ -101,6 +101,23 @@ Entonces(/^elijo un itinerario para checkout de nuevas formas de pago del popup
|
|
|
101
101
|
step "si aparece el popup de no disponibilidad, elijo un itinerario para checkout de nuevas formas de pago del popup de no disponibilidad"
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
Entonces(/^elijo un itinerario para 3d secure del popup de no disponibilidad$/) do
|
|
105
|
+
@popup_no_disponibilidad_page.sumar_aparicion
|
|
106
|
+
pending("La cantidad de compras supero las #{@popup_no_disponibilidad_page.apariciones} apariciones") if @popup_no_disponibilidad_page.apariciones > 4
|
|
107
|
+
Watir::Wait.until(timeout=120){@popup_no_disponibilidad_page.itinerario_viejo_element.present? or @popup_no_disponibilidad_page.itinerario_nuevo_element.present?}
|
|
108
|
+
@popup_no_disponibilidad_page.cargar_itinerarios
|
|
109
|
+
@itinerario_checkout = @popup_no_disponibilidad_page.elegir_itinerario(0)
|
|
110
|
+
step "verifico que ingrese al checkout"
|
|
111
|
+
step "verifico que la pagina no rompa"
|
|
112
|
+
step "cargo los pasajeros"
|
|
113
|
+
step "cargo los datos de la tarjeta para 3d secure"
|
|
114
|
+
step "si el site es \"AR|MX|PE|BR\", cargo los datos de facturacion"
|
|
115
|
+
step "cargo los datos de contacto para forzar risk reject"
|
|
116
|
+
step "acepto y compro"
|
|
117
|
+
step "espero que termine el pedido de compra"
|
|
118
|
+
step "si aparece el popup de no disponibilidad, elijo un itinerario para 3d secure del popup de no disponibilidad"
|
|
119
|
+
end
|
|
120
|
+
|
|
104
121
|
Entonces(/^elijo un itinerario para pago online del popup de no disponibilidad$/) do
|
|
105
122
|
@popup_no_disponibilidad_page.sumar_aparicion
|
|
106
123
|
pending("La cantidad de compras supero las #{@popup_no_disponibilidad_page.apariciones} apariciones") if @popup_no_disponibilidad_page.apariciones > 4
|
|
@@ -28,9 +28,9 @@ end
|
|
|
28
28
|
Entonces(/^seteo el header "(.*)" con el valor "(.*)" en resultados$/) do |header,value|
|
|
29
29
|
@page.execute_script("javascript:void(document.cookie='#{header}=#{value};path=/');")
|
|
30
30
|
@page.manage_data.set_header_json({header=>value})
|
|
31
|
-
|
|
32
|
-
step "espero que termine de cargar la pagina de resultados"
|
|
33
|
-
step "verifico que traiga resultados"
|
|
31
|
+
#@page.refresh
|
|
32
|
+
#step "espero que termine de cargar la pagina de resultados"
|
|
33
|
+
#step "verifico que traiga resultados"
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
Entonces(/^es ida y vuelta$/) do
|
|
@@ -4,6 +4,13 @@ module NewCheckout
|
|
|
4
4
|
include PageObject
|
|
5
5
|
|
|
6
6
|
div(:risk_reject_modal,:id=>"risk-rejected-modal")
|
|
7
|
+
link(:elegir_otra_forma_de_pago,:class=>"recovery-option another-payment")
|
|
8
|
+
link(:elegir_autenticacion_con_el_banco,:class=>"recovery-option authentication")
|
|
9
|
+
link(:elegir_contactar_con_despegar,:class=>"recovery-option contact")
|
|
10
|
+
element(:iframe_autentificacion,:id=>"payer-authentication")
|
|
11
|
+
text_field(:iframe_password,:css=>".payer-authentication input")
|
|
12
|
+
button(:iframe_boton_envio,:css=>".payer-authentication input")
|
|
13
|
+
|
|
7
14
|
|
|
8
15
|
end
|
|
9
16
|
end
|
|
@@ -109,6 +109,7 @@ class AllPages
|
|
|
109
109
|
when 'FSM' then "fsm-search=beta|fsm-retrieve=beta|fsm-cheapest=beta|location-requirements=beta"
|
|
110
110
|
when 'VITO' then "vito-search=beta|vito-no-search=beta"
|
|
111
111
|
when 'CHAS' then "chas-flight=beta"
|
|
112
|
+
when 'CHASCOND' then "chas-cond=beta"
|
|
112
113
|
when 'DEBASE' then "flights-dbs-new=flights-dbs-new-b"
|
|
113
114
|
when 'PRISM' then "flights-dbs-new=beta|prism=beta"
|
|
114
115
|
when 'NIBBLER' then "nibbler=beta"
|
data/features/support/version.rb
CHANGED
|
@@ -23,7 +23,7 @@ Característica: checkout.book_3d_secure
|
|
|
23
23
|
Y cargo los datos de contacto para forzar risk reject
|
|
24
24
|
Cuando acepto y compro
|
|
25
25
|
Entonces espero que termine el pedido de compra
|
|
26
|
-
Entonces si aparece el popup de no disponibilidad, elijo un itinerario del popup de no disponibilidad
|
|
26
|
+
Entonces si aparece el popup de no disponibilidad, elijo un itinerario para 3d secure del popup de no disponibilidad
|
|
27
27
|
Cuando muestra el popup de 3d secure
|
|
28
28
|
Entonces elijo la opcion de verificar tarjeta
|
|
29
29
|
Y ingreso los datos y verifico la tarjeta
|
|
@@ -15,7 +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 "showTwoButtonsInsurance" al "
|
|
18
|
+
Entonces ingreso al checkout con cookie "showTwoButtonsInsurance" al "1"
|
|
19
19
|
Cuando existe la opcion de cobertura
|
|
20
20
|
Entonces verifico que se muestre correctamente la caja de seguro sin chequear
|
|
21
21
|
Y verifico que el precio del seguro no se muestre en el desglose
|
|
@@ -10,6 +10,7 @@ Característica: results.search_full
|
|
|
10
10
|
Cuando realizo la busqueda
|
|
11
11
|
Entonces verifico que la pagina no rompa
|
|
12
12
|
Cuando espero que termine de cargar la pagina de resultados
|
|
13
|
+
Cuando pruebo angular
|
|
13
14
|
Entonces verifico que traiga resultados
|
|
14
15
|
Y cierro popups
|
|
15
16
|
Y si el site no es "IN|CN|PT", verifico el primer tag de google en resultado
|
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.44
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- lgonzalez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-03-
|
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: henry-container
|