flights_gui_tests 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07df470d97dcc960c3c6c223395e43e742e2b15c
|
4
|
+
data.tar.gz: 8f8feff98158bf2eba840bfed067c5026f627e3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f8fad2e3a47a0c8718bcbec94b43d970d414b4c74db350452eb9b39b371fc332b3f69bef7f09fc80a8b787eb0bb9f2eb79fdf32d65aad4a57983a03b58cc7a1
|
7
|
+
data.tar.gz: 43b6b00807f6188d145239c04e54ae512ed8075e2c608ad93b44cb6fb145fa663fa48d4df1076cc09a9744eb4ecf35a9b5960e75deb6089bd9d5209942ff9ca6
|
@@ -4,8 +4,8 @@ Entonces(/^verifico que el mensaje de error en el cluster sea correcto$/) do
|
|
4
4
|
clusters=@page.datos_de_itinerarios
|
5
5
|
clusters.each_with_index do |cluster,i|
|
6
6
|
if (cluster.idas.length>1 or (cluster.vueltas and cluster.vueltas.length>1))
|
7
|
-
@page.
|
8
|
-
@page.
|
7
|
+
@page.div(:class=>"cluster",:index=>i).link(:class,"buy btn-buy flights-button").click
|
8
|
+
@page.div(:class=>"cluster",:index=>i).li(:class=>'item error-message',:index=>((cluster.idas.length>1) ? 0 : 1)).text.no_accents.should match("Choose a (return|departure) flight|Por favor, seleccione un vuelo de|Por favor, selecione um voo de")
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -11,7 +11,7 @@ Cuando(/^verifico que las datos de la pagina sean consistente a la busqueda real
|
|
11
11
|
html = Hpricot.parse(@page.html)
|
12
12
|
(html/"span.search-info").inner_text.no_accents.downcase.should match(@page.manage_data.city_from_1.name.downcase)
|
13
13
|
(html/"span.search-info").inner_text.no_accents.downcase.should match(@page.manage_data.city_to_1.name.downcase)
|
14
|
-
(!(html/"div.search").length.zero?).should be_true
|
14
|
+
(!(html/"div.ux-search").length.zero?).should be_true
|
15
15
|
(!(html/"div#flights-alerts").length.zero?).should be_true if @page.tipo_de_busqueda=="roundtrip"
|
16
16
|
(!(html/"div#filters").length.zero?).should be_true
|
17
17
|
end
|
data/flights_gui_tests.gemspec
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
|
17
17
|
|
18
|
-
gem.version = '0.0.
|
18
|
+
gem.version = '0.0.3' #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('page-object')
|