ds-gui-automation 0.2.32 → 0.2.33
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7555175e958590919c1e7457fafff5191cb82c45
|
|
4
|
+
data.tar.gz: 3d9dd55685060885b81b2c43c8d843684e4396fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0fd2445587cbd74cfa8c41b69bb1ab1f39d002a392222c580e700397260210a3b5460c9dfce792414db87f17c2fe3164736f4aae63b1d45ef03490b1c534d80b
|
|
7
|
+
data.tar.gz: 7d24ee61e51c5a6b36fdd9dd48623151f24721be99c9c8da67029e64d0d82b99ceb0cbc78fa0be0ea10b85b165bc4b9a1446c7da1225daeec38c4b27d1a28257
|
|
@@ -10,8 +10,6 @@ Given(/^I call the bam service for "(.*)"$/) do | country |
|
|
|
10
10
|
|
|
11
11
|
@@day_call = HTTParty.get("https://proxy.despexds.net/delfos/monitor?from_date=#{day_ago}Z&to_date=#{today}Z").reject { | item | !item['country'].eql?(country) }.first
|
|
12
12
|
|
|
13
|
-
binding.pry
|
|
14
|
-
|
|
15
13
|
end
|
|
16
14
|
|
|
17
15
|
Then(/^I should see an acceptable percentage of reservations cancelled in collection for "(.*)"$/) do | country |
|
|
@@ -3,7 +3,7 @@ When(/^I fill the checkout information$/) do
|
|
|
3
3
|
DestinationServicesGUI::Checkout.fill_credit_card_information
|
|
4
4
|
DestinationServicesGUI::Checkout.fill_contact_information
|
|
5
5
|
|
|
6
|
-
DestinationServicesGUI::Checkout.fill_billing_information
|
|
6
|
+
DestinationServicesGUI::Checkout.fill_billing_information($SITE)
|
|
7
7
|
|
|
8
8
|
end
|
|
9
9
|
|
|
@@ -87,7 +87,7 @@ When(/^I fill the checkout information for cart$/) do
|
|
|
87
87
|
|
|
88
88
|
DestinationServicesGUI::Checkout.fill_contact_information
|
|
89
89
|
|
|
90
|
-
DestinationServicesGUI::Checkout.fill_billing_information
|
|
90
|
+
DestinationServicesGUI::Checkout.fill_billing_information($SITE)
|
|
91
91
|
|
|
92
92
|
if @browser.ul(:class, 'destination-services-cart-checkout-travelDate').present?
|
|
93
93
|
|
|
@@ -152,6 +152,6 @@ When(/^I fill the checkout information for assistance$/) do
|
|
|
152
152
|
DestinationServicesGUI::Checkout.fill_credit_card_information
|
|
153
153
|
DestinationServicesGUI::Checkout.fill_contact_information
|
|
154
154
|
|
|
155
|
-
DestinationServicesGUI::Checkout.fill_billing_information
|
|
155
|
+
DestinationServicesGUI::Checkout.fill_billing_information($SITE)
|
|
156
156
|
|
|
157
157
|
end
|
data/lib/ds/version.rb
CHANGED
|
@@ -174,23 +174,45 @@ module Checkout
|
|
|
174
174
|
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
def fill_billing_information
|
|
177
|
+
def fill_billing_information(site)
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
case site
|
|
180
|
+
when "AR" then
|
|
180
181
|
|
|
181
|
-
|
|
182
|
+
browser.select_list(:id, 'addressDefinition-state').select_value(14061)
|
|
182
183
|
|
|
183
|
-
|
|
184
|
+
browser.text_field(:id, 'city').set('la pla')
|
|
184
185
|
|
|
185
|
-
|
|
186
|
+
sleep 10
|
|
187
|
+
|
|
188
|
+
browser.send_keys(:enter)
|
|
189
|
+
|
|
190
|
+
browser.text_field(:id, 'billingDefinition-street').set('Direccion Test 1234')
|
|
191
|
+
|
|
192
|
+
browser.text_field(:id, 'billingDefinition-number').set('123')
|
|
193
|
+
|
|
194
|
+
browser.text_field(:id, 'billingDefinition-floor').set('1')
|
|
195
|
+
|
|
196
|
+
browser.text_field(:id, 'billingDefinition-department').set('B')
|
|
186
197
|
|
|
187
|
-
|
|
198
|
+
when "BR" then
|
|
199
|
+
if browser.select_list(:id,'addressDefinition-state').present?
|
|
200
|
+
browser.select_list(:id,'addressDefinition-state').select_value("12925")
|
|
188
201
|
|
|
189
|
-
|
|
202
|
+
browser.text_field(:id,'city').set('rio')
|
|
190
203
|
|
|
191
|
-
|
|
204
|
+
sleep 2
|
|
192
205
|
|
|
193
|
-
|
|
206
|
+
browser.send_keys(:tab)
|
|
207
|
+
|
|
208
|
+
browser.text_field(:id,'billingDefinition-street').set('test address')
|
|
209
|
+
|
|
210
|
+
browser.text_field(:id,'billingDefinition-number').set('123')
|
|
211
|
+
|
|
212
|
+
browser.text_field(:id,'billingDefinition-postalCode').set('23943-075')
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
end
|
|
194
216
|
|
|
195
217
|
end
|
|
196
218
|
|
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.33
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Santiago Ochoa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: henry-container
|