flights_gui_henry_tests 2.9.6 → 2.9.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83ca966db4a56ea708c01e3838fae6860cf8accd
|
4
|
+
data.tar.gz: 61931f3c0274b3fd67eb105a7ccecc0c88201ea2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 034e3f86e99e26aa8176acae0064f5e4bd9ca8ea5fa6df08e7186fa811b53b4ed03f70b18485ce0cb06e89bb30818f20eacdc2ba281f22c9473139d566f89c3f
|
7
|
+
data.tar.gz: d00dcd6cb75196242c7dc1b3b31a643fe8416670a5ca706130465ca5330ec545e0c649b2d36cf27bf1b6529598773f07e21bfa764ff034c6c9911eedd0424174
|
@@ -17,7 +17,7 @@ end
|
|
17
17
|
Entonces(/^verifico que se muestren las tarjetas guardadas$/) do
|
18
18
|
BROWSER.div(:id,'paymentDefinition.storedCard').should visible("store de tarjetas guardadas")
|
19
19
|
if BROWSER.div(:id,'paymentDefinition.storedCard').li(:class,'stored-card hidden')
|
20
|
-
BROWSER.
|
20
|
+
BROWSER.execute_script("javascript:void($('.display-cards').click())")
|
21
21
|
sleep(1)
|
22
22
|
end
|
23
23
|
i = 0
|
@@ -35,6 +35,15 @@ Entonces(/^verifico que se muestren los usuarios guardadas$/) do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
Entonces(/^Elijo una tarjeta ya guardada$/) do
|
38
|
-
|
39
|
-
|
38
|
+
if $SITE=="BR"
|
39
|
+
byebug
|
40
|
+
BROWSER.execute_script("javascript:void($('.display-cards').click())") if BROWSER.div(:id,'paymentDefinition.storedCard').link(:class,'display-cards').text.inner_text.downcase.match("mas|mais")
|
41
|
+
ul = BROWSER.div(:id,'paymentDefinition.storedCard').uls(:class,'card-container').to_a.select{|ul| ul.li(:class,'item owner-name').text.match(/BR/)}.first
|
42
|
+
pending("no se encontro usuario de tarjeta para brasil") unless ul
|
43
|
+
ul.radio(:class,'radio').click
|
44
|
+
ul.text_fields[0].set("123")
|
45
|
+
else
|
46
|
+
BROWSER.div(:id,'paymentDefinition.storedCard').radio(:class,'radio').click
|
47
|
+
BROWSER.div(:id,'paymentDefinition.storedCard').text_field(:id,"stored-card-0-security-code").set("123")
|
48
|
+
end
|
40
49
|
end
|
@@ -239,10 +239,10 @@ Then /^Verifico que dirija a la pagina de gracias$/ do
|
|
239
239
|
if BROWSER.div(:class, 'ux-common-error').present?
|
240
240
|
pending(BROWSER.div(:class,'ux-common-error').text)
|
241
241
|
end
|
242
|
-
if BROWSER.div(:class,'ux-common-message ux-common-message-warning ').present? and !BROWSER.span(:class =>'checkout-id').present?
|
242
|
+
if BROWSER.div(:class,'ux-common-message ux-common-message-warning ').present? and !BROWSER.span(:class =>'checkout-id').present? and !BROWSER.div(:id =>'popup-new-flight').present?
|
243
243
|
pending(BROWSER.div(:class,'ux-common-message ux-common-message-warning ').text.strip.no_accents.downcase)
|
244
244
|
end
|
245
|
-
if BROWSER.div(:class,'ux-common-message ux-common-message-error ').present? and !BROWSER.span(:class =>'checkout-id').present?
|
245
|
+
if BROWSER.div(:class,'ux-common-message ux-common-message-error ').present? and !BROWSER.span(:class =>'checkout-id').present? and !BROWSER.div(:id =>'popup-new-flight').present?
|
246
246
|
pending(BROWSER.div(:class,'ux-common-message ux-common-message-error ').text.strip.no_accents.downcase)
|
247
247
|
end
|
248
248
|
if BROWSER.div(:id,'popup-price-difference-template').present?
|
@@ -14,7 +14,7 @@
|
|
14
14
|
gem.name = "flights_gui_henry_tests" #Debe ser unico en el Gem Server, tratemos de utilizar nombre que identifiquen de forma inequivoca
|
15
15
|
|
16
16
|
gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]5
|
17
|
-
gem.version = '2.9.
|
17
|
+
gem.version = '2.9.7' #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.82')
|
20
20
|
gem.add_dependency('watir-webdriver')
|