ds-gui-automation 0.2.3 → 0.2.4

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: d556bb2f4843953ccc62e798abc38340001af26b
4
- data.tar.gz: 37ab30cb8c7d5369b381dce69d8073035bd66381
3
+ metadata.gz: c6b5d189935764b111089e76893f6c17b4b53448
4
+ data.tar.gz: 4494ad278bd19c528a384e571c6cda4142d7082c
5
5
  SHA512:
6
- metadata.gz: 816a2aa858b51b7101d2039d2d212349f4d5b9cd39b453349f8d290c93d616c5dd86df71f240c1106fec263eea07b8f071766daf8919e6948a935f65a91ae5ee
7
- data.tar.gz: 8d230d3fd045c3299ccd122260c1cf65a687f6a49350b1cc3474a2c4092ce88e99ed8453f432b87ab62f8c5ad7c54bde8f0fa72c2a9ba26b1c391b37b857c034
6
+ metadata.gz: a13afaf742c6df2c44f35f61ca246bff0fb8f8293a3b67a9e4cb08a5649a17d34417aa836e2fb89423b132c9f3a408d9c3e80b30d9f839269a64708657cb4194
7
+ data.tar.gz: 50f6ef0ffc1fa37682d977b37cccfb5a1198e2dfd148e682d3cb9c5c423e8493e12c0ae034b1176b8ec3916b4546b58855f33e22e029eeca5ddb10a38c17eee7
@@ -185,10 +185,9 @@ When(/^I proceed to checkout$/) do
185
185
 
186
186
  sleep 10
187
187
 
188
- (@browser.div(:class, 'ux-common-grid-col12').divs(:class, 'ux-cluster-content').size == 2).should be_true
188
+ (@browser.div(:class, 'ux-destination-services-clusters-resume').divs(:class, 'ux-cluster').size == 2).should be_true
189
189
 
190
190
  @browser.a(:class, 'ux-flat-button').click
191
-
192
191
  else
193
192
  @browser.span(:class, 'ux-my-tickets-arrow-border').wait_until_present
194
193
 
@@ -153,7 +153,7 @@ Then(/^I verify that the first item has been added to the cart$/) do
153
153
 
154
154
  sleep 10
155
155
 
156
- (@browser.div(:class, 'ux-common-grid-col12').divs(:class, 'ux-cluster-content').size == 1).should be_true
156
+ (@browser.div(:class, 'ux-destination-services-clusters-resume').divs(:class, 'ux-cluster').size == 1).should be_true
157
157
  else
158
158
  @browser.span(:class, 'ux-my-tickets-arrow-border').wait_until_present
159
159
 
@@ -103,13 +103,15 @@ end
103
103
 
104
104
  Then(/^I verify that the reservation was made on Fenix for cart$/) do
105
105
 
106
- sleep 10
106
+ sleep 5
107
+
108
+ crm_ids_container = @browser.ul(:class,'ds-checkout-thanks-resume-item-list')
107
109
 
108
- @browser.ps(:class,'ux-common-thanks-ticket-number').each do | booking |
110
+ crm_ids_container.lis.each do | booking |
109
111
 
110
- crm_id = booking.span(:class, 'destination-services-cart-ticket-id').text.split(':').last.strip
112
+ crm_id = booking.span.text.split(':').last.strip
111
113
 
112
- booking_name = booking.span(:class, 'destination-services-cart-ticket-item-name').text
114
+ booking_name = booking.text
113
115
 
114
116
  (booking_name.include?('Walt Disney World') || booking_name.include?('Universal Orlando')) ? type = 'tickets' : type = 'tours'
115
117
 
@@ -133,14 +135,13 @@ end
133
135
 
134
136
  Then(/^I should see the thanks page correctly for cart$/) do
135
137
 
136
- @browser.p(:class,'ux-common-thanks-ticket-number').present?.should be_true
138
+ crm_ids_container = @browser.ul(:class,'ds-checkout-thanks-resume-item-list')
137
139
 
138
- @browser.ps(:class,'ux-common-thanks-ticket-number').each do | booking |
139
-
140
- crm_id = booking.span(:class, 'destination-services-cart-ticket-id').text.split(':').last.strip
140
+ crm_ids_container.present?.should be_true
141
141
 
142
+ crm_ids_container.lis.each do | li |
143
+ crm_id = li.text.split(':').last.strip
142
144
  crm_id.empty?.should be_false
143
-
144
145
  end
145
146
 
146
147
  end
data/lib/ds/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DestinationServicesGUI
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -110,7 +110,7 @@ module Commons
110
110
 
111
111
  timeout = 0
112
112
 
113
- while browser.div(:class, 'modal').visible? and timeout < 40
113
+ while browser.div(:class, 'modal').present? and timeout < 40
114
114
  sleep 3
115
115
  timeout += 3
116
116
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ds-gui-automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Santiago Ochoa