ds-gui-automation 0.2.48 → 0.2.49
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/step_definitions/thanks_steps.rb +25 -1
- data/features/thanks.feature +1 -1
- data/lib/ds/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b9cb7c8d86cadfbd552d78d308beffdea1a82bd
|
|
4
|
+
data.tar.gz: 1517bd2fe5db3421490a81c56c17e7154faada82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0405f678a03b2a050c6f2595eb51e03184da06f5a75897fd6da379d237996cd1b261dd7fbd9e5fce052e09cec0b52d3fc10dcf9b0aa20851b2a6af12c147868
|
|
7
|
+
data.tar.gz: c47581032443cc872662bcd64d29f42d137387c5f79d42ac82950f1f4d37919c19463d2e26b2a0ad020935cc8bcb85cd2e9cb6e792a1d3c5c12b4d88a071e6db
|
|
@@ -47,7 +47,11 @@ Then(/^I verify that the reservation was made on Fenix for "(.*)" and "(.*)"$/)
|
|
|
47
47
|
crm_id = @browser.ul(:class, 'ds-checkout-thanks-resume-item-list').li.span.text.split(': ').last
|
|
48
48
|
|
|
49
49
|
if BETA
|
|
50
|
+
if trackingId.eql?("SW_ORL") || trackingId.eql?("BG_ORL")
|
|
51
|
+
transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/tours?transaction_id=#{crm_id}", :headers =>{'X-Version-Override' => BETA_COOKIES})
|
|
52
|
+
else
|
|
50
53
|
transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}", :headers =>{'X-Version-Override' => BETA_COOKIES})
|
|
54
|
+
end
|
|
51
55
|
elsif trackingId.eql?("SW_ORL") || trackingId.eql?("BG_ORL")
|
|
52
56
|
transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/tours?transaction_id=#{crm_id}")
|
|
53
57
|
else
|
|
@@ -56,7 +60,27 @@ Then(/^I verify that the reservation was made on Fenix for "(.*)" and "(.*)"$/)
|
|
|
56
60
|
|
|
57
61
|
if type != ('insurances' && 'transfers')
|
|
58
62
|
transaction['items'].first['extra_data']['tracking_id'].eql?(trackingId).should be_true
|
|
59
|
-
elsif type
|
|
63
|
+
elsif type == 'transfers'
|
|
64
|
+
transaction['items'].first['extra_data']['tracking_id'].include?('TF').should be_true
|
|
65
|
+
else
|
|
66
|
+
transaction['items'].first['extra_data']['tracking_id'].include?('IN').should be_true
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
Then(/^I verify that the reservation was made on Fenix for "(.*)"$/) do | type |
|
|
72
|
+
|
|
73
|
+
sleep 10
|
|
74
|
+
|
|
75
|
+
crm_id = @browser.ul(:class, 'ds-checkout-thanks-resume-item-list').li.span.text.split(': ').last
|
|
76
|
+
|
|
77
|
+
if BETA
|
|
78
|
+
transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}", :headers =>{'X-Version-Override' => BETA_COOKIES})
|
|
79
|
+
else
|
|
80
|
+
transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}")
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if type == 'transfers'
|
|
60
84
|
transaction['items'].first['extra_data']['tracking_id'].include?('TF').should be_true
|
|
61
85
|
else
|
|
62
86
|
transaction['items'].first['extra_data']['tracking_id'].include?('IN').should be_true
|
data/features/thanks.feature
CHANGED
|
@@ -146,7 +146,7 @@ Feature: Destination Services Thanks
|
|
|
146
146
|
And I proceed to thanks
|
|
147
147
|
And I fill the risk information
|
|
148
148
|
Then I should see the thanks page correctly
|
|
149
|
-
And I verify that the reservation was made on Fenix for "<type>"
|
|
149
|
+
And I verify that the reservation was made on Fenix for "<type>"
|
|
150
150
|
|
|
151
151
|
@br
|
|
152
152
|
Examples:
|
data/lib/ds/version.rb
CHANGED