flights_gui_tests 2.4.06 → 2.4.08

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d20f7f53f7bbf04e9d2ec365870175e0aeda8cc2
4
- data.tar.gz: 2c923f1c898ec3fc168ae9bf139dc9cb4c722291
3
+ metadata.gz: a6500a4b8306e155fcf63d2afe99a936c84ec522
4
+ data.tar.gz: fdd1c0fd78956e3ecd13476e29af397000f1433c
5
5
  SHA512:
6
- metadata.gz: 67c9239fb41ff96301ed384a9a939acab117c69e029ee94295c93c695c23401963f7433478977c3d998122db4c41e458c5999bca722828519b3b703967eb982f
7
- data.tar.gz: b48fd5264f4c31c1b81b6b4364472f6ae054d8fdfbdeef83322fc375f802f8330c6ec629a90d79f16bad360c1162ead8d1e0ddac2c3de3b5fbcb665d5cb68f7e
6
+ metadata.gz: 8d89d45e92002ab8c50bad6b86e4485ec4cdad59158fc6c034984acfa924510968eb19946cc21f0065c80f7f1018b0b76e08bc29b53f83003a3720b45ccf723a
7
+ data.tar.gz: 15563c34020d97b35208bd0876dbee30fa324ca1ba794df9e4c8a340738431b3efdb63308e18409ea52b80e029ad538f34828fc44f04324b68e981a964de7ad6
@@ -16,14 +16,13 @@ end
16
16
  Entonces(/^(?:verifico|valido) las ociones de ordenamiento$/) do
17
17
  doc = Hpricot.parse(@page.orden_element.html)
18
18
  options = (doc / 'option').map { |option| option.attributes['value'] }
19
- if AllPages.site == 'BR'
20
- @page.orden_element.value.should match('FARE_ASCENDING')
21
- end
22
19
  value=@page.recuperar_valor_abtesting("defaultSortingStrategy")
23
20
  if value<20
24
21
  options.should include?('TOTAL_FARE_YIELD_ASCENDING')
22
+ @page.orden_element.value.should match('FARE_YIELD_ASCENDING') if AllPages.site == 'BR'
25
23
  else
26
24
  options.should include?('TOTALFARE_ASCENDING')
25
+ @page.orden_element.value.should match('FARE_ASCENDING') if AllPages.site == 'BR'
27
26
  end
28
27
  options.should include?('FARE_ASCENDING')
29
28
  options.should include?('STOPSCOUNT_ASCENDING')
@@ -10,11 +10,13 @@ end
10
10
 
11
11
  Entonces(/^el ordenamiento es YIELD$/) do
12
12
  value=@page.recuperar_valor_abtesting("defaultSortingStrategy")
13
+ puts value
13
14
  (value.to_i < 20).should be_true
14
15
  end
15
16
 
16
17
  Entonces(/^el ordenamiento no es YIELD$/) do
17
18
  value=@page.recuperar_valor_abtesting("defaultSortingStrategy")
19
+ puts value
18
20
  (value.to_i > 19).should be_true
19
21
  end
20
22
 
@@ -5,18 +5,26 @@ module Results
5
5
 
6
6
  include PageObject
7
7
 
8
+ def tiene_imagen?
9
+ return imagen_cluster_element.present?
10
+ end
11
+
8
12
  def validar_detalles_itinerario(i)
9
13
  if tipo_de_busqueda != "multipledestinations"
10
14
  outbound = itinerarios_elements[i].div(:class,'itineraries').div(:class,'sub-cluster outbound').div(:class,'item data')
11
15
  (manage_data.city_from_1.airports.include?(outbound.spans(:class,'airport')[0].text)).should be_true
12
16
  (manage_data.city_to_1.airports.include?(outbound.spans(:class,'airport')[1].text)).should be_true
13
- outbound.span(:class,'city-departure').text.no_accents.downcase.gsub(",","").strip.should equal(manage_data.city_from_1.name_lang[AllPages.lang].downcase) unless outbound.span(:class,'city-departure').text.downcase.no_accents.gsub(",","").strip.match("toluca|campinas|fort lauderdale")
14
- outbound.span(:class,'city-arrival').text.no_accents.downcase.gsub(",","").strip.should match(manage_data.city_to_1.name_lang[AllPages.lang].downcase) unless outbound.span(:class,'city-arrival').text.downcase.no_accents.gsub(",","").strip.match("toluca|campinas|fort lauderdale")
17
+ if itinerarios_elements[i].div(:class,'cluster-image-container').present?
18
+ outbound.span(:class,'city-departure').text.no_accents.downcase.gsub(",","").strip.should equal(manage_data.city_from_1.name_lang[AllPages.lang].downcase) unless outbound.span(:class,'city-departure').text.downcase.no_accents.gsub(",","").strip.match("toluca|campinas|fort lauderdale")
19
+ outbound.span(:class,'city-arrival').text.no_accents.downcase.gsub(",","").strip.should match(manage_data.city_to_1.name_lang[AllPages.lang].downcase) unless outbound.span(:class,'city-arrival').text.downcase.no_accents.gsub(",","").strip.match("toluca|campinas|fort lauderdale")
20
+ end
15
21
  if tipo_de_busqueda == "roundtrip"
