flights_gui_henry_tests 2.6.3 → 2.6.4
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/checkout/price_difference_steps.rb +0 -1
- data/features/step_definitions/search/flight_gui_steps.rb +5 -5
- data/features/support/env.rb +1 -1
- data/features/support/lib/helpers/checkout.rb +2 -2
- data/flights_gui_henry_tests.gemspec +2 -2
- 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: 00c3ee997df04bb516e751636b5e81c66fa3eb93
|
4
|
+
data.tar.gz: b2719276c4035a00af87559dbedf64cba3c5f669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 748695ec6fb4fa962a8abea89f2bd0eb871749d72899f100690095a3e8b2b98e222c6bb8287502bb3601d064213ae41d58850453d2340c157554f47fa4b0ec43
|
7
|
+
data.tar.gz: ba01d1d69682492d8ddfb6b22f9fdb51941bbaa0d696ee9f2182d0d1f25dc99a6159962340a428f171a470ff4a4b83de64a669fa32dbc72ccf3f7cfc423eac68
|
@@ -1,6 +1,5 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
Then /^completo el mail de contacto para forzar cambio de precio$/ do
|
3
|
-
$price_jump=true
|
4
3
|
itinerario = CheckoutCluster.new(@search.description,Hpricot.parse(BROWSER.div(:id,'detail').html))
|
5
4
|
price = (itinerario.tarifas["total"].valor * 0.1).to_i
|
6
5
|
puts price
|
@@ -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) ?
|
4
|
+
index = (BROWSER.div(:id,'clusters').divs(:class,'cluster').length>1) ? 0 : 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,7 @@ 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-
|
139
|
+
container.div(:class,"installment-info").text.downcase.no_accents.match(/debito/) ? container.radio(:id,"installment-1").click : container.radio(:id,"installment-1").click
|
140
140
|
if provider == "VOL"
|
141
141
|
container.select_list(:id,'card-brand').select("American Express")
|
142
142
|
container.text_field(:id,'card-number').set("345678000000007")
|
@@ -207,7 +207,7 @@ end
|
|
207
207
|
Then /^Verifico que dirija a la pagina de gracias$/ do
|
208
208
|
step "Verifico que la pagina no rompa"
|
209
209
|
begin
|
210
|
-
Watir::Wait.until(timeout = 350){BROWSER.div(:id,'popup-price-difference-template').present? or BROWSER.div(:class,'notification-box error-box').present? or BROWSER.span(:class =>'checkout-id').present? or BROWSER.em(:class =>'checkout-id').present? or BROWSER.div(:id =>'popup-new-flight').exist? or BROWSER.span(:class,/error-message/).present? or BROWSER.div(:class, '
|
210
|
+
Watir::Wait.until(timeout = 350){BROWSER.div(:id,'popup-price-difference-template').present? or BROWSER.div(:class,'notification-box error-box').present? or BROWSER.span(:class =>'checkout-id').present? or BROWSER.em(:class =>'checkout-id').present? or BROWSER.div(:id =>'popup-new-flight').exist? or BROWSER.span(:class,/error-message/).present? or BROWSER.div(:class, 'ux-common-message ux-common-message-warning ').present? or BROWSER.div(:class, 'ux-common-error').present?}
|
211
211
|
rescue Timeout::Error
|
212
212
|
pending("Timeout de 400 segundos al ingresar a la pagina de gracias")
|
213
213
|
end
|
@@ -218,8 +218,8 @@ Then /^Verifico que dirija a la pagina de gracias$/ do
|
|
218
218
|
if BROWSER.div(:class, 'ux-common-error').present?
|
219
219
|
pending(BROWSER.div(:class,'ux-common-error').text)
|
220
220
|
end
|
221
|
-
if BROWSER.div(:class,'
|
222
|
-
BROWSER.div(:class,'
|
221
|
+
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)
|
223
223
|
end
|
224
224
|
if BROWSER.div(:id,'popup-price-difference-template').present?
|
225
225
|
puts "Se mostro el popup de cambio de precio"
|
data/features/support/env.rb
CHANGED
@@ -3,11 +3,11 @@ def validar_cuota_un_pago()
|
|
3
3
|
|
4
4
|
end
|
5
5
|
def validar_cuota_sin_intereses(total_1,total_2)
|
6
|
-
if BROWSER.fieldset(:class,'payment').li(:class,/selected/).
|
6
|
+
if BROWSER.fieldset(:class,'payment').li(:class,/selected/).div(:class,"installments-price").present?
|
7
7
|
doc = Hpricot.parse(BROWSER.fieldset(:class,'payment').li(:class,/selected/).div(:class,"installments-price").html)
|
8
8
|
inicial = (doc/"span.first-installment").inner_text.downstrip.gsub(/\./,'').match(/(\d+)$/)[1].to_i
|
9
9
|
valor_restantes = (doc/"span.all-installments/span.currency/span.amount").inner_text.gsub(/\./,'').to_i
|
10
|
-
cant_restantes = (doc/"span.all-installments").inner_text.gsub(/\./,'').match(/\+ (\d)/)[1].to_i
|
10
|
+
cant_restantes = (doc/"span.all-installments").inner_text.gsub(/\./,'').match(/\+ (\d+)/)[1].to_i
|
11
11
|
(inicial + (cant_restantes * valor_restantes)).should be_within(3).of(total_2)
|
12
12
|
total_1.should equal(total_2)
|
13
13
|
else
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
|
17
17
|
|
18
|
-
gem.version = '2.6.
|
18
|
+
gem.version = '2.6.4' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
|
19
19
|
|
20
20
|
gem.add_dependency('henry-container', '>= 0.1.82')
|
21
21
|
gem.add_dependency('watir-webdriver')
|
@@ -26,7 +26,7 @@
|
|
26
26
|
gem.add_dependency('sixarm_ruby_unaccent')
|
27
27
|
gem.add_dependency('sanitize')
|
28
28
|
gem.add_dependency('mock_search')
|
29
|
-
|
29
|
+
gem.add_dependency('byebug')
|
30
30
|
|
31
31
|
gem.add_development_dependency('geminabox')
|
32
32
|
|
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
|
+
version: 2.6.4
|
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-
|
11
|
+
date: 2014-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: byebug
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: geminabox
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|