ds-gui-automation 0.2.2 → 0.2.3

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: bfc0371230215e48128e2971b3fd53a9e2ff0de4
4
- data.tar.gz: fc8da3d3b16dd755f15a1f0ce14ecde3bf753cec
3
+ metadata.gz: d556bb2f4843953ccc62e798abc38340001af26b
4
+ data.tar.gz: 37ab30cb8c7d5369b381dce69d8073035bd66381
5
5
  SHA512:
6
- metadata.gz: 9ddabd3206e3d58344a1ea2a5a1c8618782d37c8431dcadbabfbd5242d6f2b196e6eb5af5de558522e9b65f08f565fab679024e917d1322fedbc7b3742091c41
7
- data.tar.gz: 5bfae8398a686469d8d2e0619af82522081f54437929644f5287eddf3063465d042938b5cd7470e7cc7ec3a21d173f8b4c109d664f7150cc0fa2e15ee495063a
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,'ux-common-thanks-ticket-number').present?.should be_true
31
+ @browser.p(:class,'ds-checkout-thanks-reservation-number').present?.should be_true
32
32
 
33
- crm_id = @browser.p(:class,'ux-common-thanks-ticket-number').text.split(': ').last
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,'ux-common-thanks-ticket-number').text.split(': ').last
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})
@@ -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
- #DestinationServicesGUI::Search.go_home
103
+ DestinationServicesGUI::Search.go_home
104
104
 
105
105
  if BETA
106
106
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES})
@@ -20,7 +20,7 @@ Feature: Destination Services Thanks
20
20
  @hb
21
21
  Examples:
22
22
  |country|tracking_id|type|
23
- |BR|HB_ORL_CIRQUEOFFE|tours|
23
+ #|BR|HB_ORL_CIRQUEOFFE|tours|
24
24
  |BR|HB_ORL_BMGMCO|tours|
25
25
  |BR|HB_ORL_MCORIPLEY|tours|
26
26
  |BR|HB_ORL_FDTKENNEDY|tours|
data/lib/ds/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DestinationServicesGUI
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -9,6 +9,8 @@ module Results
9
9
  ## Se selecciona el tipo de vista
10
10
  DestinationServicesGUI.set_cookie({'X-Version-Override' => BETA_COOKIES}) if BETA
11
11
 
12
+ browser.refresh
13
+
12
14
  wait_for_results
13
15
 
14
16
  cluster_view = browser.span(:class, 'ux-common-icon-cluster-view')
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.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-18 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container