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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6b5d189935764b111089e76893f6c17b4b53448
|
4
|
+
data.tar.gz: 4494ad278bd19c528a384e571c6cda4142d7082c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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-
|
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
|
106
|
+
sleep 5
|
107
|
+
|
108
|
+
crm_ids_container = @browser.ul(:class,'ds-checkout-thanks-resume-item-list')
|
107
109
|
|
108
|
-
|
110
|
+
crm_ids_container.lis.each do | booking |
|
109
111
|
|
110
|
-
crm_id = booking.span
|
112
|
+
crm_id = booking.span.text.split(':').last.strip
|
111
113
|
|
112
|
-
booking_name = booking.
|
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.
|
138
|
+
crm_ids_container = @browser.ul(:class,'ds-checkout-thanks-resume-item-list')
|
137
139
|
|
138
|
-
|
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