ds-gui-automation 0.1.45 → 0.1.46

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.
@@ -17,6 +17,7 @@ Feature: Destination Services Self Service Login
17
17
  Examples:
18
18
  |country|tracking_id|type|crm_id|
19
19
  |AR|PAM_SLA_104|tours|97229948|
20
+ |AR|PAM_SLA_104|tours|97231346|
20
21
 
21
22
  @mx
22
23
  Examples:
@@ -0,0 +1,26 @@
1
+ Feature: Destination Services Insurance
2
+ As a user,
3
+ I want to be able to buy an insurance
4
+
5
+ @insurance
6
+ Scenario Outline: thanks from results
7
+ Given I perform a search in "<country>" with "<tracking_id>" from seo URL
8
+ When I click on the assistance button
9
+ Then I should see the insurance home correctly
10
+ When I proceed to checkout from the insurance home
11
+ Then I should see the checkout page correctly
12
+ When I fill the checkout information
13
+ And I proceed to thanks
14
+ And I fill the risk information
15
+ Then I should see the thanks page correctly
16
+ And I verify that the reservation was made on Fenix for "<type>" and "<tracking_id>"
17
+
18
+ @br
19
+ Examples:
20
+ |country|tracking_id|type|
21
+ |BR|HB_ORL_SEAWRLDROW|insurances|
22
+
23
+ @ar
24
+ Examples:
25
+ |country|tracking_id|type|
26
+ |AR|PAM_SLA_104|insurances|
@@ -0,0 +1,45 @@
1
+ When(/^I click on the assistance button$/) do
2
+ @browser.li(:class, 'nibbler-header-navigation-menu-item nibbler-header-navigation-assistance').click
3
+ end
4
+
5
+ Then(/^I should see the insurance home correctly$/) do
6
+
7
+ @browser.div(:class, 'ux-destination-services-detail-picture').wait_until_present(60)
8
+
9
+ @browser.div(:class, 'ux-destination-services-assistance-pricebox').present?.should be_true
10
+
11
+ @browser.li(:class, 'ux-destination-services-assistance-pricebox-button').present?.should be_true
12
+
13
+ end
14
+
15
+ When(/^I proceed to checkout from the insurance home$/) do
16
+
17
+ @browser.li(:class, 'ux-destination-services-assistance-pricebox-button').click
18
+
19
+ sleep 1
20
+
21
+ destination = @browser.select_list(:name, 'assistanceDestination').options.reject { | option | option.text.include? "Selec" }
22
+
23
+ destination.shuffle.first.select
24
+
25
+ @browser.input(:id, 'date-from').click
26
+
27
+ sleep 1
28
+
29
+ @browser.td(:class, 'ui-datepicker-days-cell-over ui-datepicker-today').a(:class, 'ui-state-default').click
30
+
31
+ sleep 2
32
+
33
+ @browser.input(:id, 'date-to').click
34
+
35
+ sleep 1
36
+
37
+ @browser.td(:class, 'ui-datepicker-days-cell-over ui-datepicker-today').a(:class, 'ui-state-default').click
38
+
39
+ sleep 1
40
+
41
+ @browser.li(:class,'ux-destination-services-assistance-pricebox-calendar-button').a(:class, 'ux-common-button ux-common-button-large').click
42
+
43
+ DestinationServicesGUI::Checkout.wait_for_checkout
44
+
45
+ end
@@ -44,7 +44,12 @@ Then(/^I verify that the reservation was made on Fenix for "(.*)" and "(.*)"$/)
44
44
 
45
45
  transaction = HTTParty.get("http://10.2.7.16:80/fenix/ds/#{type}?transaction_id=#{crm_id}")
46
46
 
47
- transaction['items'].first['extra_data']['tracking_id'].eql?(trackingId).should be_true
47
+ if type != 'insurances'
48
+ transaction['items'].first['extra_data']['tracking_id'].eql?(trackingId).should be_true
49
+ else
50
+ transaction['items'].first['extra_data']['tracking_id'].include?('IN').should be_true
51
+ end
52
+
48
53
  end
49
54
 
50
55
  When(/^I fill the particular information for tickets$/) do
@@ -1253,6 +1253,36 @@ tasks:
1253
1253
  - format: html
1254
1254
  name: ${DATE}_${TASK_NAME}.html
1255
1255
 
1256
+ - name: payment_methods_vi
1257
+ class_name: Henry::Task::CucumberTask
1258
+ options:
1259
+ tags:
1260
+ - payment_methods
1261
+ - vi
1262
+ reports:
1263
+ - format: html
1264
+ name: ${DATE}_${TASK_NAME}.html
1265
+
1266
+ - name: payment_methods_ax
1267
+ class_name: Henry::Task::CucumberTask
1268
+ options:
1269
+ tags:
1270
+ - payment_methods
1271
+ - ax
1272
+ reports:
1273
+ - format: html
1274
+ name: ${DATE}_${TASK_NAME}.html
1275
+
1276
+ - name: payment_methods_ac
1277
+ class_name: Henry::Task::CucumberTask
1278
+ options:
1279
+ tags:
1280
+ - payment_methods
1281
+ - ac
1282
+ reports:
1283
+ - format: html
1284
+ name: ${DATE}_${TASK_NAME}.html
1285
+
1256
1286
  - name: available_installments_br_vi
1257
1287
  class_name: Henry::Task::CucumberTask
1258
1288
  options:
@@ -1509,3 +1539,23 @@ tasks:
1509
1539
  reports:
1510
1540
  - format: html
1511
1541
  name: ${DATE}_${TASK_NAME}.html
1542
+
1543
+ - name: insurance_ar
1544
+ class_name: Henry::Task::CucumberTask
1545
+ options:
1546
+ tags:
1547
+ - insurance
1548
+ - ar
1549
+ reports:
1550
+ - format: html
1551
+ name: ${DATE}_${TASK_NAME}.html
1552
+
1553
+ - name: insurance_br
1554
+ class_name: Henry::Task::CucumberTask
1555
+ options:
1556
+ tags:
1557
+ - insurance
1558
+ - br
1559
+ reports:
1560
+ - format: html
1561
+ name: ${DATE}_${TASK_NAME}.html
@@ -1,3 +1,3 @@
1
1
  module DestinationServicesGUI
2
- VERSION = "0.1.45"
2
+ VERSION = "0.1.46"
3
3
  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.45
4
+ version: 0.1.46
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -103,12 +103,14 @@ files:
103
103
  - features/step_definitions/fenix_steps.rb
104
104
  - features/step_definitions/detail_steps.rb
105
105
  - features/step_definitions/checkout_steps.rb
106
+ - features/step_definitions/insurance_steps.rb
106
107
  - features/step_definitions/thanks_steps.rb
107
108
  - features/step_definitions/after_sale_steps.rb
108
109
  - features/step_definitions/search_steps.rb
109
110
  - features/step_definitions/results_steps.rb
110
111
  - features/support/env.rb
111
112
  - features/support/lib/helper.rb
113
+ - features/insurance.feature
112
114
  - features/detail.feature
113
115
  - features/thanks.feature
114
116
  - features/search.feature