16
22
  inbound = itinerarios_elements[i].div(:class,'itineraries').div(:class,'sub-cluster inbound').div(:class,'item data')
17
23
  (manage_data.city_to_1.airports.include?(inbound.spans(:class,'airport')[0].text)).should be_true
18
24
  (manage_data.city_from_1.airports.include?(inbound.spans(:class,'airport')[1].text)).should be_true
19
- inbound.span(:class,'city-departure').text.no_accents.downcase.gsub(",","").strip.should match(manage_data.city_to_1.name_lang[AllPages.lang].downcase) unless inbound.span(:class,'city-departure').text.downcase.no_accents.gsub(",","").strip.match("toluca|campinas|fort lauderdale")
25
+ if itinerarios_elements[i].div(:class,'cluster-image-container').present?
26
+ inbound.span(:class,'city-departure').text.no_accents.downcase.gsub(",","").strip.should match(manage_data.city_to_1.name_lang[AllPages.lang].downcase) unless inbound.span(:class,'city-departure').text.downcase.no_accents.gsub(",","").strip.match("toluca|campinas|fort lauderdale")
27
+ end
20
28
  end
21
29
  end
22
30
  end
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.4.06"
2
+ VERSION = "2.4.08"
3
3
  end
@@ -41,11 +41,6 @@ Característica: results.itineraries
41
41
  |AR |roundtrip|true|
42
42
  |AR |multipledestinations|true|
43
43
  |AR |oneway|nil|
44
- @br
45
- Ejemplos:
46
- |pais|tipo|cabotage|
47
- |BR |oneway|true|
48
- |BR |roundtrip|true|
49
44
  @co
50
45
  Ejemplos:
51
46
  |pais|tipo|cabotage|
@@ -58,12 +53,6 @@ Característica: results.itineraries
58
53
  |MX |roundtrip|true|
59
54
  |MX |oneway|nil|
60
55
  |MX |multipledestinations|nil|
61
- @ve
62
- Ejemplos:
63
- |pais|tipo|cabotage|
64
- |VE |roundtrip|true|
65
- |VE |oneway|true|
66
- |VE |multipledestinations|true|
67
56
  @cl
68
57
  Ejemplos:
69
58
  |pais|tipo|cabotage|
@@ -111,4 +100,29 @@ Característica: results.itineraries
111
100
  |pais|tipo|cabotage|
112
101
  |PR |multipledestinations|true|
113
102
  |PR |roundtrip|nil|
114
- |PR |oneway|nil|
103
+ |PR |oneway|nil|
104
+
105
+ @itineraries
106
+ Esquema del escenario: Se recorren todos los clusters, por cada uno se validan datos consistentes con la busqueda y funcionamiento de popups
107
+ Dado como un usuario de '<pais>'
108
+ * ingreso una busqueda '<tipo>' del tipo '<cabotage>'
109
+ Cuando realizo la busqueda
110
+ Entonces verifico que la pagina no rompa
111
+ Cuando espero que termine de cargar la pagina de resultados
112
+ Entonces verifico que traiga resultados
113
+ Cuando ordeno por "TOTALFARE_ASCENDING"
114
+ Cuando espero que termine de cargar la pagina de resultados
115
+ Y cierro popups
116
+ Entonces recorro y verifico cada itinerario
117
+
118
+ @br
119
+ Ejemplos:
120
+ |pais|tipo|cabotage|
121
+ |BR |oneway|true|
122
+ |BR |roundtrip|true|
123
+ @ve
124
+ Ejemplos:
125
+ |pais|tipo|cabotage|
126
+ |VE |roundtrip|true|
127
+ |VE |oneway|true|
128
+ |VE |multipledestinations|true|
@@ -6,7 +6,7 @@ Característica: results.multipleoneway
6
6
  @multipleoneway
