flights_gui_tests 2.3.64 → 2.3.65
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: 4798876d361ec46d3b3d6e9833e91b54539e05b0
|
4
|
+
data.tar.gz: 6acfdb155e6f0485f0014df0f0e21ce4ec556a4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9f8ddd29c4d45cdabbc2f8ada12a56857e43974b68aec0126375682218914f174c8391cbc0cbdc08b0febdb9baebeef9948cd0efc92a76762fba4beaa34beac
|
7
|
+
data.tar.gz: bb4db0b148cb40507631dd063f95cc24de1972cc2dc82e1bf6ed3e9e986954cd3cef144175b9611a08e3cf9c4995842c40f8f723b4469021483ebc7191ecda32
|
@@ -35,6 +35,7 @@ Entonces(/^(?:verifico|valido) que el precio del seguro se muestre correctamente
|
|
35
35
|
end
|
36
36
|
precio_por_dia = price_detail.to_i / dias
|
37
37
|
precio_por_dia.to_i.should be_within(8).of(price_assistance.to_i * (@page.manage_data.adt+@page.manage_data.cnn+@page.manage_data.inf))
|
38
|
+
@compro_seguro = true
|
38
39
|
end
|
39
40
|
|
40
41
|
Cuando(/^muestro el popup de la cobertura completa$/) do
|
@@ -30,7 +30,7 @@ Y(/^(?:verifico|valido) que se muestren la caja de clientes felices$/) do
|
|
30
30
|
happy_clients = @page.clientes_felices_element
|
31
31
|
happy_clients.should visible
|
32
32
|
happy_clients.div(:class,'ux-common-comment').should visible
|
33
|
-
happy_clients.div(:class,'ux-common-comment').text.should match('[A-Z]|[a-z]')
|
33
|
+
happy_clients.div(:class,'ux-common-comment').text.should match('[A-Z]|[a-z]|=)')
|
34
34
|
happy_clients.div(:class,'ux-common-comment-description').should visible
|
35
35
|
happy_clients.div(:class,'ux-common-comment-description').span(:class,'flights-comment-description').should visible
|
36
36
|
happy_clients.div(:class,'ux-common-comment-description').span(:class,'flights-comment-description').text.no_accents.should match('[A-Z]|[a-z]')
|
@@ -143,10 +143,20 @@ Entonces(/^(?:verifico|valido) el tag de datalayer$/) do
|
|
143
143
|
script = @page.buscar_script_con_texto("^dataLayer")
|
144
144
|
script.should_not is_empty?
|
145
145
|
text = script.first.inner_text.strip.gsub(/\/\/(.*)\n/,'').gsub(/\n/,'').match(/dataLayer \= \[(.*)\]\;/)[1]
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
146
|
+
if @compro_seguro
|
147
|
+
json = JSON.parse("[#{text.gsub(/\'/,"\"")}]")
|
148
|
+
json[0]["transactionId"].should equal(@id_reserva)
|
149
|
+
json[0]["transactionTotal"].to_s.should_not is_empty?
|
150
|
+
json[0]["transactionProducts"].should_not is_empty?
|
151
|
+
json[1]["transactionId"].should equal(@id_reserva)
|
152
|
+
json[1]["transactionTotal"].to_s.should_not is_empty?
|
153
|
+
json[1]["transactionProducts"].should_not is_empty?
|
154
|
+
else
|
155
|
+
json = JSON.parse(text.gsub(/\'/,"\""))
|
156
|
+
json["transactionId"].should equal(@id_reserva)
|
157
|
+
json["transactionTotal"].to_s.should_not is_empty?
|
158
|
+
json["transactionProducts"].should_not is_empty?
|
159
|
+
end
|
150
160
|
end
|
151
161
|
|
152
162
|
Y(/^(?:verifico|valido) el pixel de trackeame en gracias$/) do
|
data/features/support/hooks.rb
CHANGED
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: 2.3.
|
4
|
+
version: 2.3.65
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|