ds-gui-automation 0.2.45 → 0.2.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/features/step_definitions/checkout_steps.rb +3 -1
- data/features/step_definitions/thanks_steps.rb +5 -2
- data/features/thanks.feature +13 -17
- data/lib/ds/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88d8747af3806a285c6900989b1a5979a63c214d
|
|
4
|
+
data.tar.gz: c73626d3f14600c73865fef57aef54566fde1169
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/features/thanks.feature
CHANGED
|
@@ -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
|
-
@
|
|
160
|
+
@mx
|
|
161
161
|
Examples:
|
|
162
|
-
|country|
|
|
163
|
-
|MX|
|
|
162
|
+
|country|destination|type|
|
|
163
|
+
|MX|CUN|transfers|
|
|
164
164
|
|
|
165
165
|
@co
|
|
166
|
-
@tf_pam
|
|
167
166
|
Examples:
|
|
168
|
-
|country|
|
|
169
|
-
|CO|
|
|
167
|
+
|country|destination|type|
|
|
168
|
+
|CO|CUN|transfers|
|
|
170
169
|
|
|
171
|
-
@
|
|
172
|
-
@tf_gl
|
|
170
|
+
@uy
|
|
173
171
|
Examples:
|
|
174
|
-
|country|
|
|
175
|
-
|
|
|
172
|
+
|country|destination|type|
|
|
173
|
+
|UY|CUN|transfers|
|
|
176
174
|
|
|
177
175
|
@cl
|
|
178
|
-
@tf_pam
|
|
179
176
|
Examples:
|
|
180
|
-
|country|
|
|
181
|
-
|CL|
|
|
177
|
+
|country|destination|type|
|
|
178
|
+
|CL|CUN|transfers|
|
|
182
179
|
|
|
183
|
-
@
|
|
184
|
-
@tf_gl
|
|
180
|
+
@ar
|
|
185
181
|
Examples:
|
|
186
|
-
|country|
|
|
187
|
-
|
|
|
182
|
+
|country|destination|type|
|
|
183
|
+
|AR|CUN|transfers|
|
|
188
184
|
|
|
189
185
|
|
|
190
186
|
@disney_thanks
|
data/lib/ds/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: henry-container
|