ds-gui-automation 0.2.45 → 0.2.46

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: c0e6b3f4da8531fa25e755c147c5e454b8f2f56b
4
- data.tar.gz: 1ae31d2905e0e7a0490dd81b7d37ff846345c92b
3
+ metadata.gz: 88d8747af3806a285c6900989b1a5979a63c214d
4
+ data.tar.gz: c73626d3f14600c73865fef57aef54566fde1169
5
5
  SHA512:
6
- metadata.gz: 335c21efbeb083e97fb4b9761c4dfdb254896ae5a591d27a8f771d0bf9277a8cd9821ba87c4e82ee301f6d3768156b3138a2d4f8c0a50fd711f57afce84a3557
7
- data.tar.gz: 0bcf0478f34e7dd8a9d38becc77e86714a256131ba9eb5aac60eff0418d6759496e408a35947f7da5cb8bee030978a0247eaad65accd0a06b5c6ae234c3eb140
6
+ metadata.gz: 12538774e36b364611f7fed353a130cf1abebb18d44e063be5b8b41662b85b7e9d68a84e8f332a95f19998bcff7daab5bf0e2247cf43be235eee9e4c06dd567a
7
+ data.tar.gz: 2202b19fdafb0d278221a3e21edc7c6cd3d90a11438f0132b848c246f26a478819b3175464c2e3c44aff64482d831a827bfcad00fced2d2c0a7c8455d2f85abe
@@ -221,7 +221,9 @@ end
221
221
 
222
222
  Given(/^I proceed to transfer checkout$/) do
223
223
 
224
- clusters = @browser.divs(:class,'ux-transfers-cluster')
224
+ clusters = @browser.divs(:class,'ux-transfers-cluster').to_a
225
+
226
+ raise "No results found for the specified tracking ID ==> #{trackingId}" unless !clusters.empty?
225
227
 
226
228
  clusters.to_a.shuffle.first.a(:class, 'ux-button primary').click
227
229
 
@@ -28,6 +28,8 @@ When(/^I proceed to thanks$/) do
28
28
  end
29
29
 
30
30
  Then(/^I should see the thanks page correctly$/) do
31
+ @browser.ul(:class, 'ds-checkout-thanks-resume-item-list').wait_until_present(30)
32
+
31
33
  @browser.ul(:class, 'ds-checkout-thanks-resume-item-list').present?.should be_true
32
34
 
33
35
  crm_id = @browser.ul(:class, 'ds-checkout-thanks-resume-item-list').li.span.text.split(': ').last
@@ -52,9 +54,10 @@ Then(/^I verify that the reservation was made on Fenix for "(.*)" and "(.*)"$/)
52
54
  transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}")
53
55
  end
54
56
 
55
-
56
- if type != 'insurances'
57
+ if type != ('insurances' && 'transfers')
57
58
  transaction['items'].first['extra_data']['tracking_id'].eql?(trackingId).should be_true
59
+ elsif type = 'transfers'
60
+ transaction['items'].first['extra_data']['tracking_id'].include?('TF').should be_true
58
61
  else
59
62
  transaction['items'].first['extra_data']['tracking_id'].include?('IN').should be_true
60
63
  end
@@ -157,34 +157,30 @@ Feature: Destination Services Thanks
157
157
  ## http://www.despegar.com.ar/transfer/#!/search/oneway/airport/CUN/hotel/265793/27-02-2016/00:00/1
158
158
  ## Show provider script: javascript:( function(){var priceboxes = $(".ux-cluster-pricebox"); angular.forEach(priceboxes, function(elem, index){var ngElem= angular.element(elem); $(elem).append('<div class="transfer-provider">' + ngElem.scope().transfer.provider + '</div>').find(".transfer-provider").css({'color': 'red', 'font-weight': 'bold'});});})();
159
159
 
160
- @tf_gl
160
+ @mx
161
161
  Examples:
162
- |country|tracking_id|type|
163
- |MX|TF_LAS|transfers|
162
+ |country|destination|type|
163
+ |MX|CUN|transfers|
164
164
 
165
165
  @co
166
- @tf_pam
167
166
  Examples:
168
- |country|tracking_id|type|
169
- |CO|TF_CUN|transfers|
167
+ |country|destination|type|
168
+ |CO|CUN|transfers|
170
169
 
171
- @co
172
- @tf_gl
170
+ @uy
173
171
  Examples:
174
- |country|tracking_id|type|
175
- |CO|TF_CTG|transfers|
172
+ |country|destination|type|
173
+ |UY|CUN|transfers|
176
174
 
177
175
  @cl
178
- @tf_pam
179
176
  Examples:
180
- |country|tracking_id|type|
181
- |CL|TF_MEX|transfers|
177
+ |country|destination|type|
178
+ |CL|CUN|transfers|
182
179
 
183
- @cl
184
- @tf_gl
180
+ @ar
185
181
  Examples:
186
- |country|tracking_id|type|
187
- |CL|TF_CTG|transfers|
182
+ |country|destination|type|
183
+ |AR|CUN|transfers|
188
184
 
189
185
 
190
186
  @disney_thanks
data/lib/ds/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DestinationServicesGUI
2
- VERSION = "0.2.45"
2
+ VERSION = "0.2.46"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ds-gui-automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.45
4
+ version: 0.2.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Santiago Ochoa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-17 00:00:00.000000000 Z
11
+ date: 2016-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container