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: 045557bc1deacbfe47e492a49c8c3a18164242cd
4
- data.tar.gz: 1d5ab619eb7c4784ca402dc52b0a58ffb33a001e
3
+ metadata.gz: 7555175e958590919c1e7457fafff5191cb82c45
4
+ data.tar.gz: 3d9dd55685060885b81b2c43c8d843684e4396fb
5
5
  SHA512:
6
- metadata.gz: c6f743b6661dcd554851c7bf16aed06f78c12bc94ba1a6dd58a8a9838e452e8e335819003d06e36bda7673ee3741df1fc475e7310ffc6e0c12ba1ad2c02b6942
7
- data.tar.gz: fbc8bf869224f1544f9e243649ee5ee953fe41c8099402413dbb09a31a781b8a51d5d6bef27d6ef02bc87d5f20bffd1b8154f1e59837bb01a166f476d9c75498
6
+ metadata.gz: 0fd2445587cbd74cfa8c41b69bb1ab1f39d002a392222c580e700397260210a3b5460c9dfce792414db87f17c2fe3164736f4aae63b1d45ef03490b1c534d80b
7
+ data.tar.gz: 7d24ee61e51c5a6b36fdd9dd48623151f24721be99c9c8da67029e64d0d82b99ceb0cbc78fa0be0ea10b85b165bc4b9a1446c7da1225daeec38c4b27d1a28257
@@ -1,6 +1,10 @@
1
1
 
2
2
  When(/^I fill the detail information$/) do
3
3
 
4
+ @browser.execute_script("window.localStorage.clear();")
5
+
6
+ @browser.refresh
7
+
4
8
  DestinationServicesGUI::Detail.wait_for_detail
5
9
  DestinationServicesGUI::Detail.open_tour_calendar
6
10
 
@@ -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 if $SITE == 'AR'
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 if $SITE == 'AR'
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 if $SITE == 'AR'
155
+ DestinationServicesGUI::Checkout.fill_billing_information($SITE)
156
156
 
157
157
  end
@@ -1,3 +1,3 @@
1
1
  module DestinationServicesGUI
2
- VERSION = "0.2.32"
2
+ VERSION = "0.2.33"
3
3
  end
@@ -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
- browser.select_list(:id, 'addressDefinition-state').select_value(14061)
179
+ case site
180
+ when "AR" then
180
181
 
181
- browser.text_field(:id, 'city').set('la pla')
182
+ browser.select_list(:id, 'addressDefinition-state').select_value(14061)
182
183
 
183
- sleep 10
184
+ browser.text_field(:id, 'city').set('la pla')
184
185
 
185
- browser.send_keys(:enter)
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
- browser.text_field(:id, 'billingDefinition-street').set('Direccion Test 1234')
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
- browser.text_field(:id, 'billingDefinition-number').set('123')
202
+ browser.text_field(:id,'city').set('rio')
190
203
 
191
- browser.text_field(:id, 'billingDefinition-floor').set('1')
204
+ sleep 2
192
205
 
193
- browser.text_field(:id, 'billingDefinition-department').set('B')
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.32
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-09 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container