flights_gui_tests 2.4.01 → 2.4.02
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/step_definitions/results/multipleoneway_steps.rb +5 -1
- data/features/support/env.rb +1 -0
- data/features/support/hooks.rb +1 -0
- data/features/support/modules/browser.rb +5 -0
- data/features/support/modules/checkout/new_checkout/tarjeta.rb +2 -2
- data/features/support/modules/results/multipleoneway.rb +2 -1
- data/features/support/version.rb +1 -1
- data/features/tests/results/multipleoneway.feature +21 -1
- data/flights_gui_tests.gemspec +1 -0
- data/henry-context.yml +165 -15
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc04b12429c72a8f39f8a183dd0442c8eba50fb0
|
4
|
+
data.tar.gz: 2cad65939aa4faff8fa2d741ca45eb27e8690a17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2671ccbbd0268ecd2260a0c8972c129e34e317e9e87ebae1f6f5c450ffbd18697b13e6a4c46a4e89a835f5693447d808479178b165d63539686a492f534268e
|
7
|
+
data.tar.gz: 895a66de26005167abdfc38032c2fe9dc8ab2481df2189755103a2d438bc5634070fe9f328802fa8199bf8e8d02f9604039576b595208aefe5bf740af8ac59ce
|
@@ -63,7 +63,11 @@ end
|
|
63
63
|
Entonces(/^el precio es la suma de ambos tramos elegidos sin taxes$/) do
|
64
64
|
subtotal_ida = Price.new(@page.subtotal_ida_element.text)
|
65
65
|
subtotal_vuelta = Price.new(@page.subtotal_vuelta_element.text)
|
66
|
-
|
66
|
+
if AllPages.site=="BR"
|
67
|
+
total_caja = Price.new(@page.precio_caja_base_element.text)
|
68
|
+
else
|
69
|
+
total_caja = Price.new(@page.precio_caja_total_element.text)
|
70
|
+
end
|
67
71
|
(subtotal_ida+subtotal_vuelta).should equal(total_caja)
|
68
72
|
end
|
69
73
|
|
data/features/support/env.rb
CHANGED
data/features/support/hooks.rb
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
module Browser
|
3
3
|
|
4
4
|
def self.iniciar(browser)
|
5
|
+
if $HENRY_PARAMS['headless']
|
6
|
+
puts "Corrida en Background"
|
7
|
+
$headless = Headless.new
|
8
|
+
$headless.start
|
9
|
+
end
|
5
10
|
client = Selenium::WebDriver::Remote::Http::Default.new
|
6
11
|
client.timeout = 180
|
7
12
|
browser = Watir::Browser.new(browser.downcase.to_sym,:http_client=>client)
|
@@ -101,7 +101,7 @@ module NewCheckout
|
|
101
101
|
if documento_titular_tarjeta_element.present?
|
102
102
|
number = case AllPages.site
|
103
103
|
when "CL" then "7028168-6"
|
104
|
-
when "BR" then "
|
104
|
+
when "BR" then "22233366638"
|
105
105
|
else "32456324"
|
106
106
|
end
|
107
107
|
documento_titular_tarjeta_element.set number
|
@@ -126,7 +126,7 @@ module NewCheckout
|
|
126
126
|
if documento_titular_tarjeta_element.present?
|
127
127
|
number = case AllPages.site
|
128
128
|
when "CL" then "7028168-6"
|
129
|
-
when "BR" then "
|
129
|
+
when "BR" then "22233366638"
|
130
130
|
else "32456324"
|
131
131
|
end
|
132
132
|
documento_titular_tarjeta_element.set number
|
@@ -33,7 +33,8 @@ module Results
|
|
33
33
|
li(:caja_vuelta_no_seleccionada,:class=>"multipleoneway-selector-item arrival-item current")
|
34
34
|
li(:caja_precio,:class=>"multipleoneway-selector-item price-item visible")
|
35
35
|
|
36
|
-
element(:
|
36
|
+
element(:precio_caja_base,:span,:css=>".price-item .price-currency")
|
37
|
+
element(:precio_caja_total, :span, :css=>".fare-price .price-currency")
|
37
38
|
|
38
39
|
div(:clusters,:id=>"clusters")
|
39
40
|
|
data/features/support/version.rb
CHANGED
@@ -15,6 +15,10 @@ Característica: results.multipleoneway
|
|
15
15
|
Ejemplos:
|
16
16
|
|pais|
|
17
17
|
|BR|
|
18
|
+
@co
|
19
|
+
Ejemplos:
|
20
|
+
|pais|
|
21
|
+
|CO|
|
18
22
|
|
19
23
|
@multipleoneway
|
20
24
|
Esquema del escenario: al realizar una busqueda de un vuelo de cabotaje del tramo de IDA y del tramo del VUELTA, se visualiza la opcion de comprar con el precio ya calculado con la suma de ambas reservas.
|
@@ -30,6 +34,10 @@ Característica: results.multipleoneway
|
|
30
34
|
Ejemplos:
|
31
35
|
|pais|
|
32
36
|
|BR|
|
37
|
+
@co
|
38
|
+
Ejemplos:
|
39
|
+
|pais|
|
40
|
+
|CO|
|
33
41
|
|
34
42
|
@multipleoneway
|
35
43
|
Esquema del escenario: al realizar una busqueda de un vuelo de cabotaje del tramo de IDA y del tramo del VUELTA, se ingresa directamente al checkout.
|
@@ -47,6 +55,10 @@ Característica: results.multipleoneway
|
|
47
55
|
Ejemplos:
|
48
56
|
|pais|
|
49
57
|
|BR|
|
58
|
+
@co
|
59
|
+
Ejemplos:
|
60
|
+
|pais|
|
61
|
+
|CO|
|
50
62
|
|
51
63
|
@multipleoneway
|
52
64
|
Esquema del escenario: al realizar una busqueda de un vuelo de cabotaje del tramo de IDA y del tramo del VUELTA y su correspondiente compra, se visualiza la pagina del checkout con las dos reservas bookeadas. .
|
@@ -64,6 +76,10 @@ Característica: results.multipleoneway
|
|
64
76
|
Ejemplos:
|
65
77
|
|pais|
|
66
78
|
|BR|
|
79
|
+
@co
|
80
|
+
Ejemplos:
|
81
|
+
|pais|
|
82
|
+
|CO|
|
67
83
|
|
68
84
|
@multipleoneway
|
69
85
|
Esquema del escenario: al ingresar a realizar una busqueda en AR, no se visualiza la opcion "Por Tramos".
|
@@ -84,4 +100,8 @@ Característica: results.multipleoneway
|
|
84
100
|
@br
|
85
101
|
Ejemplos:
|
86
102
|
|pais|
|
87
|
-
|BR|
|
103
|
+
|BR|
|
104
|
+
@co
|
105
|
+
Ejemplos:
|
106
|
+
|pais|
|
107
|
+
|CO|
|
data/flights_gui_tests.gemspec
CHANGED
@@ -33,6 +33,7 @@ Gem::Specification.new do |gem|
|
|
33
33
|
gem.add_dependency('henry_process_cleaner')
|
34
34
|
gem.add_dependency('byebug')
|
35
35
|
gem.add_dependency('auto_uy_utils')
|
36
|
+
gem.add_dependency('headless')
|
36
37
|
#gem.add_dependency('roma_automation')
|
37
38
|
#gem.add_dependency('parallel_tests')
|
38
39
|
|
data/henry-context.yml
CHANGED
@@ -971,6 +971,111 @@ tasks:
|
|
971
971
|
recipients:
|
972
972
|
- estebanldh@gmail.com
|
973
973
|
- nsimean@despegar.com
|
974
|
+
- name: results.multipleoneway.co
|
975
|
+
class_name: Henry::Task::CucumberTask
|
976
|
+
options:
|
977
|
+
tags:
|
978
|
+
- results
|
979
|
+
- multipleoneway
|
980
|
+
- co
|
981
|
+
expand: true
|
982
|
+
no-source: true
|
983
|
+
reports:
|
984
|
+
- format: html
|
985
|
+
name: ${DATE}_${TASK_NAME}.html
|
986
|
+
recipients:
|
987
|
+
- estebanldh@gmail.com
|
988
|
+
- nsimean@despegar.com
|
989
|
+
- name: results.multipleoneway.br
|
990
|
+
class_name: Henry::Task::CucumberTask
|
991
|
+
options:
|
992
|
+
tags:
|
993
|
+
- results
|
994
|
+
- multipleoneway
|
995
|
+
- br
|
996
|
+
expand: true
|
997
|
+
no-source: true
|
998
|
+
reports:
|
999
|
+
- format: html
|
1000
|
+
name: ${DATE}_${TASK_NAME}.html
|
1001
|
+
recipients:
|
1002
|
+
- estebanldh@gmail.com
|
1003
|
+
- nsimean@despegar.com
|
1004
|
+
- name: results.multipleoneway.co
|
1005
|
+
class_name: Henry::Task::CucumberTask
|
1006
|
+
options:
|
1007
|
+
tags:
|
1008
|
+
- results
|
1009
|
+
- multipleoneway
|
1010
|
+
- co
|
1011
|
+
expand: true
|
1012
|
+
no-source: true
|
1013
|
+
reports:
|
1014
|
+
- format: html
|
1015
|
+
name: ${DATE}_${TASK_NAME}.html
|
1016
|
+
recipients:
|
1017
|
+
- estebanldh@gmail.com
|
1018
|
+
- nsimean@despegar.com
|
1019
|
+
- name: results.multipleoneway.br
|
1020
|
+
class_name: Henry::Task::CucumberTask
|
1021
|
+
options:
|
1022
|
+
tags:
|
1023
|
+
- results
|
1024
|
+
- multipleoneway
|
1025
|
+
- br
|
1026
|
+
expand: true
|
1027
|
+
no-source: true
|
1028
|
+
reports:
|
1029
|
+
- format: html
|
1030
|
+
name: ${DATE}_${TASK_NAME}.html
|
1031
|
+
recipients:
|
1032
|
+
- estebanldh@gmail.com
|
1033
|
+
- nsimean@despegar.com
|
1034
|
+
- name: results.multipleoneway.co
|
1035
|
+
class_name: Henry::Task::CucumberTask
|
1036
|
+
options:
|
1037
|
+
tags:
|
1038
|
+
- results
|
1039
|
+
- multipleoneway
|
1040
|
+
- co
|
1041
|
+
expand: true
|
1042
|
+
no-source: true
|
1043
|
+
reports:
|
1044
|
+
- format: html
|
1045
|
+
name: ${DATE}_${TASK_NAME}.html
|
1046
|
+
recipients:
|
1047
|
+
- estebanldh@gmail.com
|
1048
|
+
- nsimean@despegar.com
|
1049
|
+
- name: results.multipleoneway.br
|
1050
|
+
class_name: Henry::Task::CucumberTask
|
1051
|
+
options:
|
1052
|
+
tags:
|
1053
|
+
- results
|
1054
|
+
- multipleoneway
|
1055
|
+
- br
|
1056
|
+
expand: true
|
1057
|
+
no-source: true
|
1058
|
+
reports:
|
1059
|
+
- format: html
|
1060
|
+
name: ${DATE}_${TASK_NAME}.html
|
1061
|
+
recipients:
|
1062
|
+
- estebanldh@gmail.com
|
1063
|
+
- nsimean@despegar.com
|
1064
|
+
- name: results.multipleoneway.co
|
1065
|
+
class_name: Henry::Task::CucumberTask
|
1066
|
+
options:
|
1067
|
+
tags:
|
1068
|
+
- results
|
1069
|
+
- multipleoneway
|
1070
|
+
- co
|
1071
|
+
expand: true
|
1072
|
+
no-source: true
|
1073
|
+
reports:
|
1074
|
+
- format: html
|
1075
|
+
name: ${DATE}_${TASK_NAME}.html
|
1076
|
+
recipients:
|
1077
|
+
- estebanldh@gmail.com
|
1078
|
+
- nsimean@despegar.com
|
974
1079
|
- name: results.multipleoneway.ar
|
975
1080
|
class_name: Henry::Task::CucumberTask
|
976
1081
|
options:
|
@@ -986,6 +1091,36 @@ tasks:
|
|
986
1091
|
recipients:
|
987
1092
|
- estebanldh@gmail.com
|
988
1093
|
- nsimean@despegar.com
|
1094
|
+
- name: results.multipleoneway.br
|
1095
|
+
class_name: Henry::Task::CucumberTask
|
1096
|
+
options:
|
1097
|
+
tags:
|
1098
|
+
- results
|
1099
|
+
- multipleoneway
|
1100
|
+
- br
|
1101
|
+
expand: true
|
1102
|
+
no-source: true
|
1103
|
+
reports:
|
1104
|
+
- format: html
|
1105
|
+
name: ${DATE}_${TASK_NAME}.html
|
1106
|
+
recipients:
|
1107
|
+
- estebanldh@gmail.com
|
1108
|
+
- nsimean@despegar.com
|
1109
|
+
- name: results.multipleoneway.co
|
1110
|
+
class_name: Henry::Task::CucumberTask
|
1111
|
+
options:
|
1112
|
+
tags:
|
1113
|
+
- results
|
1114
|
+
- multipleoneway
|
1115
|
+
- co
|
1116
|
+
expand: true
|
1117
|
+
no-source: true
|
1118
|
+
reports:
|
1119
|
+
- format: html
|
1120
|
+
name: ${DATE}_${TASK_NAME}.html
|
1121
|
+
recipients:
|
1122
|
+
- estebanldh@gmail.com
|
1123
|
+
- nsimean@despegar.com
|
989
1124
|
- name: results.search
|
990
1125
|
class_name: Henry::Task::CucumberTask
|
991
1126
|
options:
|
@@ -13504,6 +13639,36 @@ tasks:
|
|
13504
13639
|
recipients:
|
13505
13640
|
- estebanldh@gmail.com
|
13506
13641
|
- nsimean@despegar.com
|
13642
|
+
- name: checkout.multipleoneway.br
|
13643
|
+
class_name: Henry::Task::CucumberTask
|
13644
|
+
options:
|
13645
|
+
tags:
|
13646
|
+
- checkout
|
13647
|
+
- multipleoneway
|
13648
|
+
- br
|
13649
|
+
expand: true
|
13650
|
+
no-source: true
|
13651
|
+
reports:
|
13652
|
+
- format: html
|
13653
|
+
name: ${DATE}_${TASK_NAME}.html
|
13654
|
+
recipients:
|
13655
|
+
- estebanldh@gmail.com
|
13656
|
+
- nsimean@despegar.com
|
13657
|
+
- name: checkout.multipleoneway.br
|
13658
|
+
class_name: Henry::Task::CucumberTask
|
13659
|
+
options:
|
13660
|
+
tags:
|
13661
|
+
- checkout
|
13662
|
+
- multipleoneway
|
13663
|
+
- br
|
13664
|
+
expand: true
|
13665
|
+
no-source: true
|
13666
|
+
reports:
|
13667
|
+
- format: html
|
13668
|
+
name: ${DATE}_${TASK_NAME}.html
|
13669
|
+
recipients:
|
13670
|
+
- estebanldh@gmail.com
|
13671
|
+
- nsimean@despegar.com
|
13507
13672
|
- name: checkout.braspag
|
13508
13673
|
class_name: Henry::Task::CucumberTask
|
13509
13674
|
options:
|
@@ -16416,21 +16581,6 @@ tasks:
|
|
16416
16581
|
recipients:
|
16417
16582
|
- estebanldh@gmail.com
|
16418
16583
|
- nsimean@despegar.com
|
16419
|
-
- name: checkout.providers.vol
|
16420
|
-
class_name: Henry::Task::CucumberTask
|
16421
|
-
options:
|
16422
|
-
tags:
|
16423
|
-
- checkout
|
16424
|
-
- providers
|
16425
|
-
- vol
|
16426
|
-
expand: true
|
16427
|
-
no-source: true
|
16428
|
-
reports:
|
16429
|
-
- format: html
|
16430
|
-
name: ${DATE}_${TASK_NAME}.html
|
16431
|
-
recipients:
|
16432
|
-
- estebanldh@gmail.com
|
16433
|
-
- nsimean@despegar.com
|
16434
16584
|
- name: checkout.providers.aij
|
16435
16585
|
class_name: Henry::Task::CucumberTask
|
16436
16586
|
options:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flights_gui_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.02
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|
@@ -220,6 +220,20 @@ dependencies:
|
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: headless
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
223
237
|
- !ruby/object:Gem::Dependency
|
224
238
|
name: geminabox
|
225
239
|
requirement: !ruby/object:Gem::Requirement
|