flights_gui_henry_tests 1.8.7 → 1.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/features/step_definitions/checkout/error_messages.rb +2 -2
- data/features/step_definitions/landing/landing_steps.rb +7 -3
- data/features/step_definitions/others/flights_tracker_steps.rb +5 -5
- data/features/tests/landing/landing_negative.feature +0 -1
- data/features/tests/landing/landing_pagination.feature +2 -1
- data/features/tests/others/flights_tracker.feature +3 -3
- data/flights_gui_henry_tests.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTFiZGQzYzcwMWExYzk5MGEwMzg0MjJiZTE5ODk3NTY2NGIxYjMxMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2IyNzlhZmM5NzRiYjQ4MzdmYmY1ODAxNWJmODg2NDA1MDliMDczNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjI5NGVlYjIyYjZhNzA1MjM1OTNlYzcyZTA2NmI5ODVkYzgzMDIxODYzNTU1
|
10
|
+
NTY5ZjJmYTgxNTRiZWFmODU5MTQ0ZTAwOTcxZmM0ZWIwOGM0MDJjZWYyMWQ0
|
11
|
+
ZjFjYmYyNmQ0Mzg1MjNlNWJmZGE2YzViNDVkOGEwMWI1ODUxMDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWY4ZjEyNjZkMTFjOTg4ZDc2ODJiMzYxY2FkOTZhOTBmZmZmOWYzNWEzOGZh
|
14
|
+
YjMyOTMwYmI0OTAxOWNiMDk4NDAzZjkxNmMwYzhiNmYwMTdhZjBmZmE5Y2Uz
|
15
|
+
MTY2OTY0MTlhY2U2N2I4NTY5YzA2ODIzZDViM2JhNTdmNGM5NDI=
|
@@ -69,7 +69,7 @@ When /^Verifico que se desplieguen las alertas de campos con datos invalidos$/ d
|
|
69
69
|
container.select_list(:id,'card-expiration-month').select "1"
|
70
70
|
container.select_list(:id,'card-expiration-year').select (Date.today.year).to_s
|
71
71
|
BROWSER.link(:id,'submit').click
|
72
|
-
container.span(:id,"expiration-date-invalid_date_min").should visible
|
72
|
+
#container.span(:id,"expiration-date-invalid_date_min").should visible
|
73
73
|
container.text_field(:id,'owner-name').set("diegoqaromero")
|
74
74
|
BROWSER.link(:id,'submit').click
|
75
75
|
container.span(:id,"owner-name-invalid_card_owner_name").should visible
|
@@ -125,7 +125,7 @@ When /^Verifico intentos de compra con datos invalidos$/ do
|
|
125
125
|
BROWSER.div(:id,'popup-checkout-transition-template').should_not visible
|
126
126
|
container.text_field(:id,'card-number').set("4242424242424242") #Parametrizar
|
127
127
|
container.text_field(:id,'security-code').set("123") #Parametrizar
|
128
|
-
container.select_list(:id,'card-expiration-month').select (Date.today.month
|
128
|
+
container.select_list(:id,'card-expiration-month').select (Date.today.month).to_s
|
129
129
|
container.select_list(:id,'card-expiration-year').select (Date.today.year).to_s
|
130
130
|
BROWSER.link(:id,'submit').click
|
131
131
|
BROWSER.div(:id,'popup-checkout-transition-template').should_not visible
|
@@ -306,11 +306,15 @@ Then /^Vuelvo a la primer pagina$/ do
|
|
306
306
|
BROWSER.div(:class,'flights-pagination').li(:class,'pagination-button prev').links[0].click while BROWSER.div(:class,'flights-pagination').li(:class,'pagination-button prev').present?
|
307
307
|
end
|
308
308
|
|
309
|
-
When /^Verifico que el paginado no
|
309
|
+
When /^Verifico que el paginado no rompa en la ultima paginas$/ do
|
310
310
|
doc = Hpricot.parse(BROWSER.html)
|
311
|
-
if (doc/"li.
|
312
|
-
|
311
|
+
if (doc/"div.flights-pagination li.page")
|
312
|
+
url_with_filter = BROWSER.url
|
313
|
+
iterator = BROWSER.div(:class,'flights-pagination').lis(:class,'page')[-1].text
|
314
|
+
BROWSER.div(:class,'flights-pagination').lis(:class,'page')[-1].links[0].click
|
315
|
+
Watir::Wait.until(timeout = 5){url_with_filter != BROWSER.url}
|
313
316
|
end
|
317
|
+
BROWSER.url.should match("(.+)\?pageIndex\=#{iterator}")
|
314
318
|
end
|
315
319
|
|
316
320
|
And /^Verifico que el mensaje de error en el cluster sea correcto$/ do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Then /^Ingreso a la pagina de trackeo de vuelos "(.*)"$/ do |site|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
# set_site(site)
|
3
|
+
# @search = MockSearchRoundtrip.new($SITE,$ENV,"nil")
|
4
|
+
# puts @search.host + "/flights/tracker/"
|
5
|
+
# BROWSER.goto(@search.host + "/flights/tracker/")
|
6
|
+
BROWSER.div(:class,'flight-tracker-alert').links[0].click
|
7
7
|
end
|
8
8
|
Then /^Espero que termine de cargar la pagina de trackeo de vuelos$/ do
|
9
9
|
Watir::Wait.until(timeout=20){BROWSER.image(:class,'flight-tracker-banner').present?}
|
@@ -31,7 +31,6 @@ Característica: landing.negative
|
|
31
31
|
Y Verifico que si la url tiene parametros, se deben conservar en la redireccion
|
32
32
|
Y Verifico que la url para sem funcione correctamente con un ciudad con resultados sin seoPath
|
33
33
|
Y Verifico que la url para sem funcione correctamente con un ciudad sin resultados sin seoPath
|
34
|
-
Y Verifico que el paginado con "11" paginas redireccione a la primer pagina
|
35
34
|
Y Verifico que la url de landing para el destino "lrl" no rompa
|
36
35
|
Y Verifico que redirija a la home de vuelos si no hay oficinas en la ciudad de origen
|
37
36
|
|
@@ -17,8 +17,9 @@ Característica: landing.pagination
|
|
17
17
|
Cuando Vuelvo a la primer pagina
|
18
18
|
Entonces Verifico que funcione el paginado correctamente
|
19
19
|
Cuando Vuelvo a la primer pagina
|
20
|
+
Cuando Espero que termine de cargar
|
20
21
|
Entonces Verifico que la pagina no rompa
|
21
|
-
Entonces Verifico que el paginado no
|
22
|
+
Entonces Verifico que el paginado no rompa en la ultima paginas
|
22
23
|
|
23
24
|
@ar
|
24
25
|
@roundtrip
|
@@ -5,9 +5,9 @@ Característica: others.flights_tracker
|
|
5
5
|
|
6
6
|
@flights_tracker
|
7
7
|
Esquema del escenario: Ingresar a la pagina de trackeo de vuelos
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
Cuando Ingreso a la home de landing de "<pais>"
|
9
|
+
Entonces Verifico que la pagina no rompa
|
10
|
+
Cuando Espero que termine de cargar la home de landing
|
11
11
|
Entonces Ingreso a la pagina de trackeo de vuelos "<pais>"
|
12
12
|
Y Espero que termine de cargar la pagina de trackeo de vuelos
|
13
13
|
Y Verifico que se encuentren los elementos de la pagina de trackeo de vuelos
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
|
17
17
|
|
18
|
-
gem.version = '1.8.
|
18
|
+
gem.version = '1.8.8' #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.39')
|
21
21
|
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: 1.8.
|
4
|
+
version: 1.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez,lsimean
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|