flights_gui_henry_tests 2.9.9 → 3.0.0
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: 53e481e734a64b5b93f58a7fd62858885ea1809f
|
4
|
+
data.tar.gz: 95348561c3ea3fa18fb455cd1cd0af5a2b6f99ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 568c265da2737a3bf00b5145c48cdf19cc4a15cd42c1a269ea7062b3c19e2acbdb02d8090f085ee0833ae264d0bc6dcab3c0edf98166e65f7fd7e7fe87707e67
|
7
|
+
data.tar.gz: 84acc6d64a173db9775be2f4cd654ed87c1aec4ecf25a3de99f962df4424fbe399ebc3129c1ef0cbc1e7b57acc32e4fe4a323bce063528245cfd0dc3f27db6a2
|
@@ -150,4 +150,15 @@ And /^Verifico el pixel de e-planning$/ do
|
|
150
150
|
tag_planning = (doc/"script").select{|script| script.inner_text.match(/planning/)}
|
151
151
|
tag_planning.first.inner_html.empty?.should_not be_true
|
152
152
|
(tag_planning.length >= 1).should be_true
|
153
|
-
end
|
153
|
+
end
|
154
|
+
|
155
|
+
And /^Verifico el tag de datalayer$/ do
|
156
|
+
doc = Hpricot.parse(BROWSER.html)
|
157
|
+
script = (doc/"script").select{|script| script.inner_text.match(/^dataLayer/)}
|
158
|
+
script.should_not is_empty
|
159
|
+
text = script.first.inner_text.strip.gsub(/\/\/(.*)\n/,'').gsub(/\n/,'').match(/dataLayer \= \[(.*)\]\;/)[1]
|
160
|
+
json = JSON.parse(text.gsub(/\'/,"\""))
|
161
|
+
json["transactionId"].should equal(@id_cro)
|
162
|
+
json["transactionTotal"].to_s.should_not is_empty
|
163
|
+
json["transactionProducts"].should_not is_empty
|
164
|
+
end
|
@@ -33,6 +33,7 @@ Característica: checkout.integration
|
|
33
33
|
Y Verifico el segundo tag de google en resultado de checkout
|
34
34
|
Y Verifico el link de mi despegar
|
35
35
|
Y Levanto los datos del vuelo
|
36
|
+
Y Verifico el tag de datalayer
|
36
37
|
#Cuando Si cumple para pruebas en fenix, Inicializo las pruebas en fenix
|
37
38
|
#Entonces Si cumple para pruebas en fenix, Verifico que las pruebas en fenix esten correctas
|
38
39
|
|
@@ -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 = '
|
17
|
+
gem.version = '3.0.0' #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')
|