ds-gui-automation 0.2.10 → 0.2.11
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/cart_thanks.feature +1 -1
- data/features/results.feature +0 -1
- data/features/step_definitions/checkout_steps.rb +7 -0
- data/features/step_definitions/detail_steps.rb +2 -0
- data/features/step_definitions/insurance_steps.rb +3 -2
- data/features/step_definitions/results_steps.rb +7 -0
- data/features/step_definitions/thanks_steps.rb +1 -1
- data/features/support/env.rb +3 -3
- data/features/thanks.feature +0 -1
- data/lib/ds/version.rb +1 -1
- data/lib/page_objects/modules/results.rb +4 -0
- 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: 9f73ba491172691e632a2407adb355dd7f5487d8
|
4
|
+
data.tar.gz: 6cbf426ffba3aedf7da598e0f883da4fc50b3d8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d421267ce636fd6f07c13b5a8bdda79ec2f2cc28074560ef1375f7262535454735672fe9977a771d2b880922345c7abdcc5076978c8d83d71e02ae172d924272
|
7
|
+
data.tar.gz: eaf7bcd4ff4dfb1891cb3d89ddf082eea5afd20c6588584cf38a1dd26d7cbf669865275d973963a2fd9801a3872177d67ab56c6aa3a983fcbfc3528c7279ad83
|
@@ -25,7 +25,7 @@ Feature: Destination Services Thanks
|
|
25
25
|
@br
|
26
26
|
Examples:
|
27
27
|
|country|tour_tracking_id|ticket_tracking_id|
|
28
|
-
|BR|HB_ORL_CIRQUEOFFE,HB_ORL_LEGOFLORID,HB_ORL_BUSCHROW,HB_NYC_NYCITYPASS,HB_ORL_MCOMDVLTMS,HB_LAX_UNIVERSTUD,HB_TPA_BUSCHROW,PAM_CUN_1221,PAM_BUE_368,PAM_NYC_259,PAM_GR3_163,
|
28
|
+
|BR|HB_ORL_CIRQUEOFFE,HB_ORL_LEGOFLORID,HB_ORL_BUSCHROW,HB_NYC_NYCITYPASS,HB_ORL_MCOMDVLTMS,HB_LAX_UNIVERSTUD,HB_TPA_BUSCHROW,PAM_CUN_1221,PAM_BUE_368,PAM_NYC_259,PAM_GR3_163,GL_SCL_4978,GL_ORL_2246|DY_ORL,UN_ORL|
|
29
29
|
|
30
30
|
@ar
|
31
31
|
Examples:
|
data/features/results.feature
CHANGED
@@ -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-UOW' => BOT_UOW)
|
23
|
+
|
22
24
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
23
25
|
|
24
26
|
end
|
@@ -61,6 +63,7 @@ When(/^I fill the detail information for tickets$/) do
|
|
61
63
|
end
|
62
64
|
|
63
65
|
When(/^I proceed to tour checkout$/) do
|
66
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
64
67
|
|
65
68
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
66
69
|
|
@@ -77,6 +80,7 @@ When(/^I proceed to disney checkout$/) do
|
|
77
80
|
end
|
78
81
|
|
79
82
|
When(/^I proceed to universal checkout$/) do
|
83
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
80
84
|
|
81
85
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
82
86
|
|
@@ -85,6 +89,7 @@ When(/^I proceed to universal checkout$/) do
|
|
85
89
|
end
|
86
90
|
|
87
91
|
Then(/^I should see the checkout page correctly$/) do
|
92
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
88
93
|
|
89
94
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
90
95
|
|
@@ -101,6 +106,8 @@ Then(/^I should see the checkout page correctly$/) do
|
|
101
106
|
|
102
107
|
# @browser.em(:id,'robot-price-per-passenger').present?.should be_true AGREGAR EN VALIDACIONES PARTICULARES DE TOURS
|
103
108
|
|
109
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
110
|
+
|
104
111
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
105
112
|
|
106
113
|
@browser.em(:id,'robot-total-price').present?.should be_true
|
@@ -32,6 +32,7 @@ When(/^I click on the detail button of the corresponding "(.*)"$/) do | tracking
|
|
32
32
|
end
|
33
33
|
|
34
34
|
When(/^I click on the detail button for cart tour$/) do
|
35
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
35
36
|
|
36
37
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
37
38
|
|
@@ -41,6 +42,7 @@ end
|
|
41
42
|
|
42
43
|
|
43
44
|
When(/^I click on the detail button for cart ticket$/) do
|
45
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
44
46
|
|
45
47
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
46
48
|
|
@@ -9,9 +9,9 @@ end
|
|
9
9
|
|
10
10
|
Then(/^I should see the insurance home correctly$/) do
|
11
11
|
|
12
|
-
DestinationServicesGUI.set_cookie(
|
12
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
13
13
|
|
14
|
-
|
14
|
+
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
15
15
|
|
16
16
|
@browser.div(:class, 'ux-destination-services-detail-picture').wait_until_present(60)
|
17
17
|
|
@@ -22,6 +22,7 @@ Then(/^I should see the insurance home correctly$/) do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
When(/^I proceed to checkout from the insurance home$/) do
|
25
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
25
26
|
|
26
27
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
27
28
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
Given(/^I perform a search in "(.*)" with "(.*)" from seo URL$/) do | country, trackingId |
|
2
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
2
3
|
|
3
4
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
4
5
|
|
@@ -74,6 +75,8 @@ end
|
|
74
75
|
|
75
76
|
Given(/^I perform a search in "(.*)" with "(.*)" from seo URL for tour cart$/) do | country, tracking_ids |
|
76
77
|
|
78
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
79
|
+
|
77
80
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
78
81
|
|
79
82
|
DestinationServicesGUI::Search.set_country(country)
|
@@ -86,6 +89,8 @@ Given(/^I perform a search in "(.*)" with "(.*)" from seo URL for tour cart$/) d
|
|
86
89
|
|
87
90
|
DestinationServicesGUI::Search.perform_search_for_tracking_id(@tour_tracking_id)
|
88
91
|
|
92
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
93
|
+
|
89
94
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
90
95
|
|
91
96
|
DestinationServicesGUI::Results.wait_for_results
|
@@ -104,6 +109,8 @@ end
|
|
104
109
|
|
105
110
|
Given(/^I perform a search in "(.*)" with "(.*)" from seo URL for ticket cart$/) do | country, tracking_ids |
|
106
111
|
|
112
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
113
|
+
|
107
114
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
108
115
|
|
109
116
|
DestinationServicesGUI::Search.set_country(country)
|
@@ -45,7 +45,6 @@ Then(/^I verify that the reservation was made on Fenix for "(.*)" and "(.*)"$/)
|
|
45
45
|
crm_id = @browser.ul(:class, 'ds-checkout-thanks-resume-item-list').li.span.text.split(': ').last
|
46
46
|
|
47
47
|
if BETA
|
48
|
-
binding.pry
|
49
48
|
transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}", :headers =>{'X-Version-Override' => BETA_COOKIES})
|
50
49
|
else
|
51
50
|
transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}")
|
@@ -67,6 +66,7 @@ When(/^I fill the particular information for tickets$/) do
|
|
67
66
|
end
|
68
67
|
|
69
68
|
When(/^I fill the risk information$/) do
|
69
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
70
70
|
|
71
71
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
72
72
|
|
data/features/support/env.rb
CHANGED
@@ -54,7 +54,7 @@ puts "BETA? ==> #{BETA}"
|
|
54
54
|
|
55
55
|
BETA_FRONT = params['beta_front']
|
56
56
|
BETA_COOKIES = 'assistance-flow=beta|ss-ds-adv=ss-ds-b|ss-ds-static=ss-ds-static-b|ss-login=ss-login-beta|ds-fnx-java=ds-fnx-b-java|ss-ds=ss-ds-b|ds-shopping=beta|ds-chas=beta|ds-checkout=beta|ds-bkr=beta|ds-sm=beta|ds-dbs=beta|ds-bo=beta|tickets-resources=beta|activities=beta|ds-cassandra=beta|activities-summaries=beta|home-front=beta|ds-pam=beta|tickets-resources=beta|tickets-disney=beta|tickets-universal=beta'
|
57
|
-
#BETA_COOKIES = 'ds-
|
57
|
+
#BETA_COOKIES = 'ds-dbs=beta'
|
58
58
|
DRY_RUN = params['dry_run'] || true
|
59
59
|
MAX_RETRIES = params['max_retries'] || 3
|
60
60
|
# TRACKING_ID = params['environment']['trackingId']
|
@@ -68,9 +68,9 @@ client.timeout = 3000
|
|
68
68
|
process_clean = Henry::ProcessCleaner.new(:zombies => ["#{BROWSER}"])
|
69
69
|
process_clean.clean
|
70
70
|
|
71
|
-
|
71
|
+
system "ps aux | grep chrome | awk '{ print $2 }' | xargs -I {} kill -9 {}"
|
72
72
|
|
73
|
-
|
73
|
+
sleep 3
|
74
74
|
|
75
75
|
# system "ps aux | grep firefox | awk '{ print $2 }' | xargs -I {} kill -9 {}"
|
76
76
|
|
data/features/thanks.feature
CHANGED
data/lib/ds/version.rb
CHANGED
@@ -25,12 +25,16 @@ module Results
|
|
25
25
|
|
26
26
|
clusters = []
|
27
27
|
|
28
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
29
|
+
|
28
30
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
29
31
|
|
30
32
|
browser.refresh if BETA
|
31
33
|
|
32
34
|
wait_for_results
|
33
35
|
|
36
|
+
DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
|
37
|
+
|
34
38
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
35
39
|
|
36
40
|
while clusters.empty? and !categories.empty?
|
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.11
|
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-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|