ds-gui-automation 0.1.56 → 0.1.57

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: e715cb1c53a22359abe3be50a20389e6be712456
4
- data.tar.gz: 047675a6f5b47225605edd927b4ef7dad33e7ba1
3
+ metadata.gz: 990dbe41c927fd874b3625635e27485a4f14b788
4
+ data.tar.gz: 4c1e996a593ce1d737580223e55ba7d568e2aa12
5
5
  SHA512:
6
- metadata.gz: 3b55bad2696d46c624ebb1450d2c27d40c2e155227db5d4b518afd19090ca0a9fcc196d431f5338f05cbcdb9ebeaf597cd546a99f80c0304db1818e999eb34a8
7
- data.tar.gz: 8bf5b7b159a0a2b9a97bc9d4fa8174b80086e7628fd09eff655a7c328544bc2dbc50635a5e38389e9f6719b5166bd12b16362b65bf2f444e46240a504a07ebb9
6
+ metadata.gz: 41f2997e1ff92d76fda23b59251e9e31711a2e2557f21ceefda66d67c79d210267ccd360689e89dc84b20706a4f26c18659a84c02e065b55f2c234717970db19
7
+ data.tar.gz: fc8d0341e0bd75ee344ecdb2906b8189dfecb71d1a35fca0096d86d4b88563d41e02a0fbef64f7cc7665e0743709666b6424bbcf487bf7de7e75f3a8d7d19ee8
@@ -61,6 +61,16 @@ Feature: Destination Services Results
61
61
  |AR|PAM_FTE_620|tours|
62
62
  |AR|PAM_MDZ_194|tours|
63
63
  |AR|PAM_SLA_73|tours|
64
+ |AR|HB_ORL_SEAWRLDROW|tours|
65
+ |AR|HB_NYC_NYCITYPASS|tours|
66
+ |AR|HB_LAX_UNIVERSTUD|tours|
67
+ |AR|HB_TPA_BUSCHROW|tours|
68
+ |AR|GL_SCL_519|tours|
69
+ |AR|GL_MVD_1619|tours|
70
+ |AR|VIA_PAR_5307DISNEYPASS|tours|
71
+ |AR|GL_ADZ_1691|tours|
72
+ |AR|PAM_BZC_534|tours|
73
+ |AR|VIA_LIM_5694LIM|tours|
64
74
 
65
75
  @mx
66
76
  @hb
@@ -19,6 +19,8 @@ When(/^I fill the detail information$/) do
19
19
 
20
20
  @detail_price = @browser.span(:class,'ux-common-price').text.split(' ')[1]
21
21
 
22
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
23
+
22
24
  end
23
25
 
24
26
  When(/^I fill the detail information for tickets disney$/) do
@@ -43,24 +45,32 @@ end
43
45
 
44
46
  When(/^I proceed to tour checkout$/) do
45
47
 
48
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
49
+
46
50
  DestinationServicesGUI::Detail.go_to_tour_checkout
47
51
 
48
52
  end
49
53
 
50
54
  When(/^I proceed to disney checkout$/) do
51
55
 
56
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
57
+
52
58
  DestinationServicesGUI::Detail.go_to_disney_checkout
53
59
 
54
60
  end
55
61
 
56
62
  When(/^I proceed to universal checkout$/) do
57
63
 
64
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
65
+
58
66
  DestinationServicesGUI::Detail.go_to_universal_checkout
59
67
 
60
68
  end
61
69
 
62
70
  Then(/^I should see the checkout page correctly$/) do
63
71
 
72
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
73
+
64
74
  DestinationServicesGUI::Checkout.wait_for_checkout
65
75
 
66
76
  # @browser.em(:id,'robot-price-per-passenger').present?.should be_true AGREGAR EN VALIDACIONES PARTICULARES DE TOURS
@@ -2,10 +2,16 @@ Given(/^I perform a search in "(.*)" with "(.*)" from seo URL$/) do | country,
2
2
 
3
3
  DestinationServicesGUI::Search.set_country(country)
4
4
 
5
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
6
+
5
7
  DestinationServicesGUI::Search.perform_search_for_tracking_id(trackingId)
6
8
 
9
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
10
+
7
11
  DestinationServicesGUI::Results.wait_for_results
8
12
 
13
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
14
+
9
15
  puts @browser.url
10
16
 
11
17
  DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
@@ -44,7 +44,12 @@ Then(/^I verify that the reservation was made on Fenix for "(.*)" and "(.*)"$/)
44
44
 
45
45
  crm_id = @browser.p(:class,'ux-common-thanks-ticket-number').text.split(': ').last
46
46
 
47
- transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}")
47
+ if BETA
48
+ transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}", :headers =>{'X-Version-Override' => BETA_COOKIES})
49
+ else
50
+ transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}")
51
+ end
52
+
48
53
 
49
54
  if type != 'insurances'
50
55
  transaction['items'].first['extra_data']['tracking_id'].eql?(trackingId).should be_true
@@ -228,6 +228,11 @@ Feature: Destination Services Thanks
228
228
  |country|tracking_id|type|
229
229
  |BR|DY_ORL|tickets|
230
230
 
231
+ @ar
232
+ Examples:
233
+ |country|tracking_id|type|
234
+ |AR|DY_ORL|tickets|
235
+
231
236
  @mx
232
237
  Examples:
233
238
  |country|tracking_id|type|
data/lib/ds/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DestinationServicesGUI
2
- VERSION = "0.1.56"
2
+ VERSION = "0.1.57"
3
3
  end
@@ -155,6 +155,14 @@ module Checkout
155
155
 
156
156
  browser.text_field(:id, 'billingDefinition-street').set('Direccion Test 1234')
157
157
 
158
+ browser.text_field(:id, 'billingDefinition-number').set('123')
159
+
160
+ browser.text_field(:id, 'billingDefinition-floor').set('1')
161
+
162
+ browser.text_field(:id, 'billingDefinition-department').set('B')
163
+
164
+ browser.text_field(:id, 'billingDefinition-postalCode').set('1900')
165
+
158
166
  end
159
167
 
160
168
  end
@@ -52,7 +52,7 @@ module Commons
52
52
  elsif $SITE == 'US'
53
53
  $DOMAIN='http://www.us.despegar.com'
54
54
  else
55
- $DOMAIN="http://www.despegar.com.#{$SITE.downcase}"
55
+ $DOMAIN="http://rc.despegar.it.#{$SITE.downcase}"
56
56
  end
57
57
 
58
58
  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.1.56
4
+ version: 0.1.57
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-01-20 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container