flights_gui_tests 1.6.9 → 1.7.0
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/data/sites.yml +1 -1
- data/features/step_definitions/checkout/verifications_steps.rb +5 -1
- data/features/step_definitions/desambiguation_steps.rb +1 -13
- data/features/step_definitions/thanks/thanks_steps.rb +1 -1
- data/features/support/modules/checkout/new_checkout/tarjeta.rb +7 -10
- data/features/support/version.rb +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: f0a84567e3295e3132504984a89f2c1cb9ce54a8
|
|
4
|
+
data.tar.gz: 73c31fef8b8b72e0689059ba6d714dcb0b70a450
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 805707ec902a0652cead794ea9b31039a03a0ef57401eb2cf32089322160cc88aa9ceb533eea2af66894f8e2dd8fba5227034e05066522b10c173a5efb628006
|
|
7
|
+
data.tar.gz: 0745e620ef6d12673175ff966921ebb42c81b6ffca1193b51be97ab8eaf84f03ad9d11f156b3066d34d7bcae04b066ecf5c8993a914a1b1aed645f38904e424c
|
data/features/data/sites.yml
CHANGED
|
@@ -49,5 +49,5 @@ US:
|
|
|
49
49
|
- {code: "MIA", airports: ["MIA","FLL"], name: "Miami", name_lang: {es: "Miami",en: "Miami", pt: "Miami"}}
|
|
50
50
|
- {code: "LAX", airports: ["LAX"], name: "Los Angeles", name_lang: {es: "Los Angeles",en: "Los Angeles", pt: "Los Angeles"}}
|
|
51
51
|
- {code: "LAS", airports: ["LAS"], name: "Las Vegas", name_lang: {es: "Las Vegas",en: "Las Vegas", pt: "Las Vegas"}}
|
|
52
|
-
- {code: "NYC", airports: ["EWR", "JFK", "LGA", "NYC"], name: "Nueva York|Nova York", name_lang: {es: "Nueva York",en: "
|
|
52
|
+
- {code: "NYC", airports: ["EWR", "JFK", "LGA", "NYC"], name: "Nueva York|Nova York", name_lang: {es: "Nueva York",en: "New York", pt: "Nova York"}}
|
|
53
53
|
- {code: "WAS", airports: ["WAS", "DCA", "BWI", "IAD"], name: "Washington", name_lang: {es: "Washington",en: "Washington", pt: "Washington"}}
|
|
@@ -42,7 +42,11 @@ Cuando(/^(?:verifico|valido) que los precios de las cuotas se muestran correctam
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
Cuando(/^(?:verifico|valido) que los precios de las formas de pago nueva se muestren correctamente$/) do
|
|
45
|
-
|
|
45
|
+
begin
|
|
46
|
+
@page.cerrar_popup_cantidad_visitantes_element.click if @page.cerrar_popup_cantidad_visitantes_element.present?
|
|
47
|
+
rescue Selenium::WebDriver::Error::ElementNotVisibleError
|
|
48
|
+
puts "no se ve el elemento"
|
|
49
|
+
end
|
|
46
50
|
@page.cerrar_popup_chat_element.click if @page.popup_chat_element.present?
|
|
47
51
|
@page.verificar_nuevos_tipos_de_pago
|
|
48
52
|
end
|
|
@@ -47,19 +47,7 @@ Entonces(/^(?:verifico|valido) cada opcion de aeropuerto "(.*?)" en "(.*?)"$/) d
|
|
|
47
47
|
rescue
|
|
48
48
|
aux = 0
|
|
49
49
|
end
|
|
50
|
-
|
|
51
|
-
if (tramo/"select").first.attributes["class"].downcase.match(/departure/)
|
|
52
|
-
@iata = (tramo/"ul.airports//p.description")[option+aux].inner_text[-4,3]
|
|
53
|
-
else
|
|
54
|
-
@iata = (tramo/"ul.airports//p.description")[option+aux].inner_text[-4,3]
|
|
55
|
-
end
|
|
56
|
-
else
|
|
57
|
-
if (tramo/"select").first.attributes["class"].downcase.match(/departure/)
|
|
58
|
-
@iata = (tramo/"ul.airports//p.description")[option+aux].inner_text[-4,3]
|
|
59
|
-
else
|
|
60
|
-
@iata = (tramo/"ul.airports//p.description")[option+aux].inner_text[-4,3]
|
|
61
|
-
end
|
|
62
|
-
end
|
|
50
|
+
@iata = (tramo/"ul.airports//p.description")[option+aux].inner_text[-4,3]
|
|
63
51
|
@page.browser.li(:class=>"strech",:index=>i).radio(:class=>'radio',:index=>option+aux).click if @page.browser.li(:class=>"strech",:index=>i).radio(:class=>'radio',:index=>option+aux).exists?
|
|
64
52
|
i += 1
|
|
65
53
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
Entonces(/^(?:verifico|valido) el link de mi despegar$/) do
|
|
3
|
-
if AllPages.site
|
|
3
|
+
if AllPages.site=~/BR|PT/
|
|
4
4
|
@page.link_mi_despegar_element.text.no_accents.downcase.should match("em caso de duvidas, acesse")
|
|
5
5
|
@page.link_mi_despegar_element.link(:id,"my-despegar-link").should visible
|
|
6
6
|
elsif AllPages.site=~/CN|US|IN/
|
|
@@ -36,6 +36,7 @@ module NewCheckout
|
|
|
36
36
|
div(:warning_deposito,:css=>"#cash-installment .ux-common-message-warning")
|
|
37
37
|
div(:con_intereses,:class=>"installments-with-interest")
|
|
38
38
|
|
|
39
|
+
radio_buttons(:radios_opciones_pago,:css=>"#payment .radio")
|
|
39
40
|
radio_button(:un_pago,:id=>"installment-0")
|
|
40
41
|
radio_button(:un_pago_visa,:value=>"_VI")
|
|
41
42
|
radio_button(:un_pago_argentina,:class=>"radio main-radio ")
|
|
@@ -66,17 +67,13 @@ module NewCheckout
|
|
|
66
67
|
def cargar_datos_tarjeta
|
|
67
68
|
data = self.manage_data.get_results_search_service
|
|
68
69
|
provider = data["result"]["data"]["items"][0]["provider"]
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
opciones_pago_elements.select{|opcion| opcion.text.no_accents.downcase.match(/credito/)}.first.radios[0].set()
|
|
70
|
+
|
|
71
|
+
if debito.no_accents.downcase.match(/debito/)
|
|
72
|
+
radios_opciones_pago_elements[1].set
|
|
73
73
|
else
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
select_un_pago
|
|
78
|
-
end
|
|
79
|
-
end
|
|
74
|
+
radios_opciones_pago_elements[0].set
|
|
75
|
+
end
|
|
76
|
+
|
|
80
77
|
if provider == "VOL"
|
|
81
78
|
tarjeta_element.select("American Express")
|
|
82
79
|
numero_tarjeta_element.set("345678000000007")
|
data/features/support/version.rb
CHANGED
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
|
+
version: 1.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- lgonzalez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: henry-container
|