flights_gui_henry_tests 2.6.4 → 2.6.5

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: 00c3ee997df04bb516e751636b5e81c66fa3eb93
4
- data.tar.gz: b2719276c4035a00af87559dbedf64cba3c5f669
3
+ metadata.gz: 4b96a07c882ad7de0d16a936602d26e56a44bdda
4
+ data.tar.gz: ae0d64b083cc045e9a8df312c15b9b0725ef027c
5
5
  SHA512:
6
- metadata.gz: 748695ec6fb4fa962a8abea89f2bd0eb871749d72899f100690095a3e8b2b98e222c6bb8287502bb3601d064213ae41d58850453d2340c157554f47fa4b0ec43
7
- data.tar.gz: ba01d1d69682492d8ddfb6b22f9fdb51941bbaa0d696ee9f2182d0d1f25dc99a6159962340a428f171a470ff4a4b83de64a669fa32dbc72ccf3f7cfc423eac68
6
+ metadata.gz: 978f9529ef3f0d640c9a8c048b84e2b0e418f95a937f5eb3fa197e75cd82a99cfa4919a4ef209853e7df87b7a12688fd4290beb4ba536072ca906ff01ce7d59b
7
+ data.tar.gz: 751f50b7191b28d2f7b00f506c8d5c53910549038cd2024c43569a039ef3d63418686becb3dba7a8193114e384568123977be423ad7914a5cc66b5a3ffe49be6
@@ -44,7 +44,11 @@ Entonces(/^Verifico que vuelva al checkout correctamente$/) do
44
44
  end
45
45
 
46
46
  Entonces(/^Verifico los pasos para hacer el deposito$/) do
47
- pending # express the regexp above with the code you wish you had
47
+ BROWSER.div(:id,'ux-common-message ux-common-message-warning ').text.no_accents.should equal("Recuerde que el pago debera ser realizado antes de las 20hs, de lo contrario su reserva sera cancelada. ")
48
+ BROWSER.span(:class,'checkout-id').should visible("numero de reserva")
49
+ BROWSER.divs(:class,'thanks-reservation-homebanking-step').length.should equal(8)
50
+ BROWSER.div(:class,'thanks-reservation-homebanking-step').span(:class,'thanks-reservation-homebanking-ticket-number').text.should match(@id_cro)
51
+ BROWSER.div(:class,'thanks-reservation-homebanking-step').span(:class,'thanks-reservation-homebanking-price').text.should match(@monto_total)
48
52
  end
49
53
 
50
54
  Entonces(/^Completo el formulario de pago online$/) do
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  When /^Elijo un itinerario y paso a checkout$/ do
3
3
  json = @search.get_results_search_service
4
- index = (BROWSER.div(:id,'clusters').divs(:class,'cluster').length>1) ? 0 : 0
4
+ index = (BROWSER.div(:id,'clusters').divs(:class,'cluster').length>1) ? 1 : 0
5
5
  @item_json = json['result']['data']['items'][index]
6
6
  @itinerario = ResultsCluster.new(@search.description,Hpricot.parse(BROWSER.div(:id,'clusters').divs(:class,'cluster')[index].html))
7
7
  if BROWSER.div(:id,'clusters').divs(:class,'cluster')[index].span(:class,'tickets-left-text').present?
@@ -136,7 +136,11 @@ And /^Completo el formulario de tarjeta$/ do
136
136
  data = @search.get_results_search_service
137
137
  provider = @item_json ? @item_json["provider"] : data["result"]["data"]["items"][0]["provider"]
138
138
  container = BROWSER.fieldset(:id,'payment')
139
- container.div(:class,"installment-info").text.downcase.no_accents.match(/debito/) ? container.radio(:id,"installment-1").click : container.radio(:id,"installment-1").click
139
+ if $SITE=="AR" and container.radio(:id,"installment-1").present?
140
+ container.radio(:id,"installment-1").click
141
+ else
142
+ container.div(:class,"installment-info").text.downcase.no_accents.match(/debito/) ? container.radio(:id,"installment-1").click : container.radio(:id,"installment-0").click
143
+ end
140
144
  if provider == "VOL"
141
145
  container.select_list(:id,'card-brand').select("American Express")
142
146
  container.text_field(:id,'card-number').set("345678000000007")
@@ -171,11 +175,9 @@ end
171
175
 
172
176
  And /^Completo los datos de resolucion AFIP$/ do
173
177
  container = BROWSER.fieldset(:id,'payment')
174
- if $SITE == "AR" and !@search.cabotage
178
+ if $SITE == "AR"
175
179
  container.text_field(:id,'owner-document-number').should visible
176
180
  container.select_list(:id,'owner-gender').should visible
177
- else
178
- container.select_list(:id,'owner-gender').should_not visible
179
181
  end
180
182
  end
181
183
 
@@ -219,7 +221,7 @@ Then /^Verifico que dirija a la pagina de gracias$/ do
219
221
  pending(BROWSER.div(:class,'ux-common-error').text)
220
222
  end
221
223
  if BROWSER.div(:class,'ux-common-message ux-common-message-warning ').present?
