ds-gui-automation 0.2.2 → 0.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d556bb2f4843953ccc62e798abc38340001af26b
|
4
|
+
data.tar.gz: 37ab30cb8c7d5369b381dce69d8073035bd66381
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 816a2aa858b51b7101d2039d2d212349f4d5b9cd39b453349f8d290c93d616c5dd86df71f240c1106fec263eea07b8f071766daf8919e6948a935f65a91ae5ee
|
7
|
+
data.tar.gz: 8d230d3fd045c3299ccd122260c1cf65a687f6a49350b1cc3474a2c4092ce88e99ed8453f432b87ab62f8c5ad7c54bde8f0fa72c2a9ba26b1c391b37b857c034
|
@@ -86,10 +86,21 @@ Then(/^I should see the checkout page correctly$/) do
|
|
86
86
|
|
87
87
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
88
88
|
|
89
|
+
DestinationServicesGUI::Checkout.wait_for_modal
|
90
|
+
|
91
|
+
sleep 5
|
92
|
+
|
93
|
+
if @browser.url.include?('pre-checkout')
|
94
|
+
@browser.div(:class,'ux-sticky-pricebox').a(:class,'ux-flat-button ux-red ux-medium').wait_until_present(120)
|
95
|
+
@browser.div(:class,'ux-sticky-pricebox').a(:class,'ux-flat-button ux-red ux-medium').span(:class,'ng-binding').click
|
96
|
+
end
|
97
|
+
|
89
98
|
DestinationServicesGUI::Checkout.wait_for_checkout
|
90
99
|
|
91
100
|
# @browser.em(:id,'robot-price-per-passenger').present?.should be_true AGREGAR EN VALIDACIONES PARTICULARES DE TOURS
|
92
101
|
|
102
|
+
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
|
103
|
+
|
93
104
|
@browser.em(:id,'robot-total-price').present?.should be_true
|
94
105
|
|
95
106
|
@browser.text_field(:id, 'traveler-first-name-1').present?.should be_true
|
@@ -28,9 +28,9 @@ When(/^I proceed to thanks$/) do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
Then(/^I should see the thanks page correctly$/) do
|
31
|
-
@browser.p(:class,'
|
31
|
+
@browser.p(:class,'ds-checkout-thanks-reservation-number').present?.should be_true
|
32
32
|
|
33
|
-
crm_id = @browser.p(:class,'
|
33
|
+
crm_id = @browser.p(:class,'ds-checkout-thanks-reservation-number').text.split(': ').last
|
34
34
|
|
35
35
|
crm_id.empty?.should be_false
|
36
36
|
|
@@ -42,7 +42,7 @@ Then(/^I verify that the reservation was made on Fenix for "(.*)" and "(.*)"$/)
|
|
42
42
|
|
43
43
|
sleep 10
|
44
44
|
|
45
|
-
crm_id = @browser.p(:class,'
|
45
|
+
crm_id = @browser.p(:class,'ds-checkout-thanks-reservation-number').text.split(': ').last
|
46
46
|
|
47
47
|
if BETA
|
48
48
|
transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}", :headers =>{'X-Version-Override' => BETA_COOKIES})
|
data/features/support/env.rb
CHANGED
@@ -68,11 +68,11 @@ 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
|
-
sleep 3
|
73
|
+
# sleep 3
|
74
74
|
|
75
|
-
system "ps aux | grep firefox | awk '{ print $2 }' | xargs -I {} kill -9 {}"
|
75
|
+
# system "ps aux | grep firefox | awk '{ print $2 }' | xargs -I {} kill -9 {}"
|
76
76
|
|
77
77
|
browser_outside = Watir::Browser.new BROWSER.to_sym, :http_client => client
|
78
78
|
browser_outside.cookies.clear
|
@@ -100,7 +100,7 @@ Before do | scenario |
|
|
100
100
|
|
101
101
|
DestinationServicesGUI.set_browser(@browser)
|
102
102
|
|
103
|
-
|
103
|
+
DestinationServicesGUI::Search.go_home
|
104
104
|
|
105
105
|
if BETA
|
106
106
|
DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES})
|
data/features/thanks.feature
CHANGED
data/lib/ds/version.rb
CHANGED
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.3
|
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-06-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|