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: 064cf5c5c46635038aceca41299c0ebeb83d68dd
4
- data.tar.gz: 00fe7f1e8c455aff569a62dcd1488177d1d788e3
3
+ metadata.gz: 4798876d361ec46d3b3d6e9833e91b54539e05b0
4
+ data.tar.gz: 6acfdb155e6f0485f0014df0f0e21ce4ec556a4d
5
5
  SHA512:
6
- metadata.gz: 24b513350198fd75d4930cc9e48274e808ffe1d738008943285a8fe41e1e1d188d5415712fdbf092d07bd282dfc8f84e1455d395d197e3f7672e2f66adf77320
7
- data.tar.gz: ac62f951d6b589cc002329b4ad320a3a0d302897e479cd3adac18538e65f3a4e271a18ef6115113d87c410facb8434670d9ddd79c41ba82a437e026589b00bc5
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
- json = JSON.parse(text.gsub(/\'/,"\""))
147
- json["transactionId"].should equal(@id_reserva)
148
- json["transactionTotal"].to_s.should_not is_empty?
149
- json["transactionProducts"].should_not is_empty?
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
@@ -17,6 +17,6 @@ After do |scenario|
17
17
  end
18
18
 
19
19
  at_exit do
20
- $browser.close
20
+ $browser.quit
21
21
  $process.clean
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.3.64"
2
+ VERSION = "2.3.65"
3
3
  end
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.64
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-04 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container