ds-gui-automation 0.1.23 → 0.1.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.
- data/Gemfile +2 -0
- data/features/checkout.feature +11 -0
- data/features/detail.feature +7 -7
- data/features/results.feature +242 -0
- data/features/step_definitions/checkout_steps.rb +98 -0
- data/features/step_definitions/detail_steps.rb +80 -2
- data/features/step_definitions/results_steps.rb +16 -2
- data/features/step_definitions/thanks_steps.rb +62 -0
- data/features/support/env.rb +4 -4
- data/features/support/lib/helper.rb +4 -0
- data/features/thanks.feature +282 -0
- data/henry-context.yml +1098 -1
- data/lib/ds/version.rb +1 -1
- data/lib/page_objects/checkout.rb +11 -0
- data/lib/page_objects/detail.rb +2 -0
- data/lib/page_objects/ds_flow.rb +3 -0
- data/lib/page_objects/modules/checkout.rb +100 -0
- data/lib/page_objects/modules/commons.rb +78 -1
- data/lib/page_objects/modules/navigation.rb +2 -2
- data/lib/page_objects/modules/results.rb +119 -8
- data/lib/page_objects/modules/search.rb +14 -0
- data/lib/page_objects/modules/tour_detail.rb +53 -6
- metadata +9 -2
@@ -1,17 +1,64 @@
|
|
1
1
|
require_relative './commons.rb'
|
2
2
|
|
3
|
-
module
|
3
|
+
module TourDetail
|
4
4
|
|
5
|
-
def
|
5
|
+
def get_tour_available_dates #retorna un arreglo de fechas disponibles
|
6
6
|
|
7
|
-
|
7
|
+
dates = []
|
8
8
|
|
9
|
+
sleep 1
|
10
|
+
|
11
|
+
browser.table(:class, 'ui-datepicker-calendar').tds(:class, 'available').each do | date |
|
12
|
+
|
13
|
+
dates << date
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
dates
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
def get_tour_available_schedules
|
22
|
+
|
23
|
+
options = browser.select(:class, 'datepicker-select-hours').options.to_a.delete_if { | option | option.text.include? "Selec" }
|
24
|
+
|
25
|
+
options
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
def set_tour_adults_number(adults = 2)
|
30
|
+
browser.select_list(:class, 'bot-adults-number').select(adults)
|
9
31
|
end
|
10
32
|
|
11
|
-
def
|
12
|
-
|
33
|
+
def set_tour_children_number(children = 2)
|
34
|
+
browser.select_list(:class, 'bot-children-number').select(children)
|
35
|
+
end
|
36
|
+
|
37
|
+
def go_to_tour_checkout
|
38
|
+
|
39
|
+
browser.a(:class, 'ux-flat-button').click
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
def open_tour_calendar
|
44
|
+
browser.div(:class, 'ux-destination-services-detail-pricebox-date-input').click
|
45
|
+
end
|
46
|
+
|
47
|
+
def go_to_disney_checkout
|
48
|
+
wait_for_disney_loader
|
49
|
+
browser.a(:class, 'ux-destination-services-button ux-red ux-medium').click
|
50
|
+
end
|
51
|
+
|
52
|
+
def go_to_universal_checkout
|
53
|
+
|
54
|
+
if browser.a(:class, 'ux-flat-button ux-red').present?
|
55
|
+
browser.a(:class, 'ux-flat-button ux-red').click
|
56
|
+
else
|
57
|
+
wait_for_disney_loader
|
58
|
+
browser.a(:class, 'ux-destination-services-button ux-red ux-medium').click
|
59
|
+
end
|
13
60
|
|
14
|
-
available_dates.to_a.shuffle.first.a(:class,'ui-state-default').click if available_dates.present?
|
15
61
|
end
|
16
62
|
|
63
|
+
|
17
64
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ds-gui-automation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.25
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: henry-container
|
@@ -101,12 +101,17 @@ files:
|
|
101
101
|
- ds-gui-automation.gemspec
|
102
102
|
- Gemfile
|
103
103
|
- features/step_definitions/detail_steps.rb
|
104
|
+
- features/step_definitions/checkout_steps.rb
|
105
|
+
- features/step_definitions/thanks_steps.rb
|
104
106
|
- features/step_definitions/search_steps.rb
|
105
107
|
- features/step_definitions/results_steps.rb
|
106
108
|
- features/support/env.rb
|
109
|
+
- features/support/lib/helper.rb
|
107
110
|
- features/detail.feature
|
111
|
+
- features/thanks.feature
|
108
112
|
- features/search.feature
|
109
113
|
- features/results.feature
|
114
|
+
- features/checkout.feature
|
110
115
|
- henry-context.yml
|
111
116
|
- lib/ds-gui-automation.rb
|
112
117
|
- lib/page_objects/results.rb
|
@@ -116,9 +121,11 @@ files:
|
|
116
121
|
- lib/page_objects/modules/tour_detail.rb
|
117
122
|
- lib/page_objects/modules/results.rb
|
118
123
|
- lib/page_objects/modules/search.rb
|
124
|
+
- lib/page_objects/modules/checkout.rb
|
119
125
|
- lib/page_objects/modules/initialize.rb
|
120
126
|
- lib/page_objects/modules/commons.rb
|
121
127
|
- lib/page_objects/modules/navigation.rb
|
128
|
+
- lib/page_objects/checkout.rb
|
122
129
|
- lib/page_objects/detail.rb
|
123
130
|
- lib/page_objects/navigation.rb
|
124
131
|
- lib/ds/version.rb
|