flights_gui_tests 0.5.3 → 0.5.4
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 +2 -4
- data/features/step_definitions/results/reviews_steps.rb +1 -1
- data/features/support/modules/checkout/new_checkout/popup.rb +9 -0
- data/features/support/modules/checkout/old_checkout/popup.rb +9 -0
- data/flights_gui_tests.gemspec +1 -1
- 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: 177a270908cfd3beb14b2ec8ca020afa3e9365c6
|
4
|
+
data.tar.gz: f0f0bda402ee6a53125a96e0230d84036e43d77f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b43954f6ff98e2c4ff1b9d78ed11256d0716645ae73bc629387aa9ef7bdd8b548ab48925aff788bcb36b8df9b9bef412ee68835e11172efcd6c4088324a49432
|
7
|
+
data.tar.gz: 1e76f0790fd4b2b6de7b7a96e0a793746dd6d082437c24ea77225fd6d3ba33adefb908bb6409b636682d82cb0e95800bf28397d4fd741d07e1fb36d985d04bb6
|
@@ -4,14 +4,12 @@ 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
|
-
@page.
|
8
|
-
@page.cerrar_popup_chat_element.click if @page.popup_chat_element.present?
|
7
|
+
@page.cerrar_popups
|
9
8
|
sleep(1)
|
10
9
|
@page.cupones_element.set(true)
|
11
10
|
@page.cupon_email_element.set("bookingvuelos@despegar.com")
|
12
11
|
@page.cupon_voucher_element.set(num)
|
13
|
-
@page.
|
14
|
-
@page.cerrar_popup_chat_element.click if @page.popup_chat_element.present?
|
12
|
+
@page.cerrar_popups
|
15
13
|
@page.cupon_validar_element.click
|
16
14
|
end
|
17
15
|
|
@@ -21,7 +21,7 @@ Entonces(/^verifico que se muestren las reviews de aerolineas$/) do
|
|
21
21
|
@page.reviews_aerolineas_elements.each_with_index do |aerolinea,index|
|
22
22
|
@page.enviar_tecla :escape
|
23
23
|
sleep(1)
|
24
|
-
|
24
|
+
@page.cerrar_popups
|
25
25
|
aerolinea.click
|
26
26
|
@page.popup_reviews_aerolineas_element.when_visible(timeout=10)
|
27
27
|
doc = Hpricot.parse(@page.popup_reviews_aerolineas_element.html)
|
@@ -19,4 +19,13 @@ module NewCheckout
|
|
19
19
|
span(:cerrar_popup_cobertura,:css=>".popup-upselling-coverage .popup-close-button")
|
20
20
|
span(:cerrar_popup_cantidad_visitantes,:css=>"#searches-count-alert-popup .popup-close-button")
|
21
21
|
end
|
22
|
+
|
23
|
+
def cerrar_popups
|
24
|
+
begin
|
25
|
+
cerrar_popup_cantidad_visitantes_element.click if cerrar_popup_cantidad_visitantes_element.present?
|
26
|
+
cerrar_popup_chat_element.click if popup_chat_element.present?
|
27
|
+
rescue Selenium::WebDriver::Error::UnknownError
|
28
|
+
puts "Error al cerrar popups"
|
29
|
+
end
|
30
|
+
end
|
22
31
|
end
|
@@ -19,4 +19,13 @@ module Checkout
|
|
19
19
|
span(:cerrar_popup_cobertura,:css=>".popup-upselling-coverage .popup-close-button")
|
20
20
|
span(:cerrar_popup_cantidad_visitantes,:css=>"#searches-count-alert-popup .popup-close-button")
|
21
21
|
end
|
22
|
+
|
23
|
+
def cerrar_popups
|
24
|
+
begin
|
25
|
+
cerrar_popup_cantidad_visitantes_element.click if cerrar_popup_cantidad_visitantes_element.present?
|
26
|
+
cerrar_popup_chat_element.click if popup_chat_element.present?
|
27
|
+
rescue Selenium::WebDriver::Error::UnknownError
|
28
|
+
puts "Error al cerrar chat"
|
29
|
+
end
|
30
|
+
end
|
22
31
|
end
|
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.5.
|
17
|
+
gem.version = '0.5.4' # 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')
|