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 +4 -4
- data/features/results.feature +10 -0
- data/features/step_definitions/checkout_steps.rb +10 -0
- data/features/step_definitions/results_steps.rb +6 -0
- data/features/step_definitions/thanks_steps.rb +6 -1
- data/features/thanks.feature +5 -0
- data/lib/ds/version.rb +1 -1
- data/lib/page_objects/modules/checkout.rb +8 -0
- data/lib/page_objects/modules/commons.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: 990dbe41c927fd874b3625635e27485a4f14b788
|
4
|
+
data.tar.gz: 4c1e996a593ce1d737580223e55ba7d568e2aa12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41f2997e1ff92d76fda23b59251e9e31711a2e2557f21ceefda66d67c79d210267ccd360689e89dc84b20706a4f26c18659a84c02e065b55f2c234717970db19
|
7
|
+
data.tar.gz: fc8d0341e0bd75ee344ecdb2906b8189dfecb71d1a35fca0096d86d4b88563d41e02a0fbef64f7cc7665e0743709666b6424bbcf487bf7de7e75f3a8d7d19ee8
|
data/features/results.feature
CHANGED
@@ -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
|
-
|
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
|
data/features/thanks.feature
CHANGED
data/lib/ds/version.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|