7
7
  Esquema del escenario: al realizar una busqueda de un vuelo de cabotaje para el tramo de IDA, es posible realizar una nueva busqueda para el tramo de VUELTA.
8
8
  Dado un usuario que ingresa a realizar una busqueda de un vuelo NO LASTMINUTE multipleoneway de cabotaje en '<pais>'
9
- Entonces ingreso a resultados con cookie "multipleonewayConfig" al "1"
9
+ Entonces ingreso a resultados con cookie "multipleonewayConfig" al "1"
10
10
  Cuando selecciono la opcion por tramos
11
11
  Y selecciono un vuelo de ida por una aerolinea
12
12
  Entonces es posible seleccionar un vuelo de vuelta por una aerolinea distinta a la elegida en la ida
@@ -30,10 +30,6 @@ Característica: results.multipleoneway
30
30
  Entonces se visualiza la opcion de comprar
31
31
  Y el precio es la suma de ambos tramos elegidos sin taxes
32
32
 
33
- @br
34
- Ejemplos:
35
- |pais|
36
- |BR|
37
33
  @co
38
34
  Ejemplos:
39
35
  |pais|
@@ -72,10 +68,6 @@ Característica: results.multipleoneway
72
68
  Y espero que termine de cargar la pagina de checkout
73
69
  Y verifico que ingrese al checkout
74
70
 
75
- @br
76
- Ejemplos:
77
- |pais|
78
- |BR|
79
71
  @co
80
72
  Ejemplos:
81
73
  |pais|
@@ -94,6 +86,7 @@ Característica: results.multipleoneway
94
86
  @multipleoneway
95
87
  Esquema del escenario: al realizar una busqueda de un vuelo de cabotaje para el tramo de IDA, es posible ordenar por aerolinea, horario y escalas.
96
88
  Dado un usuario que ingresa a realizar una busqueda de un vuelo NO LASTMINUTE multipleoneway de cabotaje en '<pais>'
89
+ Entonces ingreso a resultados con cookie "multipleonewayConfig" al "1"
97
90
  Cuando selecciono la opcion por tramos
98
91
  Entonces es posible ordenar el listado por aerolinea, horario y escalas
99
92
 
data/henry-context.yml CHANGED
@@ -986,96 +986,6 @@ tasks:
986
986
  recipients:
987
987
  - estebanldh@gmail.com
988
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
1079
989
  - name: results.multipleoneway.ar
1080
990
  class_name: Henry::Task::CucumberTask
1081
991
  options:
@@ -1091,36 +1001,6 @@ tasks:
1091
1001
  recipients:
1092
1002
  - estebanldh@gmail.com
1093
1003
  - 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
1124
1004
  - name: results.search
1125
1005
  class_name: Henry::Task::CucumberTask
1126
1006
  options:
@@ -13654,66 +13534,6 @@ tasks:
13654
13534
  recipients:
13655
13535
  - estebanldh@gmail.com
13656
13536
  - 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
13672
- - name: checkout.multipleoneway.co
13673
- class_name: Henry::Task::CucumberTask
13674
- options:
13675
- tags:
13676
- - checkout
13677
- - multipleoneway
13678
- - co
13679
- expand: true
13680
- no-source: true
13681
- reports:
13682
- - format: html
13683
- name: ${DATE}_${TASK_NAME}.html
13684
- recipients:
13685
- - estebanldh@gmail.com
13686
- - nsimean@despegar.com
13687
- - name: checkout.multipleoneway.br
13688
- class_name: Henry::Task::CucumberTask
13689
- options:
13690
- tags:
13691
- - checkout
13692
- - multipleoneway
13693
- - br
13694
- expand: true
13695
- no-source: true
13696
- reports:
13697
- - format: html
13698
- name: ${DATE}_${TASK_NAME}.html
13699
- recipients:
13700
- - estebanldh@gmail.com
13701
- - nsimean@despegar.com
13702
- - name: checkout.multipleoneway.co
13703
- class_name: Henry::Task::CucumberTask
13704
- options:
13705
- tags:
13706
- - checkout
13707
- - multipleoneway
13708
- - co
13709
- expand: true
13710
- no-source: true
13711
- reports:
13712
- - format: html
13713
- name: ${DATE}_${TASK_NAME}.html
13714
- recipients:
13715
- - estebanldh@gmail.com
13716
- - nsimean@despegar.com
13717
13537
  - name: checkout.braspag
13718
13538
  class_name: Henry::Task::CucumberTask
13719
13539
  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.06
4
+ version: 2.4.08
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-21 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container