ds-gui-automation 0.1.43 → 0.1.44
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/aftersale.feature +34 -0
- data/features/step_definitions/after_sale_steps.rb +27 -0
- data/henry-context.yml +60 -0
- data/lib/ds/version.rb +1 -1
- metadata +4 -2
@@ -0,0 +1,34 @@
|
|
1
|
+
Feature: Destination Services Self Service Login
|
2
|
+
As a user,
|
3
|
+
I want to be able to complete the flow and enter the self service application
|
4
|
+
|
5
|
+
@after_sale
|
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 self service button and enter the "<crm_id>" and email
|
9
|
+
Then I should be able to login successfully
|
10
|
+
|
11
|
+
@br
|
12
|
+
Examples:
|
13
|
+
|country|tracking_id|type|crm_id|
|
14
|
+
|BR|HB_ORL_SEAWRLDROW|tours|97229943|
|
15
|
+
|
16
|
+
@ar
|
17
|
+
Examples:
|
18
|
+
|country|tracking_id|type|crm_id|
|
19
|
+
|AR|PAM_SLA_104|tours|97229948|
|
20
|
+
|
21
|
+
@mx
|
22
|
+
Examples:
|
23
|
+
|country|tracking_id|type|crm_id|
|
24
|
+
|MX|TF_CUN|transfers|97230012|
|
25
|
+
|
26
|
+
@co
|
27
|
+
Examples:
|
28
|
+
|country|tracking_id|type|crm_id|
|
29
|
+
|CO|DY_ORL|tickets|97229937|
|
30
|
+
|
31
|
+
@cl
|
32
|
+
Examples:
|
33
|
+
|country|tracking_id|type|crm_id|
|
34
|
+
|CL|UN_ORL|tickets|97229981|
|
@@ -0,0 +1,27 @@
|
|
1
|
+
When(/^I click on the self service button and enter the "(.*?)" and email$/) do |crm_id|
|
2
|
+
|
3
|
+
@browser.span(:class, 'nibbler-common-icon-reservation').click
|
4
|
+
|
5
|
+
sleep 2
|
6
|
+
|
7
|
+
@browser.text_field(:name, 'number').set(crm_id)
|
8
|
+
|
9
|
+
@browser.li(:class, 'nibbler-header-user-menu-item nibbler--reservation-button').text_field(:name, 'email').set('oss_collect_ok@despegar.com')
|
10
|
+
|
11
|
+
sleep 1
|
12
|
+
|
13
|
+
@browser.li(:class, 'nibbler-header-user-menu-item nibbler--reservation-button').button(:class, 'nibbler-header-button primary').click
|
14
|
+
|
15
|
+
@browser.div(:class, 'ux-common-message-figure').wait_until_present(60)
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
Then(/^I should be able to login successfully$/) do
|
20
|
+
|
21
|
+
@browser.div(:class, 'ux-selfservice-title').present?.should be_true
|
22
|
+
|
23
|
+
@browser.div(:class, 'ux-common-message-figure').present?.should be_true
|
24
|
+
|
25
|
+
@browser.div(:class, 'ux-common-grid-col11 ux-common-grid-centered').present?.should be_true
|
26
|
+
|
27
|
+
end
|
data/henry-context.yml
CHANGED
@@ -1351,3 +1351,63 @@ tasks:
|
|
1351
1351
|
- format: html
|
1352
1352
|
name: ${DATE}_${TASK_NAME}.html
|
1353
1353
|
|
1354
|
+
- name: after_sale
|
1355
|
+
class_name: Henry::Task::CucumberTask
|
1356
|
+
options:
|
1357
|
+
tags:
|
1358
|
+
- after_sale
|
1359
|
+
reports:
|
1360
|
+
- format: html
|
1361
|
+
name: ${DATE}_${TASK_NAME}.html
|
1362
|
+
|
1363
|
+
- name: after_sale_ar
|
1364
|
+
class_name: Henry::Task::CucumberTask
|
1365
|
+
options:
|
1366
|
+
tags:
|
1367
|
+
- after_sale
|
1368
|
+
- ar
|
1369
|
+
reports:
|
1370
|
+
- format: html
|
1371
|
+
name: ${DATE}_${TASK_NAME}.html
|
1372
|
+
|
1373
|
+
- name: after_sale_br
|
1374
|
+
class_name: Henry::Task::CucumberTask
|
1375
|
+
options:
|
1376
|
+
tags:
|
1377
|
+
- after_sale
|
1378
|
+
- br
|
1379
|
+
reports:
|
1380
|
+
- format: html
|
1381
|
+
name: ${DATE}_${TASK_NAME}.html
|
1382
|
+
|
1383
|
+
- name: after_sale_co
|
1384
|
+
class_name: Henry::Task::CucumberTask
|
1385
|
+
options:
|
1386
|
+
tags:
|
1387
|
+
- after_sale
|
1388
|
+
- co
|
1389
|
+
reports:
|
1390
|
+
- format: html
|
1391
|
+
name: ${DATE}_${TASK_NAME}.html
|
1392
|
+
|
1393
|
+
- name: after_sale_cl
|
1394
|
+
class_name: Henry::Task::CucumberTask
|
1395
|
+
options:
|
1396
|
+
tags:
|
1397
|
+
- after_sale
|
1398
|
+
- cl
|
1399
|
+
reports:
|
1400
|
+
- format: html
|
1401
|
+
name: ${DATE}_${TASK_NAME}.html
|
1402
|
+
|
1403
|
+
- name: after_sale_mx
|
1404
|
+
class_name: Henry::Task::CucumberTask
|
1405
|
+
options:
|
1406
|
+
tags:
|
1407
|
+
- after_sale
|
1408
|
+
- mx
|
1409
|
+
reports:
|
1410
|
+
- format: html
|
1411
|
+
name: ${DATE}_${TASK_NAME}.html
|
1412
|
+
|
1413
|
+
|
data/lib/ds/version.rb
CHANGED
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.44
|
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-
|
12
|
+
date: 2014-12-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: henry-container
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- features/step_definitions/detail_steps.rb
|
104
104
|
- features/step_definitions/checkout_steps.rb
|
105
105
|
- features/step_definitions/thanks_steps.rb
|
106
|
+
- features/step_definitions/after_sale_steps.rb
|
106
107
|
- features/step_definitions/search_steps.rb
|
107
108
|
- features/step_definitions/results_steps.rb
|
108
109
|
- features/support/env.rb
|
@@ -111,6 +112,7 @@ files:
|
|
111
112
|
- features/thanks.feature
|
112
113
|
- features/search.feature
|
113
114
|
- features/results.feature
|
115
|
+
- features/aftersale.feature
|
114
116
|
- features/checkout.feature
|
115
117
|
- henry-context.yml
|
116
118
|
- lib/ds-gui-automation.rb
|