ds-gui-automation 0.2.48 → 0.2.49

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: 9593a46570c1dcb8dad2d50c107ef6d3f308f1e8
4
- data.tar.gz: 27fba7eeb170b4cd085155bc4a5e27adc10764b4
3
+ metadata.gz: 9b9cb7c8d86cadfbd552d78d308beffdea1a82bd
4
+ data.tar.gz: 1517bd2fe5db3421490a81c56c17e7154faada82
5
5
  SHA512:
6
- metadata.gz: 5c2a32e2d7ad0e83e7d9c32f588f4be5237dd4c6f297da5f8fd5856767f24bea1ba89c0dfcaeaec3577116255f629c3d4b4fb4b7fdcf5a8b4dc2d398c6d4c006
7
- data.tar.gz: 69bd805a1b16adf6c13ca8e07a592a3bc7ed0ccb0ecd4f7be9a680f95b6338afe4dac74c0b4ca3bf43e624d312367e25997cbc5559ab0156a8fd05d4bea6b852
6
+ metadata.gz: d0405f678a03b2a050c6f2595eb51e03184da06f5a75897fd6da379d237996cd1b261dd7fbd9e5fce052e09cec0b52d3fc10dcf9b0aa20851b2a6af12c147868
7
+ data.tar.gz: c47581032443cc872662bcd64d29f42d137387c5f79d42ac82950f1f4d37919c19463d2e26b2a0ad020935cc8bcb85cd2e9cb6e792a1d3c5c12b4d88a071e6db
@@ -47,7 +47,11 @@ Then(/^I verify that the reservation was made on Fenix for "(.*)" and "(.*)"$/)
47
47
  crm_id = @browser.ul(:class, 'ds-checkout-thanks-resume-item-list').li.span.text.split(': ').last
48
48
 
49
49
  if BETA
50
+ if trackingId.eql?("SW_ORL") || trackingId.eql?("BG_ORL")
51
+ transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/tours?transaction_id=#{crm_id}", :headers =>{'X-Version-Override' => BETA_COOKIES})
52
+ else
50
53
  transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}", :headers =>{'X-Version-Override' => BETA_COOKIES})
54
+ end
51
55
  elsif trackingId.eql?("SW_ORL") || trackingId.eql?("BG_ORL")
52
56
  transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/tours?transaction_id=#{crm_id}")
53
57
  else
@@ -56,7 +60,27 @@ Then(/^I verify that the reservation was made on Fenix for "(.*)" and "(.*)"$/)
56
60
 
57
61
  if type != ('insurances' && 'transfers')
58
62
  transaction['items'].first['extra_data']['tracking_id'].eql?(trackingId).should be_true
59
- elsif type = 'transfers'
63
+ elsif type == 'transfers'
64
+ transaction['items'].first['extra_data']['tracking_id'].include?('TF').should be_true
65
+ else
66
+ transaction['items'].first['extra_data']['tracking_id'].include?('IN').should be_true
67
+ end
68
+
69
+ end
70
+
71
+ Then(/^I verify that the reservation was made on Fenix for "(.*)"$/) do | type |
72
+
73
+ sleep 10
74
+
75
+ crm_id = @browser.ul(:class, 'ds-checkout-thanks-resume-item-list').li.span.text.split(': ').last
76
+
77
+ if BETA
78
+ transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}", :headers =>{'X-Version-Override' => BETA_COOKIES})
79
+ else
80
+ transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}")
81
+ end
82
+
83
+ if type == 'transfers'
60
84
  transaction['items'].first['extra_data']['tracking_id'].include?('TF').should be_true
61
85
  else
62
86
  transaction['items'].first['extra_data']['tracking_id'].include?('IN').should be_true
@@ -146,7 +146,7 @@ Feature: Destination Services Thanks
146
146
  And I proceed to thanks
147
147
  And I fill the risk information
148
148
  Then I should see the thanks page correctly
149
- And I verify that the reservation was made on Fenix for "<type>" and "<tracking_id>"
149
+ And I verify that the reservation was made on Fenix for "<type>"
150
150
 
151
151
  @br
152
152
  Examples:
data/lib/ds/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DestinationServicesGUI
2
- VERSION = "0.2.48"
2
+ VERSION = "0.2.49"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ds-gui-automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.48
4
+ version: 0.2.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Santiago Ochoa