flights_gui_tests 0.1.0 → 0.1.1
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/cupones_steps.rb +3 -4
- data/features/support/modules/checkout/popup.rb +1 -0
- data/features/support/pages/landing/search_page.rb +1 -0
- data/features/support/pages/results/search_page.rb +2 -2
- data/features/tests/checkout/providers.feature +12 -11
- data/features/tests/results/filters.feature +1 -0
- data/features/tests/results/new_filters.feature +1 -0
- data/flights_gui_tests.gemspec +1 -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: 5fb7f12ab377af8252c0adbabbadf6c357607b49
|
4
|
+
data.tar.gz: f6d9383a8a6fc60706add832af55c7476671377d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2860ff7063fcf0f95db9ca1e4711dfa33bb27815a88adc81840f889a7217edff3d21206f2d95080fb0ad7029e43684288968fae9b50d151ad4181a104dc16636
|
7
|
+
data.tar.gz: 1bff02276b2e013ef4582b15b8a1ae2d9d10a6437f92fc067c62f809120d4a1cafb4c7db81bd5097185faf7c9630196f918dfddd518660db51516c2f9316edd0
|
@@ -4,10 +4,9 @@ Y(/^permite cupon de descuento$/) do
|
|
4
4
|
end
|
5
5
|
|
6
6
|
Y(/^completo con un cupon de descuento con numero "(.*)"$/) do |num|
|
7
|
-
if @page.
|
8
|
-
|
9
|
-
|
10
|
-
end
|
7
|
+
@page.cerrar_popup_cantidad_visitantes_element.click if @page.cerrar_popup_cantidad_visitantes_element.present?
|
8
|
+
@page.cerrar_popup_chat_element.click if @page.popup_chat_element.present?
|
9
|
+
sleep(1)
|
11
10
|
@page.cupones_element.set(true)
|
12
11
|
@page.cupon_email_element.set("bookingvuelos@despegar.com")
|
13
12
|
@page.cupon_voucher_element.set(num)
|
@@ -17,5 +17,6 @@ module Checkout
|
|
17
17
|
div(:opcion_si_price_jump,:css=>"#popup-price-difference .button-yes")
|
18
18
|
span(:cerrar_popup_chat,:css=>"#dtalk-container .close-round-section")
|
19
19
|
span(:cerrar_popup_cobertura,:css=>".popup-upselling-coverage .popup-close-button")
|
20
|
+
span(:cerrar_popup_cantidad_visitantes,:css=>"#searches-count-alert-popup .popup-close-button")
|
20
21
|
end
|
21
22
|
end
|
@@ -18,6 +18,7 @@ module Landing
|
|
18
18
|
element(:precio_itinerario, :span, :css=>".cluster .fare .price-currency")
|
19
19
|
element(:precio_itinerario_pe, :span, :css=>".cluster .fare .PEN")
|
20
20
|
element(:itinerario, :div, :css=>"#clusters .cluster")
|
21
|
+
element(:desglose,:li,:css=>"#clusters .cluster .fare-detail li")
|
21
22
|
|
22
23
|
div(:lista_itinerarios, :id=>"clusters")
|
23
24
|
div(:titulo,:class=>"mainTitle")
|
@@ -36,10 +36,10 @@ module Results
|
|
36
36
|
elements(:opciones_ida,:radio,:css=>"div.outbound input")
|
37
37
|
elements(:opciones_vuelta,:radio,:css=>"div.inbound input")
|
38
38
|
elements(:itinerarios, :div, :css=>"#clusters .cluster")
|
39
|
+
elements(:detalle_precio_itinerario, :li, :css=>"#clusters .cluster .fare-detail li")
|
40
|
+
|
39
41
|
element(:itinerario, :div, :css=>"#clusters .cluster")
|
40
42
|
element(:desglose,:li,:css=>"#clusters .cluster .fare-detail li")
|
41
|
-
|
42
|
-
elements(:detalle_precio_itinerario, :li, :css=>"#clusters .cluster .fare-detail li")
|
43
43
|
element(:precio_itinerario, :span, :css=>".cluster .fare .price-currency")
|
44
44
|
element(:precio_itinerario_pe, :span, :css=>".cluster .fare .PEN")
|
45
45
|
|
@@ -17,6 +17,7 @@ Característica: checkout.providers
|
|
17
17
|
Entonces verifico que la pagina no rompa
|
18
18
|
Y espero que termine de cargar la pagina de checkout
|
19
19
|
Y verifico que ingrese al checkout
|
20
|
+
Cuando si el site es "BR", ingreso al checkout con cookie "showNewPaymentType" al "85"
|
20
21
|
Y valido los valores del desglose del checkout
|
21
22
|
Y verifico el pixel de Efrontier
|
22
23
|
Y verifico el pixel de trackeame en checkout
|
@@ -53,14 +54,14 @@ Característica: checkout.providers
|
|
53
54
|
|pais|tipo|cabotage|prov|from|to|date_from|date_to|
|
54
55
|
|MX|roundtrip|true|AIJ|MEX|MTY|2014-02-28|2014-03-17|
|
55
56
|
|MX|oneway|true|AIJ|MEX|GDL|2014-03-28|2014-04-17|
|
56
|
-
@gds
|
57
|
-
Ejemplos:
|
58
|
-
|pais|tipo|cabotage|prov|from|to|date_from|date_to|
|
59
|
-
|MX|roundtrip|true|GDS|MEX|MTY|2014-02-28|2014-03-17|
|
60
|
-
|MX|oneway|true|GDS|MEX|GDL|2014-03-28|2014-04-17|
|
61
|
-
|BR|roundtrip|true|GDS|RIO|SAO|2014-02-28|2014-03-17|
|
62
|
-
|BR|oneway|nil|GDS|SAO|BUE|2014-03-28|2014-04-17|
|
63
|
-
|AR|roundtrip|true|GDS|BUE|COR|2014-02-28|2014-03-17|
|
64
|
-
|AR|oneway|nil|GDS|SAO|BUE|2014-03-28|2014-04-17|
|
65
|
-
|US|roundtrip|true|GDS|MIA|NYC|2014-02-28|2014-03-17|
|
66
|
-
|US|oneway|nil|GDS|MIA|BUE|2014-03-28|2014-04-17|
|
57
|
+
# @gds
|
58
|
+
# Ejemplos:
|
59
|
+
# |pais|tipo|cabotage|prov|from|to|date_from|date_to|
|
60
|
+
# |MX|roundtrip|true|GDS|MEX|MTY|2014-02-28|2014-03-17|
|
61
|
+
# |MX|oneway|true|GDS|MEX|GDL|2014-03-28|2014-04-17|
|
62
|
+
# |BR|roundtrip|true|GDS|RIO|SAO|2014-02-28|2014-03-17|
|
63
|
+
# |BR|oneway|nil|GDS|SAO|BUE|2014-03-28|2014-04-17|
|
64
|
+
# |AR|roundtrip|true|GDS|BUE|COR|2014-02-28|2014-03-17|
|
65
|
+
# |AR|oneway|nil|GDS|SAO|BUE|2014-03-28|2014-04-17|
|
66
|
+
# |US|roundtrip|true|GDS|MIA|NYC|2014-02-28|2014-03-17|
|
67
|
+
# |US|oneway|nil|GDS|MIA|BUE|2014-03-28|2014-04-17|
|
@@ -10,6 +10,7 @@ Característica: results.filters
|
|
10
10
|
Cuando espero que termine de cargar la pagina de resultados
|
11
11
|
Entonces verifico que traiga resultados
|
12
12
|
Cuando si el site es "MX", fuerzo el abztesting de "filters" al "15"
|
13
|
+
Cuando si el site es "MX", fuerzo el abztesting de "breakdown" al "88"
|
13
14
|
Y si el site es "MX", una pagina de resultados en "<pais>" para una busqueda "<tipo>" del tipo "<cabotage>"
|
14
15
|
Cuando si el site es "MX", verifico que la pagina no rompa
|
15
16
|
Cuando si el site es "MX", espero que termine de cargar la pagina de resultados
|
@@ -10,6 +10,7 @@ Característica: results.new_filters
|
|
10
10
|
Cuando espero que termine de cargar la pagina de resultados
|
11
11
|
Entonces verifico que traiga resultados
|
12
12
|
Cuando fuerzo el abztesting de "filters" al "70"
|
13
|
+
Cuando si el site es "MX", fuerzo el abztesting de "breakdown" al "88"
|
13
14
|
Dado una pagina de resultados en "<pais>" para una busqueda "<tipo>" del tipo "<cabotage>"
|
14
15
|
Entonces verifico que la pagina no rompa
|
15
16
|
Cuando espero que termine de cargar la pagina de resultados
|
data/flights_gui_tests.gemspec
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
|
17
17
|
|
18
|
-
gem.version = '0.1.
|
18
|
+
gem.version = '0.1.1' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
|
19
19
|
|
20
20
|
gem.add_dependency('henry-container', '>= 0.1.39')
|
21
21
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez,lsimean
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|