ds-gui-automation 0.1.73 → 0.1.74

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8b00f0283883969176cb183ae53174b51583f25
4
- data.tar.gz: 72d1273b84662851953f3f53f8fb837be86f814a
3
+ metadata.gz: 9ebbe9842fe2eef8fd00be0c9823bc6e9a652911
4
+ data.tar.gz: f1cdd5455e2b2c28394d29c4bb7883f6824c909f
5
5
  SHA512:
6
- metadata.gz: 4fde88ae9c3d8bf5cde2b742f8d2f7dfc3e2b10c367f8b915eafbdbe38086d4a711e87b7140a51edb8ce466502c56f9e99b7bad4a71309f8fff577f988d0f502
7
- data.tar.gz: 0ac9760ac9186766f2b4e9ddf271ede7bdacb17eb99a90b39d3d0fcb5858e61b5f4d968f460b1020d8b3ae570942cca36534b30d264c9b1977cb9b73bb7c30f1
6
+ metadata.gz: 0dc939e1e17767a763551efd54d0dcdbf562e55cd76989ef64fbee10bca952ebaa4f140b5b19eb729c26687f8762432a1fd3fd1b25f4f7dd1140e45224d26ef5
7
+ data.tar.gz: 3ec121e99a99181ef6ed3f9849cf6f77f0b3867f518b1a3c76519cf20ab03ae83121539dba84957f91f4f25f8796bf28e43f2665a4cf5bbf302773d280130846
@@ -62,6 +62,16 @@ Feature: Destination Services Results
62
62
  |AR|PAM_MDZ_194|tours|
63
63
  |AR|PAM_SLA_73|tours|
64
64
 
65
+ @ar
66
+ @hb
67
+ Examples:
68
+ |country|tracking_id|type|
69
+ |AR|HB_ORL_SEAWRLDROW|tours|
70
+ |AR|HB_ORL_LEGOFLORID|tours|
71
+ |AR|HB_ORL_ORLFLEXTIX|tours|
72
+ |AR|HB_ORL_BUSCHROW|tours|
73
+ |AR|HB_NYC_NYCITYPASS|tours|
74
+
65
75
  @mx
66
76
  @hb
67
77
  Examples:
@@ -205,6 +215,11 @@ Feature: Destination Services Results
205
215
  |country|tracking_id|type|
206
216
  |BR|DY_ORL|tickets|
207
217
 
218
+ @ar
219
+ Examples:
220
+ |country|tracking_id|type|
221
+ |AR|DY_ORL|tickets|
222
+
208
223
  @mx
209
224
  Examples:
210
225
  |country|tracking_id|type|
@@ -228,6 +243,11 @@ Feature: Destination Services Results
228
243
  Given I perform a search in "<country>" with "<tracking_id>" from seo URL
229
244
  Then I should see the result clusters for the specified "<tracking_id>"
230
245
 
246
+ @ar
247
+ Examples:
248
+ |country|tracking_id|type|
249
+ |AR|UN_ORL|tickets|
250
+
231
251
  @br
232
252
  Examples:
233
253
  |country|tracking_id|type|
@@ -2,8 +2,9 @@ When(/^I click on the assistance button$/) do
2
2
 
3
3
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
4
4
 
5
- @browser.li(:class, 'nibbler-header-navigation-menu-item nibbler-header-navigation-assistance').click
5
+ DestinationServicesGUI::Search.go_to_insurances_landing
6
6
 
7
+ # @browser.li(:class, 'nibbler-header-navigation-menu-item nibbler-header-navigation-assistance').click
7
8
  end
8
9
 
9
10
  Then(/^I should see the insurance home correctly$/) do
@@ -66,6 +66,16 @@ Feature: Destination Services Thanks
66
66
  |AR|PAM_MDZ_194|tours|
67
67
  |AR|PAM_SLA_73|tours|
68
68
 
