ds-gui-automation 0.1.17 → 0.1.18
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/features/detail.feature +7 -1
- data/features/step_definitions/detail_steps.rb +10 -0
- data/features/support/env.rb +2 -2
- data/henry-context.yml +9 -0
- data/lib/ds/version.rb +1 -1
- data/lib/page_objects/modules/tour_detail.rb +17 -0
- metadata +3 -2
data/features/detail.feature
CHANGED
@@ -5,4 +5,10 @@ Feature: Destination Services Detail
|
|
5
5
|
@detail_disney
|
6
6
|
Scenario: Disney detail price validation
|
7
7
|
Given I'm on the ticket's detail
|
8
|
-
Then I should see the detail page with the corresponding prices for each ticket
|
8
|
+
Then I should see the detail page with the corresponding prices for each ticket
|
9
|
+
|
10
|
+
@detail
|
11
|
+
Scenario: Detail from results
|
12
|
+
Given I perform a search from seo URL
|
13
|
+
When I click on the detail button
|
14
|
+
Then I should see the detail page for the selected tour
|
@@ -16,4 +16,14 @@ Then(/^I should see the detail page with the corresponding prices for each ticke
|
|
16
16
|
|
17
17
|
(hot_modality_price.eql?(one_day_price)).should be_false
|
18
18
|
|
19
|
+
end
|
20
|
+
|
21
|
+
When(/^I click on the detail button$/) do
|
22
|
+
DestinationServicesGUI::Results.show_results_tracking_id
|
23
|
+
DestinationServicesGUI::Results.get_results_by_provider_code(PROVIDER_ID, IS_MODULAR).first.click
|
24
|
+
binding.pry
|
25
|
+
end
|
26
|
+
|
27
|
+
Then(/^I should see the detail page for the selected tour$/) do
|
28
|
+
|
19
29
|
end
|
data/features/support/env.rb
CHANGED
@@ -24,7 +24,7 @@ DOMAIN = {}
|
|
24
24
|
params = Henry::Environment.params
|
25
25
|
|
26
26
|
IS_MODULAR = params['isModular'] || true
|
27
|
-
DOMAIN = params['environment']['site'] || %W{www.despegar.com.bo www.despegar.com.uy www.despegar.com.sv www.despegar.com.
|
27
|
+
DOMAIN = params['environment']['site'] || %W{www.despegar.com.bo www.despegar.com.uy www.despegar.com.sv www.despegar.com.gt www.despegar.com.hn www.despegar.com.ni www.despegar.com.pa www.despegar.com.py www.despegar.com.do www.us.despegar.com www.despegar.com.ve}.shuffle.first
|
28
28
|
COUNTRY = params['country']
|
29
29
|
BROWSER = params['browser'] || 'chrome'
|
30
30
|
WAIT_TIMEOUT = params['timeout'] || 150
|
@@ -49,7 +49,7 @@ PROVIDER_ID = params['environment']['providerId']
|
|
49
49
|
## END OF SET-UP FROM HENRY
|
50
50
|
|
51
51
|
client = Selenium::WebDriver::Remote::Http::Default.new
|
52
|
-
client.timeout =
|
52
|
+
client.timeout = 5000
|
53
53
|
|
54
54
|
|
55
55
|
browser_outside = Watir::Browser.new BROWSER.to_sym, :http_client => client
|
data/henry-context.yml
CHANGED
@@ -22,6 +22,15 @@ tasks:
|
|
22
22
|
options:
|
23
23
|
tags:
|
24
24
|
- results
|
25
|
+
reports:
|
26
|
+
- format: html
|
27
|
+
name: ${DATE}_${TASK_NAME}.html
|
28
|
+
|
29
|
+
- name: Detail
|
30
|
+
class_name: Henry::Task::CucumberTask
|
31
|
+
options:
|
32
|
+
tags:
|
33
|
+
- detail
|
25
34
|
reports:
|
26
35
|
- format: html
|
27
36
|
name: ${DATE}_${TASK_NAME}.html
|
data/lib/ds/version.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
require_relative './commons.rb'
|
2
|
+
|
3
|
+
module DisneyDetail
|
4
|
+
|
5
|
+
def select_date
|
6
|
+
|
7
|
+
browser.div(:class,'pricebox-datepicker-button').click
|
8
|
+
|
9
|
+
end
|
10
|
+
|
11
|
+
def select_random_date
|
12
|
+
available_dates = browser.tds(:class,'available')
|
13
|
+
|
14
|
+
available_dates.to_a.shuffle.first.a(:class,'ui-state-default').click if available_dates.present?
|
15
|
+
end
|
16
|
+
|
17
|
+
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.18
|
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-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: henry-container
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/page_objects/search.rb
|
114
114
|
- lib/page_objects/ds_flow.rb
|
115
115
|
- lib/page_objects/modules/disney_detail.rb
|
116
|
+
- lib/page_objects/modules/tour_detail.rb
|
116
117
|
- lib/page_objects/modules/results.rb
|
117
118
|
- lib/page_objects/modules/search.rb
|
118
119
|
- lib/page_objects/modules/initialize.rb
|