222
- pending(BROWSER.div(:class,'notux-common-message ux-common-message-warning ').text.strip.no_accents.downcase)
224
+ pending(BROWSER.div(:class,'ux-common-message ux-common-message-warning ').text.strip.no_accents.downcase)
223
225
  end
224
226
  if BROWSER.div(:id,'popup-price-difference-template').present?
225
227
  puts "Se mostro el popup de cambio de precio"
@@ -27,6 +27,7 @@ Característica: checkout.new_pay_method
27
27
  Entonces Si se muestra el popup de no disponibilidad, elijo otro vuelo
28
28
  Entonces Si debo completar de vuelta el formulario, completo el formulario
29
29
  Y Verifico que genere id cro
30
+ Y Levanto los datos del vuelo
30
31
  Y Verifico los pasos para hacer el deposito
31
32
 
32
33
  @ar
@@ -44,51 +45,6 @@ Característica: checkout.new_pay_method
44
45
  Ejemplos:
45
46
  |pais|tipo|cabotage|
46
47
  |AR |multipledestinations|nil|
47
- @br
48
- @roundtrip
49
- Ejemplos:
50
- |pais|tipo|cabotage|
51
- |BR |roundtrip|nil|
52
- @br
53
- @oneway
54
- Ejemplos:
55
- |pais|tipo|cabotage|
56
- |BR |oneway|nil|
57
- @br
58
- @multipledestinations
59
- Ejemplos:
60
- |pais|tipo|cabotage|
61
- |BR |multipledestinations|nil|
62
- @mx
63
- @roundtrip
64
- Ejemplos:
65
- |pais|tipo|cabotage|
66
- |MX |roundtrip|nil|
67
- @mx
68
- @oneway
69
- Ejemplos:
70
- |pais|tipo|cabotage|
71
- |MX |oneway|nil|
72
- @mx
73
- @multipledestinations
74
- Ejemplos:
75
- |pais|tipo|cabotage|
76
- |MX |multipledestinations|nil|
77
- @us
78
- @roundtrip
79
- Ejemplos:
80
- |pais|tipo|cabotage|
81
- |US |roundtrip|nil|
82
- @us
83
- @oneway
84
- Ejemplos:
85
- |pais|tipo|cabotage|
86
- |US |oneway|nil|
87
- @us
88
- @multipledestinations
89
- Ejemplos:
90
- |pais|tipo|cabotage|
91
- |US |multipledestinations|nil|
92
48
 
93
49
  @new_pay_method
94
50
  Esquema del escenario: Ingresar al checkout y elegir pago online
@@ -112,6 +68,7 @@ Característica: checkout.new_pay_method
112
68
  Entonces Si se muestra el popup de no disponibilidad, elijo otro vuelo
113
69
  Entonces Si debo completar de vuelta el formulario, completo el formulario
114
70
  Y Verifico que genere id cro
71
+ Y Levanto los datos del vuelo
115
72
  Y Verifico los pasos para hacer el pago online
116
73
 
117
74
  @ar
@@ -128,50 +85,4 @@ Característica: checkout.new_pay_method
128
85
  @multipledestinations
129
86
  Ejemplos:
130
87
  |pais|tipo|cabotage|
131
- |AR |multipledestinations|nil|
132
- @br
133
- @roundtrip
134
- Ejemplos:
135
- |pais|tipo|cabotage|
136
- |BR |roundtrip|nil|
137
- @br
138
- @oneway
139
- Ejemplos:
140
- |pais|tipo|cabotage|
141
- |BR |oneway|nil|
142
- @br
143
- @multipledestinations
144
- Ejemplos:
145
- |pais|tipo|cabotage|
146
- |BR |multipledestinations|nil|
147
- @mx
148
- @roundtrip
149
- Ejemplos:
150
- |pais|tipo|cabotage|
151
- |MX |roundtrip|nil|
152
- @mx
153
- @oneway
154
- Ejemplos:
155
- |pais|tipo|cabotage|
156
- |MX |oneway|nil|
157
- @mx
158
- @multipledestinations
159
- Ejemplos:
160
- |pais|tipo|cabotage|
161
- |MX |multipledestinations|nil|
162
- @us
163
- @roundtrip
164
- Ejemplos:
165
- |pais|tipo|cabotage|
166
- |US |roundtrip|nil|
167
- @us
168
- @oneway
169
- Ejemplos:
170
- |pais|tipo|cabotage|
171
- |US |oneway|nil|
172
- @us
173
- @multipledestinations
174
- Ejemplos:
175
- |pais|tipo|cabotage|
176
- |US |multipledestinations|nil|
177
-
88
+ |AR |multipledestinations|nil|
@@ -13,9 +13,8 @@
13
13
 
14
14
  gem.name = "flights_gui_henry_tests" #Debe ser unico en el Gem Server, tratemos de utilizar nombre que identifiquen de forma inequivoca
15
15
 
16
- gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
17
-
18
- gem.version = '2.6.4' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
16
+ gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]5
17
+ gem.version = '2.6.5' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
19
18
 
20
19
  gem.add_dependency('henry-container', '>= 0.1.82')
21
20
  gem.add_dependency('watir-webdriver')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_henry_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.4
4
+ version: 2.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-18 00:00:00.000000000 Z
11
+ date: 2014-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container