69
+ @ar
70
+ @hb
71
+ Examples:
72
+ |country|tracking_id|type|
73
+ |AR|HB_ORL_SEAWRLDROW|tours|
74
+ |AR|HB_ORL_LEGOFLORID|tours|
75
+ |AR|HB_ORL_ORLFLEXTIX|tours|
76
+ |AR|HB_ORL_BUSCHROW|tours|
77
+ |AR|HB_NYC_NYCITYPASS|tours|
78
+
69
79
  @mx
70
80
  @hb
71
81
  Examples:
@@ -264,6 +274,11 @@ Feature: Destination Services Thanks
264
274
  Then I should see the thanks page correctly
265
275
  And I verify that the reservation was made on Fenix for "<type>" and "<tracking_id>"
266
276
 
277
+ @ar
278
+ Examples:
279
+ |country|tracking_id|type|
280
+ |AR|UN_ORL|tickets|
281
+
267
282
  @br
268
283
  Examples:
269
284
  |country|tracking_id|type|
data/lib/ds/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DestinationServicesGUI
2
- VERSION = "0.1.73"
2
+ VERSION = "0.1.74"
3
3
  end
@@ -19,7 +19,15 @@ module Navigation
19
19
  def go_to_activities
20
20
  date = (Time.now + 2629743).strftime('%Y-%m')
21
21
  destination = TO_CITY
22
- url = DOMAIN + "/actividades/shopping#!/search/#{destination}/#{date}/1"
22
+ url = $DOMAIN + "/actividades/shopping#!/search/#{destination}/#{date}/1"
23
+
24
+ browser.goto(url)
25
+
26
+ end
27
+
28
+ def go_to_insurances_landing
29
+
30
+ url = $DOMAIN + "/actividades/insurance"
23
31
 
24
32
  browser.goto(url)
25
33
 
@@ -7,6 +7,7 @@ module Results
7
7
  def get_results_by_tracking_id(trackingId, isModular = true)
8
8
 
9
9
  ## Se selecciona el tipo de vista
10
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
10
11
 
11
12
  cluster_view = browser.span(:class, 'ux-common-icon-cluster-view')
12
13
 
@@ -14,10 +15,20 @@ module Results
14
15
 
15
16
  isModular ? modular_view.click : cluster_view.click
16
17
 
18
+ wait_for_modal
19
+
17
20
  categories = get_tour_category_texts.reverse
18
21
 
19
22
  clusters = []
20
23
 
24
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
25
+
26
+ browser.refresh
27
+
28
+ wait_for_results
29
+
30
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
31
+
21
32
  while clusters.empty? and !categories.empty?
22
33
 
23
34
  category = categories.pop
@@ -109,7 +120,7 @@ module Results
109
120
 
110
121
  end
111
122
 
112
- def get_provider_results(providerCode, isModular = true)
123
+ def get_provider_results(providerCode, isModular = true) ## Trae los resultados que correspondan al proveedor (providerCode)
113
124
 
114
125
  if isModular
115
126
  clusters = browser.divs(:class, 'ux-destination-services-cluster-grid').to_a
@@ -126,7 +137,7 @@ module Results
126
137
  def get_clusters_by_tracking_id(trackingId, isModular = true)
127
138
 
128
139
  if isModular
129
- clusters = browser.divs(:class, 'ux-destination-services-cluster-grid').to_a
140
+ clusters = browser.divs(:class, 'ux-common-grid-col4 ux-common-grid-col4-large ux-common-grid-col4-medium ux-common-grid-col12-small ux-common-grid-first-small ng-scope').to_a
130
141
  clusters = clusters.select { | cluster | get_tracking_id(cluster).eql?(trackingId) }
131
142
  else
132
143
  clusters = browser.divs(:class, 'ux-destination-services-cluster').to_a
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.73
4
+ version: 0.1.74
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-04-01 00:00:00.000000000 Z
11
+ date: 2015-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container