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: 46fb7ecc7105f41bcc0d89558c00404ffb9a0a52
4
- data.tar.gz: 398be2c3d11da895463c679d9b0b2cb60d972d90
3
+ metadata.gz: 53e481e734a64b5b93f58a7fd62858885ea1809f
4
+ data.tar.gz: 95348561c3ea3fa18fb455cd1cd0af5a2b6f99ea
5
5
  SHA512:
6
- metadata.gz: c24d24852eb59f880775f9182ca879430aa817c7119951bd540706d49f63ac463c2e6c4aa330c8aba6ecebbd02bb4ae2af92d077ac820e9b66ceaf879d9732a7
7
- data.tar.gz: 845e3e695067db0dd4da3d39c970fe4f84526c96f3e10ce0d159de82da8dac5238034daa51d228d5f293011f476415718255b70537a2b4b6d461603e73e00ad1
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 = '2.9.9' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
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')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_henry_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.9
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez