ds-gui-automation 0.2.24 → 0.2.25

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: a19711f81ee5c88ca4bef5bc049dcb6eb43cb14d
4
- data.tar.gz: 0649a8b9e40eed5110926df65567aee4806b2e53
3
+ metadata.gz: e4d048ccbca32dafbbf44fc18d05a6540c32d659
4
+ data.tar.gz: e2f924e6196b5aaa2082645fdabe94a1b84697f9
5
5
  SHA512:
6
- metadata.gz: 9577256db6aefc1c41a43c1ff5902749a9446db490bb0fd8678510a792f2897b81a35bacb1320d184bf53842053a187e2e25d3139795246658f109dbb81a2e35
7
- data.tar.gz: b920093e9e723d0f6edcf2bf4de427c12ca48c5315eeba50a9329c8101e9342dd60818a43784ec37c15ba78dfc41c74af8cdf60f2e0498a3c1a9714522af5bd7
6
+ metadata.gz: ab853763d92a6b4f3b00df5b017846c4590d781e72ba5b3b86485add6b6285088c5bf7e0a41d9500e3a460ce1cb335e108e6b2b1609084f3cf64cc829ba5fa8d
7
+ data.tar.gz: 7e833b91969a152906935cc4284da5a3fbb2b3d21af96fa69e23ee0ac29812facb3199015b15b830acd29b51f3708f7fe23c5e118b2c129452b083af1e1b096c
@@ -20,7 +20,7 @@ end
20
20
 
21
21
  When(/^I click on the detail button$/) do
22
22
 
23
- DestinationServicesGUI::Results.get_results_by_tracking_id(PROVIDER_ID, IS_MODULAR).first.click
23
+ DestinationServicesGUI::Results.get_results_by_tracking_id(PROVIDER_ID, IS_MODULAR).first.a(:class,'eva-button-primary-medium').click
24
24
  end
25
25
 
26
26
  When(/^I click on the detail button of the corresponding "(.*)"$/) do | tracking_id |
@@ -31,10 +31,10 @@ When(/^I click on the detail button of the corresponding "(.*)"$/) do | tracking
31
31
 
32
32
  if !new_design
33
33
  puts 'Running with old design'
34
- DestinationServicesGUI::Results.get_results_by_tracking_id(tracking_id, IS_MODULAR).first.click
34
+ DestinationServicesGUI::Results.get_results_by_tracking_id(tracking_id, IS_MODULAR).first.a(:class,'eva-button-primary-medium').click
35
35
  else
36
36
  puts 'Running with new design'
37
- DestinationServicesGUI::Results.get_results_by_tracking_id_for_new_design(tracking_id,new_design).first.click
37
+ DestinationServicesGUI::Results.get_results_by_tracking_id_for_new_design(tracking_id,new_design).first.a(:class,'eva-button-primary-medium').click
38
38
  end
39
39
 
40
40
  end
@@ -48,10 +48,10 @@ When(/^I click on the detail button for cart tour$/) do
48
48
 
49
49
  if !new_design
50
50
  puts 'Running with old design'
51
- DestinationServicesGUI::Results.get_results_by_tracking_id(@tour_tracking_id, IS_MODULAR).first.click
51
+ DestinationServicesGUI::Results.get_results_by_tracking_id(@tour_tracking_id, IS_MODULAR).first.a(:class,'eva-button-primary-medium').click
52
52
  else
53
53
  puts 'Running with new design'
54
- DestinationServicesGUI::Results.get_results_by_tracking_id_for_new_design(@tour_tracking_id,new_design).first.click
54
+ DestinationServicesGUI::Results.get_results_by_tracking_id_for_new_design(@tour_tracking_id,new_design).first.a(:class,'eva-button-primary-medium').click
55
55
  end
56
56
 
57
57
  end
@@ -66,10 +66,10 @@ When(/^I click on the detail button for cart ticket$/) do
66
66
 
67
67
  if !new_design
68
68
  puts 'Running with old design'
69
- DestinationServicesGUI::Results.get_results_by_tracking_id(@ticket_tracking_id, IS_MODULAR).first.click
69
+ DestinationServicesGUI::Results.get_results_by_tracking_id(@ticket_tracking_id, IS_MODULAR).first.a(:class,'eva-button-primary-medium').click
70
70
  else
71
71
  puts 'Running with new design'
72
- DestinationServicesGUI::Results.get_results_by_tracking_id_for_new_design(@ticket_tracking_id,new_design).first.click
72
+ DestinationServicesGUI::Results.get_results_by_tracking_id_for_new_design(@ticket_tracking_id,new_design).first.a(:class,'eva-button-primary-medium').click
73
73
  end
74
74
 
75
75
  end
@@ -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
data/lib/ds/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DestinationServicesGUI
2
- VERSION = "0.2.24"
2
+ VERSION = "0.2.25"
3
3
  end
@@ -101,7 +101,7 @@ module Checkout
101
101
 
102
102
  sleep 1
103
103
 
104
- dates = calendar.div(:class, 'view days').table.tds(:class, 'in').select { | td | !td.a(:class, 'disabled').present? }
104
+ dates = calendar.div(:class, 'datepicker').table.tds(:class, 'in').select { | td | !td.a(:class, 'disabled').present? }
105
105
 
106
106
  calendar.span(:class, 'nibbler-common-overlay-close').wait_until_present(20)
107
107
 
@@ -111,7 +111,7 @@ module Checkout
111
111
 
112
112
  def select_ticket_date(calendar)
113
113
 
114
- get_ticket_dates(calendar).last.click unless !calendar.a(:class,'calendar-icon').present?
114
+ get_ticket_dates(calendar).last.a.click unless !calendar.a(:class,'calendar-icon').present?
115
115
 
116
116
  sleep 3
117
117
 
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.24
4
+ version: 0.2.25
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-10-09 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container