ds-gui-automation 0.2.33 → 0.2.34

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: 7555175e958590919c1e7457fafff5191cb82c45
4
- data.tar.gz: 3d9dd55685060885b81b2c43c8d843684e4396fb
3
+ metadata.gz: aaeb3dc93e12bb2b819ec90f8f17a53eff8c4d88
4
+ data.tar.gz: 25da62301af7bb17ba6cac7bbe0fcc9960737587
5
5
  SHA512:
6
- metadata.gz: 0fd2445587cbd74cfa8c41b69bb1ab1f39d002a392222c580e700397260210a3b5460c9dfce792414db87f17c2fe3164736f4aae63b1d45ef03490b1c534d80b
7
- data.tar.gz: 7d24ee61e51c5a6b36fdd9dd48623151f24721be99c9c8da67029e64d0d82b99ceb0cbc78fa0be0ea10b85b165bc4b9a1446c7da1225daeec38c4b27d1a28257
6
+ metadata.gz: 85d5fa69f926664e264cc5e023b07cee6a362d085d7caeb92f5825c89266e4b3c7eaaeb182c71046fe6268fd5004bb1ea3e511c44facee0b5828a0c9e854a064
7
+ data.tar.gz: cc6a503bac202a5ddd4d3461e672a248e8d4a066e0d04a63cf9ff0c974892fe82aef80dfc178d056e820c15c9e0b930de3101d7dc56947318eb6600940c49c6f
@@ -23,7 +23,7 @@ When(/^I fill the detail information$/) do
23
23
 
24
24
  @detail_price = @browser.span(:class,'ux-common-price').text.split(' ')[1]
25
25
 
26
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
26
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
27
27
 
28
28
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
29
29
 
@@ -67,7 +67,7 @@ When(/^I fill the detail information for tickets$/) do
67
67
  end
68
68
 
69
69
  When(/^I proceed to tour checkout$/) do
70
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
70
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
71
71
 
72
72
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
73
73
 
@@ -84,7 +84,7 @@ When(/^I proceed to disney checkout$/) do
84
84
  end
85
85
 
86
86
  When(/^I proceed to universal checkout$/) do
87
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
87
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
88
88
 
89
89
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
90
90
 
@@ -93,7 +93,7 @@ When(/^I proceed to universal checkout$/) do
93
93
  end
94
94
 
95
95
  Then(/^I should see the checkout page correctly$/) do
96
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
96
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
97
97
 
98
98
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
99
99
 
@@ -102,15 +102,15 @@ Then(/^I should see the checkout page correctly$/) do
102
102
  sleep 5
103
103
 
104
104
  if @browser.url.include?('pre-checkout')
105
- @browser.a(:class,'eva-button-primary-medium').wait_until_present(120)
106
- @browser.a(:class,'eva-button-primary-medium').click
105
+ @browser.span(:class,'eva-button-primary-large').wait_until_present(120)
106
+ @browser.span(:class,'eva-button-primary-large').click
107
107
  end
108
108
 
109
109
  DestinationServicesGUI::Checkout.wait_for_checkout
110
110
 
111
111
  # @browser.em(:id,'robot-price-per-passenger').present?.should be_true AGREGAR EN VALIDACIONES PARTICULARES DE TOURS
112
112
 
113
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
113
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
114
114
 
115
115
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
116
116
 
@@ -43,7 +43,7 @@ When(/^I click on the detail button of the corresponding "(.*)"$/) do | tracking
43
43
  end
44
44
 
45
45
  When(/^I click on the detail button for cart tour$/) do
46
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
46
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
47
47
 
48
48
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
49
49
 
@@ -61,7 +61,7 @@ end
61
61
 
62
62
 
63
63
  When(/^I click on the detail button for cart ticket$/) do
64
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
64
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
65
65
 
66
66
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
67
67
 
@@ -9,7 +9,7 @@ end
9
9
 
10
10
  Then(/^I should see the insurance home correctly$/) do
11
11
 
12
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
12
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
13
13
 
14
14
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
15
15
 
@@ -22,7 +22,7 @@ Then(/^I should see the insurance home correctly$/) do
22
22
  end
23
23
 
24
24
  When(/^I proceed to checkout from the insurance home$/) do
25
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
25
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
26
26
 
27
27
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
28
28
 
@@ -1,25 +1,31 @@
1
1
  Given(/^I perform a search in "(.*)" with "(.*)" from seo URL$/) do | country, trackingId |
2
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
2
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
3
3
 
4
- DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
4
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES, 'X-UOW-CUSTOM' => BOT_UOW}) if BETA
5
5
 
