ds-gui-automation 0.2.12 → 0.2.13
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 +2 -2
- data/features/insurance.feature +74 -2
- data/features/results.feature +2 -2
- data/features/step_definitions/insurance_steps.rb +2 -1
- data/features/step_definitions/thanks_steps.rb +9 -0
- data/features/support/env.rb +2 -2
- data/features/thanks.feature +1 -1
- data/henry-context.yml +30 -0
- data/lib/ds/version.rb +1 -1
- data/lib/page_objects/modules/checkout.rb +24 -1
- data/lib/page_objects/modules/search.rb +5 -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: e61710f3ddaed467e14159d1c2be127d1c80c673
|
|
4
|
+
data.tar.gz: 289559517af6c0c185a5dfa3341ad73844f28fe1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c88fa6164a8935db3d0b5098eabf107ba84d2c727b939fe536210f18504a2d1739589670470d401e740b30ee25200ed2609e2b6839e539f8bd7a3acf06dcb857
|
|
7
|
+
data.tar.gz: 933fd1f6ae73738b147a2a77e664f3e76414301dc87cabad83bc85ae47cc196c20b72ba7f253a0c6f36755d736e052e573699ebbf944b26d8c76367c7ce67c69
|
|
@@ -25,12 +25,12 @@ 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,
|
|
28
|
+
|BR|HB_ORL_CIRQUEOFFE,HB_ORL_LEGOFLORID,HB_ORL_BUSCHROW,HB_ORL_MCOMDVLTMS,HB_LAX_UNIVERSTUD,HB_TPA_BUSCHROW,PAM_CUN_1221,PAM_BUE_368,PAM_NYC_259,PAM_GR3_163,GL_SCL_4978|DY_ORL,UN_ORL|
|
|
29
29
|
|
|
30
30
|
@ar
|
|
31
31
|
Examples:
|
|
32
32
|
|country|tour_tracking_id|ticket_tracking_id|
|
|
33
|
-
|AR|PAM_SLA_76,PAM_MDZ_194,PAM_SLA_73,HB_ORL_SEAWRLDROW,HB_ORL_LEGOFLORID
|
|
33
|
+
|AR|PAM_SLA_76,PAM_MDZ_194,PAM_SLA_73,HB_ORL_SEAWRLDROW,HB_ORL_LEGOFLORID|DY_ORL,UN_ORL|
|
|
34
34
|
|
|
35
35
|
@mx
|
|
36
36
|
Examples:
|
data/features/insurance.feature
CHANGED
|
@@ -31,7 +31,7 @@ Feature: Destination Services Insurance
|
|
|
31
31
|
Given I perform a search for assistance flow in "<region>" and "<country>"
|
|
32
32
|
When I proceed to insurance checkout from flow
|
|
33
33
|
Then I should see the checkout page correctly
|
|
34
|
-
When I fill the checkout information
|
|
34
|
+
When I fill the checkout information for assistance
|
|
35
35
|
And I proceed to thanks
|
|
36
36
|
And I fill the risk information
|
|
37
37
|
Then I should see the thanks page correctly
|
|
@@ -53,4 +53,76 @@ Feature: Destination Services Insurance
|
|
|
53
53
|
@others
|
|
54
54
|
Examples:
|
|
55
55
|
|country|tracking_id|type|region|
|
|
56
|
-
|AR|PAM_SLA_76|insurances|others|
|
|
56
|
+
|AR|PAM_SLA_76|insurances|others|
|
|
57
|
+
|
|
58
|
+
@br
|
|
59
|
+
@latam
|
|
60
|
+
Examples:
|
|
61
|
+
|country|tracking_id|type|region|
|
|
62
|
+
|BR|PAM_SLA_76|insurances|latam|
|
|
63
|
+
|
|
64
|
+
@br
|
|
65
|
+
@europe
|
|
66
|
+
Examples:
|
|
67
|
+
|country|tracking_id|type|region|
|
|
68
|
+
|BR|PAM_SLA_76|insurances|europe|
|
|
69
|
+
|
|
70
|
+
@br
|
|
71
|
+
@others
|
|
72
|
+
Examples:
|
|
73
|
+
|country|tracking_id|type|region|
|
|
74
|
+
|BR|PAM_SLA_76|insurances|others|
|
|
75
|
+
|
|
76
|
+
@mx
|
|
77
|
+
@latam
|
|
78
|
+
Examples:
|
|
79
|
+
|country|tracking_id|type|region|
|
|
80
|
+
|MX|PAM_SLA_76|insurances|latam|
|
|
81
|
+
|
|
82
|
+
@mx
|
|
83
|
+
@europe
|
|
84
|
+
Examples:
|
|
85
|
+
|country|tracking_id|type|region|
|
|
86
|
+
|MX|PAM_SLA_76|insurances|europe|
|
|
87
|
+
|
|
88
|
+
@mx
|
|
89
|
+
@others
|
|
90
|
+
Examples:
|
|
91
|
+
|country|tracking_id|type|region|
|
|
92
|
+
|MX|PAM_SLA_76|insurances|others|
|
|
93
|
+
|
|
94
|
+
@co
|
|
95
|
+
@latam
|
|
96
|
+
Examples:
|
|
97
|
+
|country|tracking_id|type|region|
|
|
98
|
+
|CO|PAM_SLA_76|insurances|latam|
|
|
99
|
+
|
|
100
|
+
@co
|
|
101
|
+
@europe
|
|
102
|
+
Examples:
|
|
103
|
+
|country|tracking_id|type|region|
|
|
104
|
+
|CO|PAM_SLA_76|insurances|europe|
|
|
105
|
+
|
|
106
|
+
@co
|
|
107
|
+
@others
|
|
108
|
+
Examples:
|
|
109
|
+
|country|tracking_id|type|region|
|
|
110
|
+
|CO|PAM_SLA_76|insurances|others|
|
|
111
|
+
|
|
112
|
+
@cl
|
|
113
|
+
@latam
|
|
114
|
+
Examples:
|
|
115
|
+
|country|tracking_id|type|region|
|
|
116
|
+
|CL|PAM_SLA_76|insurances|latam|
|
|
117
|
+
|
|
118
|
+
@cl
|
|
119
|
+
@europe
|
|
120
|
+
Examples:
|
|
121
|
+
|country|tracking_id|type|region|
|
|
122
|
+
|CL|PAM_SLA_76|insurances|europe|
|
|
123
|
+
|
|
124
|
+
@cl
|
|
125
|
+
@others
|
|
126
|
+
Examples:
|
|
127
|
+
|country|tracking_id|type|region|
|
|
128
|
+
|CL|PAM_SLA_76|insurances|others|
|
data/features/results.feature
CHANGED
|
@@ -17,7 +17,7 @@ Feature: Destination Services Results
|
|
|
17
17
|
Examples:
|
|
18
18
|
|country|tracking_id|type|
|
|
19
19
|
|BR|HB_ORL_CIRQUEOFFE|tours|
|
|
20
|
-
|
|
20
|
+
#|BR|HB_NYC_NYCITYPASS|tours|
|
|
21
21
|
|BR|HB_LAX_UNIVERSTUD|tours|
|
|
22
22
|
#|BR|HB_ORL_BMGMCO|tours|
|
|
23
23
|
|BR|HB_TPA_SEAWRLDROW|tours|
|
|
@@ -62,7 +62,7 @@ Feature: Destination Services Results
|
|
|
62
62
|
|AR|HB_ORL_SEAWRLDROW|tours|
|
|
63
63
|
|AR|HB_ORL_LEGOFLORID|tours|
|
|
64
64
|
|AR|HB_ORL_BUSCHROW|tours|
|
|
65
|
-
|
|
65
|
+
#|AR|HB_NYC_NYCITYPASS|tours|
|
|
66
66
|
|
|
67
67
|
@mx
|
|
68
68
|
@hb
|
|
@@ -65,5 +65,6 @@ Given(/^I perform a search for assistance flow in "(.*?)" and "(.*?)"$/) do | re
|
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
When(/^I proceed to insurance checkout from flow$/) do
|
|
68
|
-
|
|
68
|
+
|
|
69
|
+
@browser.divs(:class, 'ux-cluster-pricebox').to_a.shuffle.first.a(:class, 'ux-button').click
|
|
69
70
|
end
|
|
@@ -145,4 +145,13 @@ Then(/^I should see the thanks page correctly for cart$/) do
|
|
|
145
145
|
crm_id.empty?.should be_false
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
When(/^I fill the checkout information for assistance$/) do
|
|
151
|
+
DestinationServicesGUI::Checkout.fill_passenger_information_for_assistance
|
|
152
|
+
DestinationServicesGUI::Checkout.fill_credit_card_information
|
|
153
|
+
DestinationServicesGUI::Checkout.fill_contact_information
|
|
154
|
+
|
|
155
|
+
DestinationServicesGUI::Checkout.fill_billing_information if $SITE == 'AR'
|
|
156
|
+
|
|
148
157
|
end
|
data/features/support/env.rb
CHANGED
|
@@ -68,9 +68,9 @@ client.timeout = 3000
|
|
|
68
68
|
process_clean = Henry::ProcessCleaner.new(:zombies => ["#{BROWSER}"])
|
|
69
69
|
process_clean.clean
|
|
70
70
|
|
|
71
|
-
system "ps aux | grep chrome | awk '{ print $2 }' | xargs -I {} kill -9 {}"
|
|
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/henry-context.yml
CHANGED
|
@@ -1648,3 +1648,33 @@ tasks:
|
|
|
1648
1648
|
reports:
|
|
1649
1649
|
- format: html
|
|
1650
1650
|
name: ${DATE}_${TASK_NAME}.html
|
|
1651
|
+
|
|
1652
|
+
- name: assistance_flow_co
|
|
1653
|
+
class_name: Henry::Task::CucumberTask
|
|
1654
|
+
options:
|
|
1655
|
+
tags:
|
|
1656
|
+
- assistance_flow
|
|
1657
|
+
- co
|
|
1658
|
+
reports:
|
|
1659
|
+
- format: html
|
|
1660
|
+
name: ${DATE}_${TASK_NAME}.html
|
|
1661
|
+
|
|
1662
|
+
- name: assistance_flow_cl
|
|
1663
|
+
class_name: Henry::Task::CucumberTask
|
|
1664
|
+
options:
|
|
1665
|
+
tags:
|
|
1666
|
+
- assistance_flow
|
|
1667
|
+
- cl
|
|
1668
|
+
reports:
|
|
1669
|
+
- format: html
|
|
1670
|
+
name: ${DATE}_${TASK_NAME}.html
|
|
1671
|
+
|
|
1672
|
+
- name: assistance_flow_mx
|
|
1673
|
+
class_name: Henry::Task::CucumberTask
|
|
1674
|
+
options:
|
|
1675
|
+
tags:
|
|
1676
|
+
- assistance_flow
|
|
1677
|
+
- mx
|
|
1678
|
+
reports:
|
|
1679
|
+
- format: html
|
|
1680
|
+
name: ${DATE}_${TASK_NAME}.html
|
data/lib/ds/version.rb
CHANGED
|
@@ -190,4 +190,27 @@ module Checkout
|
|
|
190
190
|
|
|
191
191
|
end
|
|
192
192
|
|
|
193
|
-
|
|
193
|
+
def fill_passenger_information_for_assistance
|
|
194
|
+
|
|
195
|
+
pax_number = browser.divs(:class, 'ux-common-checkout-paxform').size
|
|
196
|
+
|
|
197
|
+
0.upto(pax_number - 1) do | i |
|
|
198
|
+
|
|
199
|
+
browser.text_field(:name, "dsInputDefinition.passengerDefinitions[#{i}].firstName.value").set('TEST DS')
|
|
200
|
+
|
|
201
|
+
browser.text_field(:name, "dsInputDefinition.passengerDefinitions[#{i}].lastName.value").set('BOT')
|
|
202
|
+
|
|
203
|
+
browser.send_keys(:enter)
|
|
204
|
+
|
|
205
|
+
sleep 2
|
|
206
|
+
|
|
207
|
+
dni = Time.now.to_i.to_s.slice(2,10)
|
|
208
|
+
|
|
209
|
+
browser.text_field(:name, "dsInputDefinition.passengerDefinitions[#{i}].documentDefinition.number.value").set("#{dni}") if browser.text_field(:name, "dsInputDefinition.passengerDefinitions[#{i}].documentDefinition.number.value").present?
|
|
210
|
+
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
end
|
|
216
|
+
|
|
@@ -77,11 +77,15 @@ module Search
|
|
|
77
77
|
|
|
78
78
|
# http://www.decolar.com/assistance/#!/search/#{region}/#{from_date}/#{to_date}/2
|
|
79
79
|
|
|
80
|
+
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
|
81
|
+
|
|
82
|
+
browser.refresh
|
|
83
|
+
|
|
80
84
|
url = $DOMAIN + '/assistance/#!' + "/search/#{region}/#{from_date}/#{to_date}/2"
|
|
81
85
|
|
|
82
86
|
browser.goto(url)
|
|
83
87
|
|
|
84
|
-
|
|
88
|
+
browser.div(:class, 'ux-common-grid-row ux-assistance-landing-filters').wait_until_present(60)
|
|
85
89
|
|
|
86
90
|
end
|
|
87
91
|
|
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.13
|
|
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-08-
|
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: henry-container
|