6
6
  DestinationServicesGUI::Search.set_country(country)
7
7
 
8
- DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
8
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
9
+
10
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES, 'X-UOW-CUSTOM' => BOT_UOW}) if BETA
9
11
 
10
12
  DestinationServicesGUI::Search.perform_search_for_tracking_id(trackingId)
11
13
 
12
- DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
14
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
15
+
16
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES, 'X-UOW-CUSTOM' => BOT_UOW}) if BETA
13
17
 
14
18
  DestinationServicesGUI::Results.wait_for_results
15
19
 
16
- DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
20
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
21
+
22
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES, 'X-UOW-CUSTOM' => BOT_UOW}) if BETA
17
23
 
18
24
  puts @browser.url
19
25
 
20
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
26
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
21
27
 
22
- DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
28
+ DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES, 'X-UOW-CUSTOM' => BOT_UOW}) if BETA
23
29
 
24
30
  # DestinationServicesGUI::Results.filter_by_product_type(PRODUCT_TYPE)
25
31
 
@@ -84,7 +90,7 @@ end
84
90
 
85
91
  Given(/^I perform a search in "(.*)" with "(.*)" from seo URL for tour cart$/) do | country, tracking_ids |
86
92
 
87
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
93
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
88
94
 
89
95
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
90
96
 
@@ -98,7 +104,7 @@ Given(/^I perform a search in "(.*)" with "(.*)" from seo URL for tour cart$/) d
98
104
 
99
105
  DestinationServicesGUI::Search.perform_search_for_tracking_id(@tour_tracking_id)
100
106
 
101
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
107
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
102
108
 
103
109
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
104
110
 
@@ -108,7 +114,7 @@ Given(/^I perform a search in "(.*)" with "(.*)" from seo URL for tour cart$/) d
108
114
 
109
115
  puts @browser.url
110
116
 
111
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
117
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
112
118
 
113
119
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
114
120
 
@@ -118,7 +124,7 @@ end
118
124
 
119
125
  Given(/^I perform a search in "(.*)" with "(.*)" from seo URL for ticket cart$/) do | country, tracking_ids |
120
126
 
121
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
127
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
122
128
 
123
129
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
124
130
 
@@ -140,7 +146,7 @@ Given(/^I perform a search in "(.*)" with "(.*)" from seo URL for ticket cart$/)
140
146
 
141
147
  puts @browser.url
142
148
 
143
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
149
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
144
150
 
145
151
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
146
152
 
@@ -66,7 +66,7 @@ When(/^I fill the particular information for tickets$/) do
66
66
  end
67
67
 
68
68
  When(/^I fill the risk information$/) do
69
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
69
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
70
70
 
71
71
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
72
72
 
@@ -71,11 +71,11 @@ client.timeout = 3000
71
71
  process_clean = Henry::ProcessCleaner.new(:zombies => ["#{BROWSER}"])
72
72
  process_clean.clean
73
73
 
74
- system "ps aux | grep chrome | awk '{ print $2 }' | xargs -I {} kill -9 {}"
74
+ # system "ps aux | grep chrome | awk '{ print $2 }' | xargs -I {} kill -9 {}"
75
75
 
76
- sleep 3
76
+ # sleep 3
77
77
 
78
- system "ps aux | grep firefox | awk '{ print $2 }' | xargs -I {} kill -9 {}"
78
+ # system "ps aux | grep firefox | awk '{ print $2 }' | xargs -I {} kill -9 {}"
79
79
 
80
80
  browser_outside = Watir::Browser.new BROWSER.to_sym, :http_client => client, switches: ["--user-agent=#{user_agent}"]
81
81
  browser_outside.cookies.clear
data/lib/ds/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DestinationServicesGUI
2
- VERSION = "0.2.33"
2
+ VERSION = "0.2.34"
3
3
  end
@@ -25,7 +25,7 @@ module Results
25
25
 
26
26
  clusters = []
27
27
 
28
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
28
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
29
29
 
30
30
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
31
31
 
@@ -33,7 +33,7 @@ module Results
33
33
 
34
34
  wait_for_results
35
35
 
36
- DestinationServicesGUI.set_cookie('X-UOW' => BOT_UOW)
36
+ DestinationServicesGUI.set_cookie('X-UOW-CUSTOM' => BOT_UOW)
37
37
 
38
38
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
39
39
 
@@ -295,5 +295,9 @@ module Results
295
295
 
296
296
  end
297
297
 
298
+ def get_transfer_results
299
+
300
+ end
301
+
298
302
 
299
303
  end
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.33
4
+ version: 0.2.34
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-12-11 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container